<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div dir="ltr">On Wed, Dec 19, 2012 at 3:16 PM, Peeter Joot <span dir="ltr"><<a href="mailto:peeter.joot@gmail.com" target="_blank">peeter.joot@gmail.com</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If I use llvm-config --cxxflags, it gives me, among other stuff the -I path for clangs headers.<div>
<br></div><div>Is there a way to get the system includes paths that clang uses internally, either programatically (query set of default system includes for the target) or on the command line using something like llvm-config, so that I can set those same paths in my ASTVisitor.  Without that I get include failures with various system headers:<div>

<br></div><div><div><div>In file included from xx.C:1:</div><div>/vbs/common/osse/core/inc/osstype.h:29:10: fatal error: 'stdlib.h' file not found</div><div>#include <stdlib.h></div><div>         ^</div></div>

<div><br></div><div>Alternately, is there a way to include the system includes paths by default?  Looking in </div><div><br></div><div><a href="http://clang.llvm.org/doxygen/HeaderSearchOptions_8h_source.html" target="_blank">http://clang.llvm.org/doxygen/HeaderSearchOptions_8h_source.html</a></div>

<div><br></div><div>it appears that UseStandardSystemIncludes, and UseStandardCXXIncludes both default to true, which explains why setting those didn't make a difference.  Are those fields not being respected for some reason?</div>
</div></div></div></blockquote><div><br></div><div style>By the way, the LibTooling stuff (as well as writing a clang plugin) solves the system include paths in general,</div><div style>and the builtin include path (which is your problem) when you put the tool next to a clang executable.</div>
<div style><br></div><div style>Cheers,</div><div style>/Manuel</div><div style><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><span class="HOEnZb"><font color="#888888">
<div><br></div>-- <br>Peeter<br>
</font></span></div></div></div>
<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>
<br></blockquote></div><br></div></div></div>