Displaying 2 results from an estimated 2 matches for "mapvirtualfil".
Did you mean:
mapvirtualfile
2018 Aug 29
2
Put ToolInvoker Output Into a String
Hello!
So I am running clang programmatically using clang::tooling::ToolInvocation, however I dont want anything to touch the disk. I am able to read from a virtual file using clang::tooling::ToolInvocation::mapVirtualFile , however I dont know how to output to a virtual file or just to an std::string or char* , I tried passing -o out.S -ivfsoverlay out.S but it still writes to disk and as far as I can tell does not write to the memory I created.
If this isn't the right place for this post or if I need to clari...
2014 Feb 27
2
[LLVMdev] multithreaded use of llvm::sys::RemoveFileOnSignal
...:
clang::tooling::ToolInvocation ti
(
compilerArgs,
new clang::EmitBCAction(),
new clang::FileManager(clang::FileSystemOptions())
);
//filename is the name of the source file, e.g. "Somefile.cpp"
//sourcecode contains the source of the file
ti.mapVirtualFile( filename, sourcecode );
bool ret = ti.run();
In order to speed up compilation of several sources, I call the above code
concurrently in separate threads, with each thread compiling its own source
code. However, this does not work because clang::CompilerInstance calls
llvm::Sys::RemoveFileOnSi...