erenon / bazel_clang_tidy

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

fix: Take `--conlyopt` into consideration #77

Closed yuyawk closed 1 month ago

yuyawk commented 1 month ago

Recent C/C++ compilation in Bazel supports the command-line option --conlyopt to specify the options only applied for C (not for C++).

This PR adds the command-line flags generated by the corresponding cpp fragment conlyopts. For backward compatibility, this change is guarded by hasattr.

erenon commented 1 month ago

thanks! merged.