Skip to content

Commit 18a4b9a

Browse files
committed
odb: clang-tidy 3dblox headers
Signed-off-by: Rafael Moresco <[email protected]>
1 parent 3c550d8 commit 18a4b9a

File tree

7 files changed

+21
-19
lines changed

7 files changed

+21
-19
lines changed

src/odb/src/3dblox/baseWriter.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
#include "baseWriter.h"
55

6+
#include <cstddef>
67
#include <fstream>
78
#include <sstream>
9+
#include <string>
810

11+
#include "odb/defout.h"
12+
#include "odb/lefout.h"
913
#include "utl/Logger.h"
1014
#include "utl/ScopedTemporaryFile.h"
1115

@@ -17,7 +21,7 @@ BaseWriter::BaseWriter(utl::Logger* logger) : logger_(logger)
1721

1822
void BaseWriter::writeHeader(YAML::Node& header_node, odb::dbDatabase* db)
1923
{
20-
header_node["version"] = "2.5"; // TODO: add version to DB
24+
header_node["version"] = "2.5"; // TODO: add version to DB
2125
header_node["unit"] = "micron";
2226
header_node["precision"] = db->getDbuPerMicron();
2327
}
@@ -105,11 +109,11 @@ void BaseWriter::logError(const std::string& message)
105109

106110
std::string BaseWriter::trim(const std::string& str)
107111
{
108-
size_t first = str.find_first_not_of(' ');
112+
std::size_t first = str.find_first_not_of(' ');
109113
if (first == std::string::npos) {
110114
return "";
111115
}
112-
size_t last = str.find_last_not_of(' ');
116+
std::size_t last = str.find_last_not_of(' ');
113117
return str.substr(first, (last - first + 1));
114118
}
115119

src/odb/src/3dblox/baseWriter.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@
33

44
#pragma once
55

6+
#include <yaml-cpp/node/node.h>
67
#include <yaml-cpp/yaml.h>
78

8-
#include <map>
99
#include <string>
10-
#include <vector>
1110

1211
#include "objects.h"
1312
#include "odb/db.h"
1413
#include "odb/dbObject.h"
15-
#include "odb/dbSet.h"
1614
#include "odb/dbShape.h"
17-
#include "odb/dbTransform.h"
18-
#include "odb/dbTypes.h"
19-
#include "odb/defout.h"
20-
#include "odb/gdsout.h"
21-
#include "odb/lefout.h"
22-
2315
namespace utl {
2416
class Logger;
2517
}

src/odb/src/3dblox/chipletHierarchy.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
#include "chipletHierarchy.h"
55

66
#include <algorithm>
7+
#include <map>
78
#include <queue>
9+
#include <set>
10+
#include <vector>
811

12+
#include "odb/db.h"
913
#include "utl/Logger.h"
1014

1115
namespace odb {

src/odb/src/3dblox/dbvWriter.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33

44
#include "dbvWriter.h"
55

6+
#include <yaml-cpp/yaml.h>
7+
68
#include <filesystem>
7-
#include <fstream>
89
#include <set>
910
#include <sstream>
1011
#include <string>
1112

12-
#include "objects.h"
13+
#include "baseWriter.h"
14+
#include "odb/db.h"
15+
#include "odb/geom.h"
1316
#include "utl/Logger.h"
1417

1518
namespace odb {

src/odb/src/3dblox/dbvWriter.h

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

44
#pragma once
55

6-
#include <map>
76
#include <string>
87
#include <vector>
98

109
#include "baseWriter.h"
1110
#include "chipletHierarchy.h"
12-
#include "objects.h"
11+
#include "odb/db.h"
12+
#include "odb/geom.h"
1313

1414
namespace utl {
1515
class Logger;

src/odb/src/3dblox/dbxWriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
#include "dbxWriter.h"
55

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

9-
#include "objects.h"
8+
#include "baseWriter.h"
109
#include "utl/Logger.h"
1110

1211
namespace odb {

src/odb/src/3dblox/dbxWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <vector>
1111

1212
#include "baseWriter.h"
13-
#include "objects.h"
13+
#include "odb/db.h"
1414

1515
namespace utl {
1616
class Logger;

0 commit comments

Comments
 (0)