[cfe-dev] Is it possible to generate a Clang annotated AST?

Carlos Andrade carlosviansi at gmail.com
Mon Jun 11 15:21:58 PDT 2012


Hi, 

Apologize in advance for duplicates but I just found out about this list and I thought for the current  question this list would be more related. If I am mistaken please let me know. Thank you.
--
Carlos Andrade
http://carlosandrade.co

Sent from my iPad



Begin forwarded message:

> From: Carlos Andrade <carlosviansi at gmail.com>
> Date: June 11, 2012 2:18:42 PM PDT
> To: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu>
> Subject: Is it possible to generate a Clang annotated AST?
> 
> Hi, using the current version from the repository on Debug+Asserts mode I was able to generate Clangs AST on Gnu gv, however I noticed the tree provides no annotation to which part each statement it is referring to. For example, when it says binary operator I would like to know to which binary operator is it referring to. Is this possible with clang? I am using the ast-view option from cc1.  
> 
> As a side note I noticed that the XML version of the ast does keep the annotation of the code names but I don't know about any tools that could take that as input or another of Clangs output to generate the tree.
> 
> Thank again in advance,
> 
> --
> Carlos Andrade
> http://carlosandrade.co
> 
> Sent from my iPad
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120611/a4e59bfb/attachment.html>


More information about the cfe-dev mailing list