[cfe-dev] How to get the AST of a single cpp file with clang?

Richard legalize at xmission.com
Wed Nov 13 12:57:46 PST 2013


In article <1384365395021-4036017.post at n3.nabble.com>,
    ruben <rdealba at codicesoftware.com> writes:

> Is there any way to get the complete AST tree?

Have you looked at the extra tools repo?  If you look at
remove-cstr-calls tool, it gets a complete AST for the source file
and does a source-to-source transformation on it.
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>



More information about the cfe-dev mailing list