Skip to content

Commit a47a96c

Browse files
committed
misc: clang-tidy
Signed-off-by: Matt Liberty <[email protected]>
1 parent 2be1bd8 commit a47a96c

File tree

9 files changed

+19
-5
lines changed

9 files changed

+19
-5
lines changed

src/dpl/src/PlacementDRC.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "odb/dbTransform.h"
1414
#include "odb/dbTypes.h"
1515
#include "odb/geom.h"
16+
#include "odb/isotropy.h"
1617

1718
namespace dpl {
1819

src/drt/src/gc/FlexGC_main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "gc/FlexGC_impl.h"
2222
#include "odb/dbTypes.h"
2323
#include "odb/geom.h"
24+
#include "odb/isotropy.h"
2425

2526
using odb::dbTechLayerType;
2627

src/odb/src/db/dbBlock.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <algorithm>
99
#include <cassert>
1010
#include <cerrno>
11+
#include <climits>
1112
#include <cmath>
1213
#include <cstdint>
1314
#include <cstdio>

src/odb/src/db/dbBox.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#include "odb/dbShape.h"
3838
#include "odb/dbTypes.h"
3939
#include "odb/geom.h"
40+
#include "odb/isotropy.h"
41+
#include "odb/odb.h"
4042
#include "utl/Logger.h"
4143

4244
namespace odb {

src/odb/src/db/dbSBox.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "dbSBox.h"
55

6+
#include <cstdlib>
67
#include <string>
78
#include <vector>
89

@@ -20,6 +21,7 @@
2021
#include "odb/dbShape.h"
2122
#include "odb/dbTypes.h"
2223
#include "odb/geom.h"
24+
#include "odb/odb.h"
2325

2426
namespace odb {
2527

src/odb/src/db/dbSWire.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "odb/dbBlockCallBackObj.h"
1818
#include "odb/dbSet.h"
1919
#include "odb/dbTypes.h"
20+
#include "odb/odb.h"
2021

2122
namespace odb {
2223

src/odb/src/db/tmg_conn.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "odb/dbSet.h"
1414
#include "odb/dbShape.h"
1515
#include "odb/dbWireCodec.h"
16+
#include "odb/isotropy.h"
1617
#include "tmg_conn_g.h"
1718
#include "utl/Logger.h"
1819

src/pdn/src/sroute.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "grid.h"
1616
#include "odb/db.h"
1717
#include "odb/dbSet.h"
18+
#include "odb/isotropy.h"
1819
#include "pdn/PdnGen.hh"
1920
#include "shape.h"
2021
#include "utl/Logger.h"
@@ -184,14 +185,15 @@ void SRoute::createSrouteWires(
184185
stripe_metal_layer = wire->getTechLayer();
185186
const odb::Orientation2D direction = wire->getDir();
186187
if (first) {
187-
if ((direction == odb::horizontal) && (stripe_metal_layer == metal_layer)
188+
if ((direction == odb::horizontal)
189+
&& (stripe_metal_layer == metal_layer)
188190
&& (wire->getDY() != Hdy)) {
189191
first = false;
190192
pdn_wire = wire;
191193
}
192194
} else {
193-
if ((direction == odb::horizontal) && (stripe_metal_layer == metal_layer)
194-
&& (wire->getDY() != Hdy)
195+
if ((direction == odb::horizontal)
196+
&& (stripe_metal_layer == metal_layer) && (wire->getDY() != Hdy)
195197
&& (std::abs(wire->yMin() - avg_iterm_y)
196198
< std::abs(pdn_wire->yMin() - avg_iterm_y))) {
197199
pdn_wire = wire;
@@ -211,7 +213,8 @@ void SRoute::createSrouteWires(
211213
right_pdn_wire = wire;
212214
}
213215
} else {
214-
if ((direction == odb::vertical) && (wire->xMax() < pdn_wire->xMax())
216+
if ((direction == odb::vertical)
217+
&& (wire->xMax() < pdn_wire->xMax())
215218
&& (wire->xMax() > avg_iterm_x)) {
216219
right_pdn_wire = wire;
217220
}
@@ -231,7 +234,8 @@ void SRoute::createSrouteWires(
231234
left_pdn_wire = wire;
232235
}
233236
} else {
234-
if ((direction == odb::vertical) && (wire->xMin() > pdn_wire->xMin())
237+
if ((direction == odb::vertical)
238+
&& (wire->xMin() > pdn_wire->xMin())
235239
&& (wire->xMin() < avg_iterm_x)) {
236240
left_pdn_wire = wire;
237241
}

src/pdn/src/via_repair.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "odb/db.h"
1515
#include "odb/dbShape.h"
1616
#include "odb/dbTypes.h"
17+
#include "odb/geom.h"
1718
#include "utl/Logger.h"
1819
#include "via.h"
1920

0 commit comments

Comments
 (0)