[cfe-dev] Running scan-build on multiple source files
Jordan Rose
jordan_rose at apple.com
Thu May 30 10:11:30 PDT 2013
On May 30, 2013, at 7:28 , David Blaikie <dblaikie at gmail.com> wrote:
>
> On May 30, 2013 5:55 AM, "Robert Henry" <rrh at newrelic.com> wrote:
> >
> > I have two source files each of which is analyzed independently
> > without error by scan-build. However, the combination of the 2 files
> > should trigger a complaint from scan-build, assuming scan-build has
> > inter-procedural analysis spanning the two compilation units.
>
> That assumption would be incorrect. The Clang Static Analyzer has no cross-TU power at the moment.
>
Right. scan-build's job is simply to find out which files you want to compile (more useful when you have a build system rather than a single explicit build command). Analysis is still done on each TU separately.
Sorry!
Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130530/0847452e/attachment.html>
More information about the cfe-dev
mailing list