Skip to content

tap: adjust naming to Google-style (excluding method names)#10195

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:tap-tidy-naming
Apr 20, 2026
Merged

tap: adjust naming to Google-style (excluding method names)#10195
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:tap-tidy-naming

Conversation

@openroad-ci

Copy link
Copy Markdown
Member

Summary

adjust naming to Google-style (excluding method names)

Type of Change

  • Refactoring

Impact

None

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have signed my commits (DCO).

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request applies code style and linting updates across several files. It introduces NOLINT annotations to result_type aliases to address naming convention warnings and renames enum members in EdgeType and CornerType to follow the k prefix naming standard. I have no feedback to provide.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread src/tap/src/tapcell.cpp
prev_pt = pt;

edges.push_back(Edge{EdgeType::Unknown, pt0, pt1});
edges.push_back(Edge{EdgeType::kUnknown, pt0, pt1});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use designated initializer list to initialize 'Edge' [modernize-use-designated-initializers]

Suggested change
edges.push_back(Edge{EdgeType::kUnknown, pt0, pt1});
edges.push_back(Edge{.type=EdgeType::kUnknown, .pt0=pt0, .pt1=pt1});
Additional context

src/tap/include/tap/tapcell.h:108: aggregate type is defined here

  struct Edge
  ^

Comment thread src/tap/src/tapcell.cpp
const odb::Point pt0(prev_pt.x(), prev_pt.y());
const odb::Point pt1((*area.begin()).x(), (*area.begin()).y());
edges.push_back(Edge{EdgeType::Unknown, pt0, pt1});
edges.push_back(Edge{EdgeType::kUnknown, pt0, pt1});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use designated initializer list to initialize 'Edge' [modernize-use-designated-initializers]

Suggested change
edges.push_back(Edge{EdgeType::kUnknown, pt0, pt1});
edges.push_back(Edge{.type=EdgeType::kUnknown, .pt0=pt0, .pt1=pt1});
Additional context

src/tap/include/tap/tapcell.h:108: aggregate type is defined here

  struct Edge
  ^

Comment thread src/tap/src/tapcell.cpp
for (const auto& pt : area) {
const odb::Point corner(pt.x(), pt.y());
corners.push_back(Corner{CornerType::Unknown, corner});
corners.push_back(Corner{CornerType::kUnknown, corner});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use designated initializer list to initialize 'Corner' [modernize-use-designated-initializers]

Suggested change
corners.push_back(Corner{CornerType::kUnknown, corner});
corners.push_back(Corner{.type=CornerType::kUnknown, .pt=corner});
Additional context

src/tap/include/tap/tapcell.h:134: aggregate type is defined here

  struct Corner
  ^

@maliberty maliberty enabled auto-merge April 20, 2026 01:31
@maliberty maliberty merged commit dc90327 into The-OpenROAD-Project:master Apr 20, 2026
16 of 17 checks passed
@maliberty maliberty deleted the tap-tidy-naming branch April 20, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants