Example of use of libclang

Hi,

I'm trying to test the following compilation chain :

C/C++ source code as a string ==> libclang ==> LLVM IR ==> JIT

but could not find easy to use code example on the web.

In there something available somewhere ? Any source code, exemple to look at ?

Thanks.

Stéphane Letz

Hi Stéphane,

Check out clang/examples/clang-interpreter - it looks like what you’re after.

Cheers,
Lang.