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

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Mon Oct 25 10:02:45 PDT 2021


On Mon, Oct 11, 2021 at 6:58 AM Max Schrötter via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> 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?
>

I don't work on the tooling, but sounds pretty feasible to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20211025/bda4a7f5/attachment.html>


More information about the cfe-dev mailing list