Hello,<div><br></div><div>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.</div><div><br></div>
<div>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).</div>
<div><br></div><div>Thanks,</div><div>Pushkar</div>