<div dir="ltr">Thanks a lot :) <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 11, 2013 at 8:24 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="http://clang.llvm.org/doxygen/ASTWriter_8h_source.html" target="_blank">http://clang.llvm.org/doxygen/ASTWriter_8h_source.html</a><br>

<br>
(& ASTReader) - I think those would be the places to start.<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Jul 11, 2013 at 8:20 PM, Pavan Pattanada <<a href="mailto:pattanad@uci.edu">pattanad@uci.edu</a>> wrote:<br>
> Hi David,<br>
> Thanks for the response. In that case, is there a API or some link which<br>
> could point me to reading and writing ASTs to and from files?<br>
><br>
> Thanks,<br>
> Pavan<br>
><br>
><br>
> On Thu, Jul 11, 2013 at 7:43 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br>
>><br>
>> No. These aren't designed for serialization, just debugging tools. There<br>
>> is ast serialization support for precompiled headers/modules support, though<br>
>><br>
>> On Jul 11, 2013 7:33 PM, "Pavan Pattanada" <<a href="mailto:pattanad@uci.edu">pattanad@uci.edu</a>> wrote:<br>
>>><br>
>>><br>
>>> Hello,<br>
>>> Is there a way to read from a file written using either dump() or<br>
>>> dumpXML() function for a function body and populate the clang::FunctionDecl<br>
>>> data structure?<br>
>>><br>
>>><br>
>>> Thanks,<br>
>>> Pavan<br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> cfe-users mailing list<br>
>>> <a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br>
>>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users</a><br>
>>><br>
><br>
</div></div></blockquote></div><br></div>