Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ant: fix tsan warnings and memory leak #5454

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

eder-matheus
Copy link
Collaborator

No description provided.

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

@@ -179,6 +179,7 @@ class AntennaChecker
void calculateCAR(GateToLayerToNodeInfo& gate_info);
bool checkRatioViolations(odb::dbTechLayer* layer,
const NodeInfo& node_info,
const float ratio_margin,
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: parameter 'ratio_margin' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const float ratio_margin,
float ratio_margin,

@@ -199,11 +200,13 @@
void calculateWirePar(odb::dbTechLayer* tech_layer, NodeInfo& info);
bool checkPAR(odb::dbTechLayer* tech_layer,
const NodeInfo& info,
const float ratio_margin,
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: parameter 'ratio_margin' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const float ratio_margin,
float ratio_margin,

src/ant/include/ant/AntennaChecker.hh Outdated Show resolved Hide resolved
@maliberty maliberty enabled auto-merge July 25, 2024 23:11
Signed-off-by: Eder Monteiro <[email protected]>
Copy link
Contributor

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

@maliberty maliberty merged commit 0623f45 into The-OpenROAD-Project:master Jul 25, 2024
9 checks passed
@eder-matheus eder-matheus deleted the ant_tsan branch July 25, 2024 23:54
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.

2 participants