[cfe-dev] Put ToolInvoker Output Into a String

The Floating Brain via cfe-dev cfe-dev at lists.llvm.org
Fri Aug 31 09:09:09 PDT 2018


Done or accomplished*

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On August 31, 2018 9:51 AM, The Floating Brain <TheFloatingBrain at protonmail.com> wrote:

> Hello! First post here, though this was originally posted in llvm-dev
>
>     So I am running clang programmatically using clang::tooling::ToolInvocation, however I don't 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 clarify something please let me know!
>
> Thank you
>  - TFB
>
> P.s Can this be done with the more accomplished stable, minimal, C Clang API?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180831/62ea5a50/attachment.html>


More information about the cfe-dev mailing list