Hi, gcc -Wall -Q --help=warnings | grep enabled gcc allows this to print what -Wall represents. Is there a way to do the same in clang? Thanks. -- Regards, Peng
Fāng-ruì Sòng via llvm-dev
2021-Mar-29 02:33 UTC
[llvm-dev] How to print what -Wall represents?
On Sun, Mar 28, 2021 at 2:00 PM Peng Yu via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi, > > gcc -Wall -Q --help=warnings | grep enabled > > gcc allows this to print what -Wall represents. > > Is there a way to do the same in clang? Thanks. > > -- > Regards, > Peng > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >diagtool show-enabled a.c diagtool is a tool in clang-tools-extra. On Debian (I think) it is packaged in clang-tools. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210328/f3afc671/attachment.html>