Skip to content

grt: refactor FastRouteCore files#9785

Merged
eder-matheus merged 8 commits intoThe-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:grt_refactor
Mar 25, 2026
Merged

grt: refactor FastRouteCore files#9785
eder-matheus merged 8 commits intoThe-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:grt_refactor

Conversation

@openroad-ci
Copy link
Collaborator

Updates on multiple FastRouteCore files, including:

  • Removing duplicated code, creating lambda functions for them
  • Using cpp-style casting
  • Using referrences instead of raw pointers when applicable

The updates should not affect any functionality.

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

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

Copy link
Contributor

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

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 introduces a series of refactoring changes across multiple files in the FastRouteCore. The main changes include removing duplicated code by introducing lambda functions and a helper function, replacing C-style casts with static_cast, and using references instead of raw pointers where applicable. These changes significantly improve code readability, maintainability, and adherence to modern C++ practices. The logic remains equivalent, and the changes do not appear to affect functionality. Overall, this is a great set of improvements to the codebase.

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@eder-matheus eder-matheus requested a review from maliberty March 17, 2026 13:30
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@eder-matheus
Copy link
Member

@maliberty This is ready for review, and don't have any QoR impact. It's just a refactoring to make the code more readable.

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@eder-matheus eder-matheus merged commit 5433825 into The-OpenROAD-Project:master Mar 25, 2026
15 checks passed
@openroad-ci openroad-ci deleted the grt_refactor branch March 25, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants