bazel_clang_tidy
bazel_clang_tidy copied to clipboard
C headers can mistakenly be recognized as C++
Hi.
While I'm using bazel_clang_tidy
at a01e5e262e6d604c21ed11c420a2a245397b995a, I noticed my C header with the extension ".h" is mistakenly recognized as C++.
The cause of this issue is this line. When I changed its condition to src.extension in ["c", "h"]
, the header was correctly recognized as C.
I'd like to suggest changing that line so that the tool can correctly recognize C/C++, also taking other extensions (e.g. ".C") into account.
Any opinions?