<div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote">On Fri, Jun 22, 2012 at 7:55 PM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com" target="_blank">rjmccall@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Jun 22, 2012, at 3:06 AM, Satya Prakash Prasad wrote:<br>
> Thanks John for the clarification.<br>
><br>
> Can you please let me know how to then create clang instance for C++ input file?<br>
<br>
</div>I suggest looking at some of the example code to see how it initializes the<br>
CompilerInstance. clang-interpreter is an example of this.<br>
<br>
Alternatively, you might be happier just running as a clang plugin, in<br>
which case you should look at the PrintFunctionNames example.<br></blockquote><div><br></div><div>For source-2-source translation, there are more alternatives with different trade-offs to consider:</div><div><a href="http://clang.llvm.org/docs/Tooling.html">http://clang.llvm.org/docs/Tooling.html</a>
</div><div><br></div><div>Cheers,</div><div>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
John.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></font></div>