-
Notifications
You must be signed in to change notification settings - Fork 0
ESD-1959 allow for clang-tidy to be parallized by using the run-clang-tidy scr… #76
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
| ) | ||
| add_custom_target(clang-tidy-all-check | ||
| COMMAND test ! -f fixes.yaml | ||
| COMMAND test ! -s fixes.yaml |
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.
with run-clang-tidy script, it always produces a fixes.yaml, irrespective of whether or not there is an error, so now it tests to make sure to fail if there a file AND its size is greater than zero.
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.
How long until someone checks in an empty fixes.yaml...? 😄
woodfell
left a comment
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.
Nice
| set(x_CLANG_TIDY_NAMES | ||
| run-clang-tidy run-clang-tidy.py | ||
| run-clang-tidy-6.0 run-clang-tidy-6.0.py | ||
| run-clang-tidy-4.0 run-clang-tidy-4.0.py |
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.
We can probably just ditch any version other than 6. This is only here fot legacy reasons and lower versions probably won't work properly.
|
This PR needed to be removed from master for a couple of reasons:
Anyways the attempt of trying to avoid creating a new function and just piggy back off of the old PR is not working, will need to rewrite the implementation as a new PR |
Made a change to the
clang-tidystage so that it prefers using the parallel script for launching clang-tidy static analysis over using the single threaded approach.