<div dir="ltr">Hi Andrzej,<div><br></div><div>Clang itself might not have this flag, but scan-build has the `--status-bugs`. Alternatively you can ask Clang to output the report in `.plist` file, and then you can parse that file. (So you end up writing a wrapper around Clang, but that's nearly the same thing what scan-build is doing.)</div><div><br></div><div>Regards,</div><div>Laszlo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 7, 2017 at 4:41 PM, Andrzej Krzemienski via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Everyone,<br></div>When I run static analyzer from clang with `clang++ --analyze`, is there a way to make clang return a non-zero status code in case any warning from the analyzer is reported? (I am looking for something analogous to -Werror for normal compiler warnings.)<br><br></div>Regards,<br></div>&rzej;<br></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>