[cfe-dev] [clang] Is it possible to query enabled compiler warnings?
Carlos Galvez via cfe-dev
cfe-dev at lists.llvm.org
Sun Dec 5 05:01:24 PST 2021
That's exactly what I needed, thanks a lot!
/Carlos
On Sat, Dec 4, 2021 at 2:22 AM Volodymyr Sapsai <vsapsai at apple.com> wrote:
> Not sure it would help you with your goal. But the closest we have for
> this purpose is diagtool
> https://clang.llvm.org/docs/CommandGuide/diagtool.html
>
> Thanks,
> Volodymyr
>
> On Nov 30, 2021, at 05:23, Carlos Galvez via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
> Hi!
>
> I'm not sure this is the right mail list, so apologies in advance if I got
> it wrong.
>
> I wanted to ask: is it possible in clang to query the list of enabled
> compiler warnings? In GCC one can do:
>
> gcc -Q -Wall --help=warnings | grep enabled
>
> We want to programatically find out what warnings are included in what
> warning groups (e.g. -Wall, -Wextra). Finding this out from the docs is
> tedious, since the warnings aren't listed in plain form - one needs to
> click through the different warning sub-groups. Ideally we don't want to
> parse the clang source code either.
>
> Thanks!
>
> Best regards,
> Carlos
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20211205/4bdc717c/attachment.html>
More information about the cfe-dev
mailing list