[cfe-dev] CFG documentation
Ted Kremenek
kremenek at apple.com
Thu Dec 16 16:48:06 PST 2010
Hi Gaurav,
There is some documentation on the CFG here:
http://clang.llvm.org/docs/InternalsManual.html#CFG
It's a bit dated, but it explains the core concepts of how the CFG is represented. The CFG has recently been expanded so that it can contain other elements besides just Stmt*, but the design is still the same.
Note that you can dump CFGs from the command line:
$ clang -fsyntax-only -Xclang -analyze -Xclang -dump-cfg t.c
On Dec 15, 2010, at 9:25 AM, Gaurav Mittal wrote:
> Hi folks,
> I'm trying to hack CLANG to translate its Control Flow Graph (CFG) to the
> native CFG for my own tool -- essentially use CLANG as a frontend (and
> possibly more) to a pre-existing tool. Does anybody have any documentation
> on the CLANG control flow graph other than the doxygen stuff? I would really
> appreciate any pointers on where to start.
>
> Regards,
> Gaurav
>
>
> _______________________________________________
> 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