-
Notifications
You must be signed in to change notification settings - Fork 1.7k
run clang-tidy using a common config and reduced set of tests #1923
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
Conversation
.github/workflows/clang-tidy.yml
Outdated
@@ -35,4 +35,4 @@ jobs: | |||
- name: run | |||
shell: bash | |||
working-directory: ${{ runner.workspace }}/_build | |||
run: run-clang-tidy -checks=*,-clang-analyzer-deadcode*,-clang-analyzer-optin* | |||
run: run-clang-tidy -checks=*,-clang-analyzer-deadcode*,-clang-analyzer-optin*,-fuchsia-*,-llvmlibc-*,-modernize-use-trailing-return-type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to place this in a .clang-tidy
file in the root source directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i'm also going to reduce the number of checks we're running.
Just a general comment: it might be best to approach this as one check per PR, |
yeah, it's a draft PR so i can split it up later. |
.github/workflows/clang-tidy.yml
Outdated
@@ -35,4 +35,4 @@ jobs: | |||
- name: run | |||
shell: bash | |||
working-directory: ${{ runner.workspace }}/_build | |||
run: run-clang-tidy -checks=*,-clang-analyzer-deadcode*,-clang-analyzer-optin* | |||
run: run-clang-tidy -config-file=${{ runner.workspace }}/.clang-tidy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be picked up automatically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not finding it, which suggests the same as when i passed it explicitly: that it's not running with the root as a parent directory, somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it finds it locally, fwiw
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
ok fixed it. clang-tidy is now running properly with the common config. |
No description provided.