erenon / bazel_clang_tidy

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

Use source file extension when applying toolchain flags #42

Closed oliverlee closed 1 year ago

oliverlee commented 1 year ago

Obtain C or C++ flags from the toolchain depending on the source file extension. This prevents use of C++ flags (e.g. -std=c++17) with C source files.

erenon commented 1 year ago

Thanks!