-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add clang-tidy to buildsystem checks #1063
Conversation
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.
Thank you! I think clang-tidy needs to be aware of the build system (https://blog.kitware.com/static-checks-with-cmake-cdash-iwyu-clang-tidy-lwyu-cpplint-and-cppcheck/ and http://mariobadr.com/using-clang-tidy-with-cmake-36.html).
What we need to think about is how/when we merge this. Because previously, we have to fix all the issues it finds. And we should never ever have a non-passing CI state.
So my proposal is to not enable the check by default, so we can gradually fix all the problems and after that, we enable it so that Kevin fails.
I want to let this here:
Here is a list with checks: |
Which of these checks do we want to focus on? EDIT1: Excluded some spammy commands from the list.
EDIT2: With these commands we are probably fine and should be not having so many errors.
The problem is just, that it doesn't find the header files and this throws mostly (afais) the errors. |
Nice work, I close this due to inactivity and continue working on it in #1157. Feel free to reopen if you add commits to this PR. Cheers. |
Fixes #1060