[cfe-dev] Running scan-build on multiple source files
rrh at newrelic.com
Thu May 30 10:20:00 PDT 2013
I look forward to the day when there's a program library of some kind!
That's a big effort, I know, having worked on one for the Cray MTA
On Thu, May 30, 2013 at 10:11 AM, Jordan Rose <jordan_rose at apple.com> wrote:
> 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.
Robert Henry, New Relic
More information about the cfe-dev