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