google / llvm-premerge-checks

CI system for premerge-testing in LLVM project
Apache License 2.0
40 stars 37 forks source link

enable clang-tidy by opt-in #367

Open metaflow opened 2 years ago

metaflow commented 2 years ago

at the moment clang-tidy is completly disabled as I have got multiple reports that they are not usable anymore.

ChristianKuehnel commented 2 years ago

I would be great to have such a feature for /clang-tools-extra/clangd. We recently cleaned up a couple of findings in our subfolder and we would like to prevent backsliding.

joker-eph commented 2 years ago

Please bring back clang-tidy, that was really valuable to have on review when it was enabled!

I just landed > 27 commits to fix various clang-tidy issues in mlir/.

ChristianKuehnel commented 2 years ago

@metaflow I would be interesting in working on this as we would like to use it for clangd.

I guess this would involve:

excludes from the current clang-tidy.ignore

ChristianKuehnel commented 2 years ago

clang-tidy-diff.py already does most of the work around filtering findings related to a patch. I added JSON output in my patch so we don't have to parse the text output in our scripting.