erenon / bazel_clang_tidy

Run clang-tidy on Bazel C++ targets directly, efficiently, with caching enabled
MIT License
109 stars 58 forks source link

Passing `--load` for custom clang-tidy checks #55

Open connorjsmith opened 11 months ago

connorjsmith commented 11 months ago

How would I be able to pass an arbitrary command line param (specifically --load, to load a custom clang-tidy check)?

Thanks in advance!

erenon commented 11 months ago

Try pass it through --copts. If that works, you can add it to your bazelrc (here: https://github.com/erenon/bazel_clang_tidy/blob/master/.bazelrc)