[WIP] Add clang-tidy checks to CI - #3553
Conversation
|
A lot of the warnings and errors I see in the lint test I think are resolved in this PR that I was working on: #3527 Let me know if you have any comments. |
|
It takes *way* too long to run this in the CI. Not sure if I like it. |
My guess is that clang-tidy is actually running clang under the hood to do this (actually I am almost certain it is). I wonder if we can cache that build like we do the other builds. |
|
For caching, I have written a clang-tidy runner that runs clang-tidy in parallel and also builds a directory where it caches results; so next time around it only has to process changed files or files that depend on changed files. https://github.com/hzeller/dev-tools/blob/main/run-clang-tidy-cached.cc Might be interesting to play with. |
Thanks a lot! This should be very helpful. |
|
No rush, but are you still working to get this in @AmirhosseinPoolad ? |
Adds automatic linter runs for vpr, libarchfpga and librrgraph to CI. Should wait until #3551 and #3552 are merger before this.