[LLVMdev] Clang and AST Generation

Pushkar Ratnalikar pratnali at umail.iu.edu
Wed Nov 4 23:51:48 PST 2009


Hello,

I am trying to use Clang to generate AST for C code in a different format.
This format is specific to the term rewriting system that we use for
source-to-source transformations.

Studying the ast generated by Clang using the "-ast-print" option to the
clang-cc, I see that the pre-processor expands the code(expected). Is there
a way to get around and not print all the information all the information
and also keep the AST as close to the source as possible( avoiding constant
folding).

Thanks,
Pushkar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091105/53ee97eb/attachment.html>


More information about the llvm-dev mailing list