<div dir="ltr">Hi,<div style>   I will take a look at tooling. But since I have already done a lot of work this way and might need to use clang again for a while, I thought it would be best if I knew as much as possible. Is it not possible to make it work this way? </div>
<div style><br></div><div style>P.S. The new documentation site looks great.</div><div style><br></div><div style>Regards,</div><div style>Adil</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 9:09 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Jan 17, 2013 at 3:31 AM, madil90 <<a href="mailto:madil90@gmail.com">madil90@gmail.com</a>> wrote:<br>
> Hi,<br>
>   I am writing a rewriting program. In order to search for appropriate paths<br>
> (default c++ paths), I added headersearchoptions to the preprocessor and<br>
> included all the default include paths clang++ uses.<br>
<br>
Since you'll need to reproduce exactly how the source to your project<br>
was compiled at some point anyway, you might want to consider using<br>
the Tooling infrastructure ( <a href="http://clang.llvm.org/docs/Tooling.html" target="_blank">http://clang.llvm.org/docs/Tooling.html</a> )<br>
which should simplify this task/make it easy for your rewriter to<br>
correctly analyze the target source code.<br>
<br>
> I am able to find all<br>
> types. The only error that is occurring is when the program encounters<br>
> functions similar to "__builtin_expect". It is unable to find these<br>
> functions in any files. Some more examples of similar functions are<br>
> "__builtin_alloca" and "__builtin_strcmp". Does clang support these<br>
> functions? If yes, where are their definitions located?<br>
><br>
> Regards,<br>
> Adil<br>
><br>
><br>
<span class="HOEnZb"><font color="#888888">><br>
> --<br>
> View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/builtin-in-clang-tp4029821.html" target="_blank">http://clang-developers.42468.n3.nabble.com/builtin-in-clang-tp4029821.html</a><br>

> Sent from the Clang Developers mailing list archive at Nabble.com.<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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mohammad Adil<div>LUMS SSE</div>
</div>