[cfe-dev] Running scan-build on multiple source files
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev