bazel_clang_tidy
bazel_clang_tidy copied to clipboard
Run clang-tidy on Bazel C++ targets directly, efficiently, with caching enabled
We can pass `.clang-tidy` config around so that `clang-tidy` will always find it when running, thus removing the need for "no-sandbox" execution constraint.
How would I be able to pass an arbitrary command line param (specifically `--load`, to load a custom clang-tidy check)? Thanks in advance!
Like https://github.com/erenon/bazel_clang_tidy/pull/32, but as opt-in behavior. Additionally allow ignoring generated includes in bazel-out/ The opt-in part is handled via `bool_flag`s, which needs Skylib.
My project builds with clang-cl, but when I use this aspect, it doesn't see certain system headers. Looking into the clang invocation with (`-v`), it seems the toolchain is slightly...
Running the same command twice runs clang-tidy on all the files each time, which seems to indicate that the reports are not cached. Command used: `bazel build --config=clang-tidy //...` .bazelrc...
It seems that the implementation dependencies are not included in the compilation context, so clang-tidy doesn't see the headers. I tried to debug this problem, but I actually have no...
Hi , I have a global clang-tidy profile in our monorepo but in a particular service i dont want to use global configuration rather i have different set of checks....
Hi, I wrote https://github.com/aspect-build/bazel-super-formatter which intends to format code in all languages. Right now clang-tidy is the most important missing tool. I wonder if you have a long-term roadmap for...
I have a maybe controversial addon here (probably wen can make it configurable somehow), but I think this might help other users as well. Background: our clang-tidy config (probably others...