Skip to content

grt: refactor FastRouteCore files#9785

Open
openroad-ci wants to merge 7 commits intoThe-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:grt_refactor
Open

grt: refactor FastRouteCore files#9785
openroad-ci wants to merge 7 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! 👍"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants