[LLVMdev] Can I use Clang to parse snippets of C++ code?
Félix Cloutier
felixcca at yahoo.ca
Mon Feb 21 18:31:43 PST 2011
Hello guys,
I'd like to use Clang to parse snippets of (and emit bytecode for) C++ code that come from larger files that don't contain only C++, but looking at the clang interpreter example, either I didn't get it, or it looks like the driver expects only files, and not strings or char buffers.
Is there a simple way to achieve this? Do I have to split my input into small files and pass them to clang, or is there a better way?
Félix
More information about the llvm-dev
mailing list