<div dir="ltr">On Fri, Jul 12, 2013 at 4:09 PM, Daniel Albuschat <span dir="ltr"><<a href="mailto:d.albuschat@gmail.com" target="_blank">d.albuschat@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>P.S.: Yes, I have been recommended to create C++ code instead of trying to build an AST. But I'd still like to try the AST approach, since I'd like to skip the (time consuming) parsing of the C++ code.</div>

<div><br></div></div></blockquote><div><br></div><div style>Clang's AST is really complicated and there are a number of undocumented invariants, so trying to build the AST "raw" is really difficult (I've never heard of anybody doing it successfully). If you really want to go this route, looking at lib/Sema/TreeTransform.h is probably your best guide.</div>
<div style><br></div><div style>-- Sean Silva</div></div></div></div>