Skip to content

Commit ebaaac6

Browse files
committed
pad: resolve clang-tidy comments
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 56ebc75 commit ebaaac6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/pad/include/pad/ICeWall.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <cstdint>
77
#include <map>
88
#include <memory>
9+
#include <optional>
910
#include <set>
1011
#include <string>
1112
#include <utility>

src/pad/src/ICeWall.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <limits>
1212
#include <map>
1313
#include <memory>
14+
#include <optional>
1415
#include <set>
1516
#include <utility>
1617
#include <vector>
@@ -1191,7 +1192,8 @@ int ICeWall::placeInstance(odb::dbRow* row,
11911192

11921193
return placeInstance(
11931194
row, next_index, inst, base_orient, allow_overlap, allow_shift);
1194-
} else if (!allow_overlap && check_obs) {
1195+
}
1196+
if (!allow_overlap && check_obs) {
11951197
const auto& [check_inst, obs_rect] = *check_obs;
11961198
odb::Rect check_rect;
11971199
if (check_inst == nullptr) {

0 commit comments

Comments
 (0)