Skip to content

Commit 0e9b114

Browse files
committed
odb: clang-tidy
Signed-off-by: Rafael Moresco <[email protected]>
1 parent db4a52a commit 0e9b114

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/odb/src/3dblox/bmapWriter.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "bmapWriter.h"
55

66
#include <fstream>
7-
#include <iostream>
87
#include <string>
98

109
#include "odb/db.h"
@@ -24,12 +23,18 @@ void BmapWriter::writeFile(const std::string& filename,
2423
std::ofstream bmap_file(complete_name);
2524
if (bmap_file.is_open()) {
2625
for (auto bump : region->getChipBumps()) {
26+
std::string line;
2727
const auto inst_name = bump->getInst()->getName();
2828
const auto cell_type = bump->getInst()->getMaster()->getName();
2929
auto point = bump->getInst()->getOrigin();
30-
bmap_file << inst_name + " " + cell_type + " "
31-
+ std::to_string(point.getX() / u) + " "
32-
+ std::to_string(point.getY() / u) + " - -\n";
30+
line.append(inst_name);
31+
line.append(" ");
32+
line.append(cell_type);
33+
line.append(" ");
34+
line.append(std::to_string(point.getX() / u));
35+
line.append(std::to_string(point.getY() / u));
36+
line.append(" - -\n");
37+
bmap_file << line;
3338
}
3439
bmap_file.close();
3540
} else {

0 commit comments

Comments
 (0)