Reading from a file wriiten using Decl::dump() or Decl::dumpXML()

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

No. These aren’t designed for serialization, just debugging tools. There is ast serialization support for precompiled headers/modules support, though

http://clang.llvm.org/doxygen/ASTWriter_8h_source.html

(& ASTReader) - I think those would be the places to start.

Thanks a lot :slight_smile: