Skip to content

Commit dc90327

Browse files
authored
Merge pull request #10195 from The-OpenROAD-Project-staging/tap-tidy-naming
tap: adjust naming to Google-style (excluding method names)
2 parents 48d687f + 9f490a9 commit dc90327

8 files changed

Lines changed: 151 additions & 151 deletions

File tree

src/gui/src/search.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Search : public QObject, public odb::dbBlockCallBackObj
6767
template <typename T>
6868
struct BBoxIndexableGetter
6969
{
70-
using result_type = odb::Rect;
70+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
7171
odb::Rect operator()(T t) const { return t->getBBox()->getBox(); }
7272
odb::Rect operator()(const SNetValue<T>& t) const
7373
{
@@ -85,7 +85,7 @@ class Search : public QObject, public odb::dbBlockCallBackObj
8585

8686
struct FillIndexableGetter
8787
{
88-
using result_type = odb::Rect;
88+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
8989
odb::Rect operator()(odb::dbFill* t) const
9090
{
9191
odb::Rect fill;

src/pdn/src/power_cells.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class GridSwitchedPower
119119

120120
struct InstIndexableGetter
121121
{
122-
using result_type = odb::Rect;
122+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
123123
odb::Rect operator()(odb::dbInst* inst) const
124124
{
125125
return inst->getBBox()->getBox();
@@ -136,7 +136,7 @@ class GridSwitchedPower
136136

137137
struct RowIndexableGetter
138138
{
139-
using result_type = odb::Rect;
139+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
140140
odb::Rect operator()(odb::dbRow* row) const { return row->getBBox(); }
141141
};
142142
using RowTree

src/pdn/src/shape.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ class Shape
6060
};
6161
struct RectIndexableGetter
6262
{
63-
using result_type = odb::Rect;
63+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
6464
odb::Rect operator()(const ShapePtr& t) const { return t->getRect(); }
6565
};
6666
struct ObstructionIndexableGetter
6767
{
68-
using result_type = odb::Rect;
68+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
6969
odb::Rect operator()(const ShapePtr& t) const
7070
{
7171
return t->getObstruction();

src/pdn/src/via.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ class Via
717717
public:
718718
struct ViaIndexableGetter
719719
{
720-
using result_type = odb::Rect;
720+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
721721
odb::Rect operator()(const ViaPtr& via) const { return via->getArea(); }
722722
};
723723
using ViaTree = bgi::rtree<ViaPtr, bgi::quadratic<16>, ViaIndexableGetter>;

src/psm/src/ir_network.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ namespace psm {
2525
template <typename T>
2626
struct RectIndexableGetter
2727
{
28-
using result_type = odb::Rect;
28+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
2929
odb::Rect operator()(const T* t) const { return t->getShape(); }
3030
};
3131

3232
template <typename T>
3333
struct PointIndexableGetter
3434
{
35-
using result_type = odb::Point;
35+
using result_type = odb::Point; // NOLINT(readability-identifier-naming)
3636
odb::Point operator()(const T* t) const { return t->getPoint(); }
3737
};
3838

src/tap/include/tap/tapcell.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ class Tapcell
100100
private:
101101
enum class EdgeType
102102
{
103-
Left,
104-
Top,
105-
Right,
106-
Bottom,
107-
Unknown
103+
kLeft,
104+
kTop,
105+
kRight,
106+
kBottom,
107+
kUnknown
108108
};
109109
struct Edge
110110
{
@@ -115,15 +115,15 @@ class Tapcell
115115
};
116116
enum class CornerType
117117
{
118-
OuterBottomLeft,
119-
OuterTopLeft,
120-
OuterTopRight,
121-
OuterBottomRight,
122-
InnerBottomLeft,
123-
InnerTopLeft,
124-
InnerTopRight,
125-
InnerBottomRight,
126-
Unknown
118+
kOuterBottomLeft,
119+
kOuterTopLeft,
120+
kOuterTopRight,
121+
kOuterBottomRight,
122+
kInnerBottomLeft,
123+
kInnerTopLeft,
124+
kInnerTopRight,
125+
kInnerBottomRight,
126+
kUnknown
127127
};
128128
struct PartialOverlap
129129
{
@@ -143,7 +143,7 @@ class Tapcell
143143

144144
struct InstIndexableGetter
145145
{
146-
using result_type = odb::Rect;
146+
using result_type = odb::Rect; // NOLINT(readability-identifier-naming)
147147
odb::Rect operator()(odb::dbInst* inst) const
148148
{
149149
return inst->getBBox()->getBox();

0 commit comments

Comments
 (0)