[cfe-commits] [PATCH] call graph building

Zhongxing Xu xuzhongxing at gmail.com
Tue Jul 14 18:53:47 PDT 2009


On Wed, Jul 15, 2009 at 8:33 AM, Ted Kremenek<kremenek at apple.com> wrote:
> On Jul 13, 2009, at 6:31 AM, Zhongxing Xu wrote:
>
> This is an initial implementation of call graph building based on pch
> reader and the new Program/Entity facility. It is very primitive but
> functional.
> Put the files under clang/tools/wpa (meaning 'whole program
> analysis'). After 'make', a new command 'clang-analyze' will be
> generated. It takes a list of .ast files and build call graph over
> them.
>
> Hi Zhongxing,
> I would call the program 'clang-callgraph' so that people don't confuse it
> with the "static analyzer".  Comments inline.

Hi Ted & Daniel,

My original intention is not to make this a standalone callgraph tool.
I intend it to gradually become the whole program analysis driver. And
the first step usually is to build the call graph. Thus I call it
'clang-analyzer'.

When CallGraph.h CallGraph.cpp becomes mature enough, I would like it
to be moved into libAnalysis or elsewhere suitable.




More information about the cfe-commits mailing list