[cfe-dev] How to view .ast file?

Ted Kremenek kremenek at apple.com
Wed May 18 12:39:22 PDT 2011


Yes, they contain the AST, with information on the declarations, expressions, and everything.  An AST is a compiler data structure, not a specific textual dump.  There are a few ways to render (parts of) the AST to a human readable form; that's essentially a printout.

On May 18, 2011, at 11:19 AM, hunter wrote:

> So AST files don't contain actual abstract syntax tree? How can I build
> abstract syntax tree for this source code?
> 
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/How-to-view-ast-file-tp2953991p2958019.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> 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