[cfe-dev] clang-interpreter example and in-memory buffer

Sam Parker S.Parker3 at lboro.ac.uk
Sat May 25 11:51:31 PDT 2013


+1
I was also trying to figure this out, during the week, for some source 
to source transformations.

On 25/05/2013 18:00, Adam Seering wrote:
> Hi all,
>     I'm new to libclang/etc; I'm trying to do something very similar 
> to what the "clang-interpreter" example is doing, except I'm playing 
> with generating the .cpp file dynamically.
>
>     I could write it out to a temp file, but that means dealing with 
> temp files...  I already have the content I want in a string in 
> memory.  I'm just wondering if there's a reasonably-simple way to pass 
> the file data in directly rather than actually writing it to a file?  
> Any pointers?
>
> Thanks,
> Adam
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list