[cfe-dev] read AST from memory buffer, LoadFromASTFile?
whilealex at gmail.com
Fri Jan 31 12:25:19 PST 2014
I am trying to read an AST file from a memory buffer, here is my approach,
but is not working.
theFile.first = "myFileName.ast";
theFile.second = llvm::MemoryBuffer::getMemBufferCopy(myVirtualString,
// Import AST from virtual file using this remapped file.
ci2.getFileSystemOpts(), false, &theFile, 1));
But this is returning NULL on ASTUnit, does anyone know how to fill this
ASTUnit with a virtual buffer?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev