[LLVMdev] Is it possible to generate a Clang annotated AST?

Carlos Andrade carlosviansi at gmail.com
Mon Jun 11 14:18:42 PDT 2012


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






More information about the llvm-dev mailing list