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

Clang tidy #6497

Merged

Conversation

openroad-ci
Copy link
Collaborator

No description provided.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

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

@@ -125,7 +125,8 @@ static constexpr ConfigValues kConfig = {
.start_dir = "src/",
.file_exclude_re
= "src/sta/" // Don't check 3rd-party submodule
"|codeGenerator/templates/",
"|codeGenerator/templates/"
"|build/", // Don't check generated code
Copy link
Member

Choose a reason for hiding this comment

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

@hzeller FYI

Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be necessary, as our .start_dir = "src", meaning we don't follow directories and files outside that to run clang-tidy on.

If there are reports in the clang-tidy output that do point to build/, then it is probably because clang-tidy followed some generated include somewhere and reports things there (do you have an example ?). It won't be fixed by this patch though.

I actually have a fix for that by filtering out messages that don't refer to the file in question, I can probably send a PR later this evening.

Copy link
Member

Choose a reason for hiding this comment

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

I did see reports in the swig generated code which isn't included anywhere afaik. I suspect it is because the cmake in the src references it.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

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

Copy link
Contributor

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

@openroad-ci openroad-ci force-pushed the clang-tidy branch 2 times, most recently from f4857e7 to 9636aa4 Compare January 11, 2025 06:37
Copy link
Contributor

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

2 similar comments
Copy link
Contributor

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

Copy link
Contributor

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

@maliberty maliberty merged commit 5980343 into The-OpenROAD-Project:master Jan 11, 2025
11 checks passed
@maliberty maliberty deleted the clang-tidy branch January 11, 2025 07:59
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