<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 21, 2013 at 6:16 PM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is the right list for analyzer questions. Ted Kremenek, Anna Zaks, and I are the primary maintainers. What in particular is broken in ccc-analyze / scan-build?<br>

<br>
Also, being able to run the analyzer against a compilation database seems like a good feature. I think the auxiliary "clang-check" executable can already do this with its -analyze option, though I haven't tried it, but it doesn't allow for much customization of the output like scan-build does. Still, it could give you a place to start.<br>
</blockquote><div><br></div><div>Just an additional FYI: clang-tidy also allows to run static analyzer checks and supports running via a compilation database.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
>       For example, to run clang-check on all files in a subtree of the<br>
>       source tree, use:<br>
><br>
>         find path/in/subtree -name '*.cpp'|xargs clang-check<br>
><br>
>       or using a specific build path:<br>
><br>
>         find path/in/subtree -name '*.cpp'|xargs clang-check -p build/path<br>
<span class="HOEnZb"><font color="#888888"><br>
Jordan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Oct 21, 2013, at 3:47 , Laszlo Nagy <<a href="mailto:rizsotto.mailinglist@gmail.com">rizsotto.mailinglist@gmail.com</a>> wrote:<br>
<br>
> hi there,<br>
><br>
> started to write a python script around Clang's static analyzer.<br>
> mainly because found difficult to use the `scan-build` script. wanted<br>
> to run against a compilation database instead of intercept the<br>
> compiler calls. but would like to preserve the current usage as<br>
> well... then at the same time, saw this page<br>
> <<a href="http://clang-analyzer.llvm.org/open_projects.html" target="_blank">http://clang-analyzer.llvm.org/open_projects.html</a>> which suggest the<br>
> rewrite as well. so, it might be a perfect match! ;)<br>
><br>
> and as i try to copy the functionality of the `ccc-analyze` and<br>
> `scan-build` scripts, discovered few minor bugs. (or they are not<br>
> bugs, and i'm the one who can't read perl well.)<br>
><br>
> now i'm looking for a person i can ask about these scripts.<br>
><br>
> regards,<br>
> Laszlo<br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div></div>