[cfe-dev] At what scope does the call graph analyzer work?

Anna Zaks ganna at apple.com
Mon Nov 18 11:04:39 PST 2013


On Nov 15, 2013, at 2:14 PM, Jordan Rose <jordan_rose at apple.com> wrote:

> 
> On Nov 15, 2013, at 13:44, Chad Rosier <mcrosier at codeaurora.org> wrote:
> 
>> I have a fellow engineer what would like to use clang to generate call
>> graphs for his program using:
>> 
>> -analyze -analyzer-checker=ViewCallGraph
>> 
>> Can someone tell me if the call graphs are limited to the scope of a
>> translation unit or will clang produce something for the entire program?
> 
> Just the translation unit, unfortunately.

Correct.

> The call graph is intended to allow the analyzer to pick a good order to analyze individual functions, not as a full analysis tool in its own right.
> 

Call graph is designed to be general enough to be consumed by analyses other than the static analyzer. Currently, the static analyzer is the only consumer of it.

> Jordan
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list