Re: [cfe-users] Compile from source code string

2022-01-17 Thread 0dminnimda via cfe-users
> The phrase “clang api” is a bit vague (libclang?) If it's possible, then of course LibClang as it's backward compatible, but I know that it's restricted in functionality, so if LibClang don't give such freedom, then LibTooling. > $ echo 'int main(void) { return 0; }' | clang -x c - Thanks for

Re: [cfe-users] Compile from source code string

2022-01-17 Thread Matthew Fernandez via cfe-users
> On Jan 17, 2022, at 14:35, 0dminnimda via cfe-users > wrote: > > I wanna use regular functionality of clang but instead of passing path to the > source I want to pass string as source code. Yes, it's preferably a code that > uses clang api and not just call to clang with source that was put

[cfe-users] Compile from source code string

2022-01-17 Thread 0dminnimda via cfe-users
I wanna use regular functionality of clang but instead of passing path to the source I want to pass string as source code. Yes, it's preferably a code that uses clang api and not just call to clang with source that was put into input, as source files are usually big. Googled that, but not really su