[cfe-dev] Basic source-to-source transformation with Clang
John McCall
rjmccall at apple.com
Fri Jun 22 10:55:51 PDT 2012
On Jun 22, 2012, at 3:06 AM, Satya Prakash Prasad wrote:
> Thanks John for the clarification.
>
> Can you please let me know how to then create clang instance for C++ input file?
I suggest looking at some of the example code to see how it initializes the
CompilerInstance. clang-interpreter is an example of this.
Alternatively, you might be happier just running as a clang plugin, in
which case you should look at the PrintFunctionNames example.
John.
More information about the cfe-dev
mailing list