I work in a code base where there is a mixture of C and C++. I noticed that C headers (files that are guarded by extern "C") are being treated like C++ files, which causes tooling like Clang Tidy to apply C++ specific checks to these files. I believe the issue could happen specifically when C headers are included in C++ files.
I work in a code base where there is a mixture of C and C++. I noticed that C headers (files that are guarded by
extern "C") are being treated like C++ files, which causes tooling like Clang Tidy to apply C++ specific checks to these files. I believe the issue could happen specifically when C headers are included in C++ files.