[cfe-dev] Clang Tidy misc-definitions-in-headers for C

Max Schrötter via cfe-dev cfe-dev at lists.llvm.org
Mon Oct 11 06:58:38 PDT 2021


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20211011/3ba1e093/attachment-0001.sig>


More information about the cfe-dev mailing list