[cfe-users] Reading from a file wriiten using Decl::dump() or Decl::dumpXML()

Pavan Pattanada pattanad at uci.edu
Thu Jul 11 20:25:51 PDT 2013


Thanks a lot :)


On Thu, Jul 11, 2013 at 8:24 PM, David Blaikie <dblaikie at gmail.com> wrote:

> 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
> >>>
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20130711/10d2d83d/attachment.html>


More information about the cfe-users mailing list