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

Jordan Rose jordan_rose at apple.com
Fri Nov 15 14:14:57 PST 2013


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. 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.

Jordan



More information about the cfe-dev mailing list