Skip to content

Commit bc98050

Browse files
committed
grt: clang-format
Signed-off-by: Eder Monteiro <[email protected]>
1 parent a667a9c commit bc98050

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/grt/src/GlobalRouter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,14 +1194,16 @@ void GlobalRouter::updatePinAccessPoints()
11941194

11951195
for (Pin& pin : net->getPins()) {
11961196
if (pin.isPort()) {
1197-
if (auto it = bterm_to_aps.find(pin.getBTerm()); it != bterm_to_aps.end()) {
1197+
if (auto it = bterm_to_aps.find(pin.getBTerm());
1198+
it != bterm_to_aps.end()) {
11981199
const auto& bterm_ap = it->second;
11991200
pin.setConnectionLayer(bterm_ap.z());
12001201
pin.setOnGridPosition(
12011202
grid_->getPositionOnGrid(odb::Point(bterm_ap.x(), bterm_ap.y())));
12021203
}
12031204
} else {
1204-
if (auto it = iterm_to_aps.find(pin.getITerm()); it != iterm_to_aps.end()) {
1205+
if (auto it = iterm_to_aps.find(pin.getITerm());
1206+
it != iterm_to_aps.end()) {
12051207
const auto& iterm_ap = it->second;
12061208
pin.setConnectionLayer(iterm_ap.z());
12071209
pin.setOnGridPosition(

src/grt/src/cugr/src/GRNet.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "GridGraph.h"
1010
#include "Netlist.h"
1111
#include "geo.h"
12-
1312
#include "odb/db.h"
1413

1514
namespace grt {
@@ -64,10 +63,12 @@ bool GRNet::isInsideLayerRange(int layer_index) const
6463

6564
void GRNet::addPreferredAccessPoint(int pin_index, const AccessPoint& ap)
6665
{
67-
if (auto it = pin_index_to_iterm_.find(pin_index); it != pin_index_to_iterm_.end()) {
66+
if (auto it = pin_index_to_iterm_.find(pin_index);
67+
it != pin_index_to_iterm_.end()) {
6868
odb::dbITerm* iterm = it->second;
6969
iterm_to_ap_[iterm] = ap;
70-
} else if (auto it = pin_index_to_bterm_.find(pin_index); it != pin_index_to_bterm_.end()) {
70+
} else if (auto it = pin_index_to_bterm_.find(pin_index);
71+
it != pin_index_to_bterm_.end()) {
7172
odb::dbBTerm* bterm = it->second;
7273
bterm_to_ap_[bterm] = ap;
7374
}

0 commit comments

Comments
 (0)