<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">As David Chisnall pointed out to me, there is some inherent support of incremental build due to the way scan-build works. "The standard way of running the static analyser is via the scan-build script, which runs as part of your normal build system.  If you run it as part of an incremental build, then you will get incremental analysis results.  You will not, however, get these merged with the previous set."<div><br></div><div>It would be relatively easy to merge the results in this setting. Note that, this happens to work well because the analyzer only deals with one file at a time, which does limit its power. Having whole program analyzes is something we are interested in doing in the future and it would greatly complicate the merging. Another problem with relying on this approach is that this would only give you file granularity. In principle, one might not need to reanalyze the whole file if one line in it changed. Coming up with a more general solution is a much more difficult problem.</div><div><br></div><div>Another feature that is somewhat related to this is identifying issues and tracking issues over time so that we could detect new warnings that just started appearing after a bunch of changes. This one is important to solve because many workflows involve looking at newly introduced issues. Hopefully, we'll get to this one soon.</div><div><br></div><div>If incremental analysis is something you would love to see in the analyzer, you can chime in by filing an enhancement request on llvm Bugzilla.</div><div><br></div><div>Cheers,</div><div>Anna.</div><div><br><div><div>On May 14, 2012, at 11:19 PM, Umesh Kalappa wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks anna for the clarification and any idea about adding  this feature in future ???<div><br></div><div>~Umesh<br><br><div class="gmail_quote">On Mon, May 14, 2012 at 11:51 PM, Anna Zaks <span dir="ltr"><<a href="mailto:ganna@apple.com" target="_blank">ganna@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Umesh,<br>
<br>
No, currently, the Clang Static Analyzer does not have any support for incremental analysis.<br>
<br>
Cheers,<br>
Anna.<br>
<div><div>On May 14, 2012, at 3:01 AM, Umesh Kalappa wrote:<br>
<br>
> Hi All,<br>
><br>
> My Apologies if the below question was ended up in  the wrong forum.<br>
><br>
> Like to know that did Clang Static Analysis(CSA)  has the feature called incremental analysis ???,When i say incremental here ,I mean when i kick off the CSA on the code  base for the second time with set of files changed then CSA  will use the analysis that was done for  the last time along the doing CSA  for changed files.<br>


><br>
><br>
> Thanks<br>
> ~Umesh<br>
><br>
</div></div>> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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>
</blockquote></div><br>
</div>
</blockquote></div><br></div></body></html>