<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Not sure it would help you with your goal. But the closest we have for this purpose is diagtool <a href="https://clang.llvm.org/docs/CommandGuide/diagtool.html" class="">https://clang.llvm.org/docs/CommandGuide/diagtool.html</a><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Volodymyr<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 30, 2021, at 05:23, Carlos Galvez via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi!<div class=""><br class=""></div><div class="">I'm not sure this is the right mail list, so apologies in advance if I got it wrong.</div><div class=""><br class=""></div><div class="">I wanted to ask: is it possible in clang to query the list of enabled compiler warnings? In GCC one can do:</div><div class=""><br class=""></div><div class="">gcc -Q -Wall --help=warnings | grep enabled<br class=""></div><div class=""><span style="color:rgb(35,38,41);font-family:ui-monospace,"Cascadia Mono","Segoe UI Mono","Liberation Mono",Menlo,Monaco,Consolas,monospace;font-size:13px;white-space:pre-wrap;background-color:rgb(227,230,232)" class=""><br class=""></span></div><div class="">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.<br class=""></div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Carlos</div></div>
_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></div></body></html>