Clang Tidy misc-definitions-in-headers for C

Hi,

I am interested in using the misc-definitions-in-headers for C
projects. I've noticed that checker works flawlessly for C++ projects
but not for C Code.

Is this intentional, because it's technically allowed in C and the OCR
exist only in the C++ Standard?

If so is there a way to use this checker anyway for C Projects? (via
Commandline Overrides)?

If not would an option for the checker that modifies the "LangOptions"
ever be mainlined?

Best Regards
Max

I don’t work on the tooling, but sounds pretty feasible to me.

Hi,

thanks for your reply.

I've already started a PR: ⚙ D111909 [clang-tidy] DefinitionsInHeadersCheck: Added option for checking C Code

I hope I have some time next week to get the test cases done.

Best Regards
Max