[cfe-dev] AST nodes with examples showing what they are?

Hayden Livingston halivingston at gmail.com
Wed Aug 5 22:33:39 PDT 2015


The Clang AST is great, but it's a bit tedious to look at at a node
and then try to find a suitable piece of C++ code to trigger it.

Does anyone know of an easier way to play with the AST? For example
documentation or such that says NamedDecl -> and here is how to create
a NamedDecl in C++?

And then I'm also sometimes lost on what can appear inside a Node,
i.e. a Decl node can have VarDecl and that can have a
CXXConstructExpr, etc.

Even if some of you have tips to share, that'd be great.



More information about the cfe-dev mailing list