Skip to content

Commit ae9757a

Browse files
committed
clang-format
Signed-off-by: Matt Liberty <[email protected]>
1 parent 85053b0 commit ae9757a

File tree

11 files changed

+29
-45
lines changed

11 files changed

+29
-45
lines changed

src/Main.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@ std::string findPathToTclreadlineInit(Tcl_Interp* interp)
370370
)";
371371

372372
if (Tcl_Eval(interp, tcl_script) == TCL_ERROR) {
373-
std::cerr << "Tcl_Eval failed: " << Tcl_GetStringResult(interp)
374-
<< '\n';
373+
std::cerr << "Tcl_Eval failed: " << Tcl_GetStringResult(interp) << '\n';
375374
return "";
376375
}
377376

src/cut/src/blifParser.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ void BlifParser::addClock(const std::string& clock)
134134
void BlifParser::addNewInstanceType(const std::string& type)
135135
{
136136
if (currentInstanceType_ != GateType::None) {
137-
gates_.emplace_back(currentInstanceType_, currentGate_, currentConnections_);
137+
gates_.emplace_back(
138+
currentInstanceType_, currentGate_, currentConnections_);
138139
}
139140
currentInstanceType_ = GateType::Mlatch;
140141
if (type != "mlatch") {
@@ -158,7 +159,8 @@ void BlifParser::addConnection(const std::string& connection)
158159
void BlifParser::endParser()
159160
{
160161
if (currentInstanceType_ != GateType::None) {
161-
gates_.emplace_back(currentInstanceType_, currentGate_, currentConnections_);
162+
gates_.emplace_back(
163+
currentInstanceType_, currentGate_, currentConnections_);
162164
}
163165
}
164166

src/drt/src/db/drObj/drShape.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ drPathSeg::drPathSeg(const frPathSeg& in) : layer_(in.getLayerNum())
3939
setTapered(in.isTapered());
4040
}
4141

42-
drPatchWire::drPatchWire(const frPatchWire& in)
43-
: layer_(in.getLayerNum())
42+
drPatchWire::drPatchWire(const frPatchWire& in) : layer_(in.getLayerNum())
4443
{
4544
offsetBox_ = in.getOffsetBox();
4645
origin_ = in.getOrigin();

src/drt/src/dr/FlexDR_rq.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ void FlexDRWorkerRegionQuery::Impl::add(
114114
if (shape->typeId() == frcRect) {
115115
odb::Rect frb = shape->getBBox();
116116
xform.apply(frb);
117-
allShapes.at(via->getViaDef()->getLayer1Num())
118-
.emplace_back(frb, via);
117+
allShapes.at(via->getViaDef()->getLayer1Num()).emplace_back(frb, via);
119118
} else {
120119
std::cout << "Error: unsupported region query add\n";
121120
}
@@ -125,8 +124,7 @@ void FlexDRWorkerRegionQuery::Impl::add(
125124
if (shape->typeId() == frcRect) {
126125
odb::Rect frb = shape->getBBox();
127126
xform.apply(frb);
128-
allShapes.at(via->getViaDef()->getLayer2Num())
129-
.emplace_back(frb, via);
127+
allShapes.at(via->getViaDef()->getLayer2Num()).emplace_back(frb, via);
130128
} else {
131129
std::cout << "Error: unsupported region query add\n";
132130
}
@@ -136,8 +134,7 @@ void FlexDRWorkerRegionQuery::Impl::add(
136134
if (shape->typeId() == frcRect) {
137135
odb::Rect frb = shape->getBBox();
138136
xform.apply(frb);
139-
allShapes.at(via->getViaDef()->getCutLayerNum())
140-
.emplace_back(frb, via);
137+
allShapes.at(via->getViaDef()->getCutLayerNum()).emplace_back(frb, via);
141138
} else {
142139
std::cout << "Error: unsupported region query add\n";
143140
}

src/drt/src/frRegionQuery.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,7 @@ void frRegionQuery::Impl::addGRObj(grVia* via,
331331
ObjectsByLayer<grBlockObject>& allShapes)
332332
{
333333
odb::Rect frb = via->getBBox();
334-
allShapes.at(via->getViaDef()->getCutLayerNum())
335-
.emplace_back(frb, via);
334+
allShapes.at(via->getViaDef()->getCutLayerNum()).emplace_back(frb, via);
336335
}
337336

338337
void frRegionQuery::removeGRObj(grVia* via)
@@ -378,8 +377,7 @@ void frRegionQuery::Impl::add(frVia* via,
378377
if (shape->typeId() == frcRect) {
379378
odb::Rect frb = shape->getBBox();
380379
xform.apply(frb);
381-
allShapes.at(via->getViaDef()->getLayer1Num())
382-
.emplace_back(frb, via);
380+
allShapes.at(via->getViaDef()->getLayer1Num()).emplace_back(frb, via);
383381
} else {
384382
logger->error(DRT, 11, "Unsupported region query add.");
385383
}
@@ -389,8 +387,7 @@ void frRegionQuery::Impl::add(frVia* via,
389387
if (shape->typeId() == frcRect) {
390388
odb::Rect frb = shape->getBBox();
391389
xform.apply(frb);
392-
allShapes.at(via->getViaDef()->getLayer2Num())
393-
.emplace_back(frb, via);
390+
allShapes.at(via->getViaDef()->getLayer2Num()).emplace_back(frb, via);
394391
} else {
395392
logger->error(DRT, 12, "Unsupported region query add.");
396393
}
@@ -400,8 +397,7 @@ void frRegionQuery::Impl::add(frVia* via,
400397
if (shape->typeId() == frcRect) {
401398
odb::Rect frb = shape->getBBox();
402399
xform.apply(frb);
403-
allShapes.at(via->getViaDef()->getCutLayerNum())
404-
.emplace_back(frb, via);
400+
allShapes.at(via->getViaDef()->getCutLayerNum()).emplace_back(frb, via);
405401
} else {
406402
logger->error(DRT, 13, "Unsupported region query add.");
407403
}
@@ -419,8 +415,7 @@ void frRegionQuery::Impl::addDRObj(frVia* via,
419415
ObjectsByLayer<frBlockObject>& allShapes)
420416
{
421417
odb::Rect frb = via->getBBox();
422-
allShapes.at(via->getViaDef()->getCutLayerNum())
423-
.emplace_back(frb, via);
418+
allShapes.at(via->getViaDef()->getCutLayerNum()).emplace_back(frb, via);
424419
}
425420

426421
void frRegionQuery::removeDRObj(frVia* via)

src/drt/src/gr/FlexGR_init.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,7 @@ void FlexGRWorker::initNet_updateCMap(grNet* net, bool isAdd)
797797
}
798798
}
799799
} else {
800-
std::cout << "Error: non-colinear pathSeg in updateCMap_net"
801-
<< '\n';
800+
std::cout << "Error: non-colinear pathSeg in updateCMap_net\n";
802801
}
803802
}
804803
}

src/drt/src/gr/FlexGR_rq.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ void FlexGRWorkerRegionQuery::add(
8686
if (shape->typeId() == frcRect) {
8787
odb::Rect frb = shape->getBBox();
8888
xform.apply(frb);
89-
allShapes.at(via->getViaDef()->getLayer1Num())
90-
.emplace_back(frb, via);
89+
allShapes.at(via->getViaDef()->getLayer1Num()).emplace_back(frb, via);
9190
} else {
9291
std::cout << "Error: unsupported region query add\n";
9392
}
@@ -97,8 +96,7 @@ void FlexGRWorkerRegionQuery::add(
9796
if (shape->typeId() == frcRect) {
9897
odb::Rect frb = shape->getBBox();
9998
xform.apply(frb);
100-
allShapes.at(via->getViaDef()->getLayer2Num())
101-
.emplace_back(frb, via);
99+
allShapes.at(via->getViaDef()->getLayer2Num()).emplace_back(frb, via);
102100
} else {
103101
std::cout << "Error: unsupported region query add\n";
104102
}
@@ -108,8 +106,7 @@ void FlexGRWorkerRegionQuery::add(
108106
if (shape->typeId() == frcRect) {
109107
odb::Rect frb = shape->getBBox();
110108
xform.apply(frb);
111-
allShapes.at(via->getViaDef()->getCutLayerNum())
112-
.emplace_back(frb, via);
109+
allShapes.at(via->getViaDef()->getCutLayerNum()).emplace_back(frb, via);
113110
} else {
114111
std::cout << "Error: unsupported region query add\n";
115112
}

src/grt/src/fastroute/include/DataType.h

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,15 @@ struct Segment // A Segment is a 2-pin connection
5555
int16_t x2,
5656
int16_t y2,
5757
int8_t cost)
58-
: netID(netID),
59-
x1(x1),
60-
y1(y1),
61-
x2(x2),
62-
y2(y2),
63-
cost(cost)
58+
: netID(netID), x1(x1), y1(y1), x2(x2), y2(y2), cost(cost)
6459
{
6560
}
6661
const int netID;
6762
const int16_t x1, y1, x2, y2; // coordinates of two endpoints (x1 <= x2)
68-
int16_t Zpoint{-1}; // The coordinates of Z point (x for HVH and y for VHV)
69-
const int8_t cost; // the netID of the net this segment belonging to
70-
bool xFirst : 1{false}; // route x-direction first (only for L route)
71-
bool HVH : 1{false}; // TRUE = HVH or false = VHV (only for Z route)
63+
int16_t Zpoint{-1}; // The coordinates of Z point (x for HVH and y for VHV)
64+
const int8_t cost; // the netID of the net this segment belonging to
65+
bool xFirst : 1 {false}; // route x-direction first (only for L route)
66+
bool HVH : 1 {false}; // TRUE = HVH or false = VHV (only for Z route)
7267
};
7368

7469
struct FrNet // A Net is a set of connected MazePoints

src/mpl/src/hier_rtlmp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2790,8 +2790,7 @@ void HierRTLMP::writeFloorplanFile(const std::string& file_name_prefix,
27902790
std::ofstream file(file_name_prefix + ".fp.txt");
27912791
for (auto& macro : macros) {
27922792
file << macro.getName() << " " << macro.getX() << " " << macro.getY()
2793-
<< " " << macro.getWidth() << " " << macro.getHeight()
2794-
<< '\n';
2793+
<< " " << macro.getWidth() << " " << macro.getHeight() << '\n';
27952794
}
27962795
}
27972796

src/rmp/src/Restructure.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,15 +576,17 @@ void Restructure::writeOptCommands(std::ofstream& script)
576576
script << "map -D 0.01 -A 0.9 -B 0.2 -M 0 -p\n";
577577
script << "choice\n";
578578
script << "map -D 0.01\n";
579-
script << "buffer -p -c\n" << "topo\n";
579+
script << "buffer -p -c\n"
580+
<< "topo\n";
580581
break;
581582
}
582583
case Mode::DELAY_3: {
583584
script << "choice2\n";
584585
script << "map -D 0.01 -A 0.9 -B 0.2 -M 0 -p\n";
585586
script << "choice2\n";
586587
script << "map -D 0.01\n";
587-
script << "buffer -p -c\n" << "topo\n";
588+
script << "buffer -p -c\n"
589+
<< "topo\n";
588590
break;
589591
}
590592
case Mode::DELAY_4: {

0 commit comments

Comments
 (0)