<div dir="ltr">That's exactly what I needed, thanks a lot!<div><br></div><div>/Carlos</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 4, 2021 at 2:22 AM Volodymyr Sapsai <<a href="mailto:vsapsai@apple.com">vsapsai@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">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" target="_blank">https://clang.llvm.org/docs/CommandGuide/diagtool.html</a><div><br></div><div>Thanks,</div><div>Volodymyr<br><div><br><blockquote type="cite"><div>On Nov 30, 2021, at 05:23, Carlos Galvez via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:</div><br><div><div dir="ltr">Hi!<div><br></div><div>I'm not sure this is the right mail list, so apologies in advance if I got it wrong.</div><div><br></div><div>I wanted to ask: is it possible in clang to query the list of enabled compiler warnings? In GCC one can do:</div><div><br></div><div>gcc -Q -Wall --help=warnings | grep enabled<br></div><div><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)"><br></span></div><div>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></div><div><br></div><div>Thanks!</div><div><br></div><div>Best regards,</div><div>Carlos</div></div>
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br></div></blockquote></div><br></div></div></blockquote></div>