[cfe-dev] Correspondence between AST and the CFG

Prakash Prabhu prakash.prabhu at gmail.com
Thu Jun 24 07:45:11 PDT 2010


Hi,

I am just curious to find out whether any correspondence between AST nodes
and CFG is maintained in clang ? For instance, is it possible to find out
once a CFG is generated, what nodes in the CFG correspond to a CompoundStmt
node in the AST ? I guess this correspondence will be blurred once more and
more transformations are done the CFG, but if one is interested in only
doing an analysis on the CFG based on some information available from the
AST (for instance analyzing flow information on those CFG nodes that
correspond to certain CompoundStmts, or certain try... catch sequences), is
there a simple way to do it ?

thanks,
Prakash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100624/2b1965ba/attachment.html>


More information about the cfe-dev mailing list