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


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?


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

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

Thanks a lot :slight_smile: