bazel_clang_tidy icon indicating copy to clipboard operation
bazel_clang_tidy copied to clipboard

C headers can mistakenly be recognized as C++

Open yuyawk opened this issue 4 months ago • 4 comments

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?

yuyawk avatar Oct 14 '24 14:10 yuyawk