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

Max Schrötter via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 27 02:38:14 PDT 2021


Hi,

thanks for your reply.

I've already started a PR: https://reviews.llvm.org/D111909

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

Best Regards
Max

On Mon, Oct 25, 2021 at 10:02:45AM -0700, David Blaikie wrote:
> 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 --------------
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/20211027/34bfb698/attachment.sig>


More information about the cfe-dev mailing list