Skip to content

Commit 7754a99

Browse files
committed
grt: clang-tidy
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
1 parent 1b1ddcc commit 7754a99

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/grt/src/cugr/include/CUGR.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <csignal>
44
#include <memory>
5+
#include <set>
56
#include <string>
67
#include <utility>
78
#include <vector>
@@ -10,6 +11,7 @@
1011

1112
namespace odb {
1213
class dbDatabase;
14+
class dbNet;
1315
} // namespace odb
1416

1517
namespace sta {
@@ -67,7 +69,7 @@ class CUGR
6769
~CUGR();
6870
void init(int min_routing_layer,
6971
int max_routing_layer,
70-
std::set<odb::dbNet*> clock_nets);
72+
const std::set<odb::dbNet*>& clock_nets);
7173
void route();
7274
void write(const std::string& guide_file);
7375
NetRouteMap getRoutes();

src/grt/src/cugr/src/CUGR.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <iostream>
99
#include <limits>
1010
#include <memory>
11+
#include <set>
1112
#include <sstream>
1213
#include <utility>
1314
#include <vector>
@@ -42,7 +43,7 @@ CUGR::~CUGR() = default;
4243

4344
void CUGR::init(const int min_routing_layer,
4445
const int max_routing_layer,
45-
std::set<odb::dbNet*> clock_nets)
46+
const std::set<odb::dbNet*>& clock_nets)
4647
{
4748
design_ = std::make_unique<Design>(db_,
4849
logger_,

src/grt/src/cugr/src/Design.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "Design.h"
22

33
#include <iostream>
4+
#include <set>
45
#include <vector>
56

67
#include "CUGR.h"
@@ -12,7 +13,6 @@
1213
#include "odb/dbShape.h"
1314
#include "odb/dbTypes.h"
1415
#include "odb/geom.h"
15-
#include "sta/Liberty.hh"
1616
#include "utl/Logger.h"
1717

1818
namespace grt {
@@ -23,7 +23,7 @@ Design::Design(odb::dbDatabase* db,
2323
const Constants& constants,
2424
const int min_routing_layer,
2525
const int max_routing_layer,
26-
std::set<odb::dbNet*> clock_nets)
26+
const std::set<odb::dbNet*>& clock_nets)
2727
: block_(db->getChip()->getBlock()),
2828
tech_(db->getTech()),
2929
logger_(logger),

src/grt/src/cugr/src/Design.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Design
3939
const Constants& constants,
4040
int min_routing_layer,
4141
int max_routing_layer,
42-
std::set<odb::dbNet*> clock_nets);
42+
const std::set<odb::dbNet*>& clock_nets);
4343
int getLibDBU() const { return lib_dbu_; }
4444

4545
CostT getUnitLengthWireCost() const { return unit_length_wire_cost_; }

0 commit comments

Comments
 (0)