<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 style>Alternately, is there a way to include the system includes paths by default?  Looking in </div><div style><br></div><div style><a href="http://clang.llvm.org/doxygen/HeaderSearchOptions_8h_source.html">http://clang.llvm.org/doxygen/HeaderSearchOptions_8h_source.html</a></div>
<div style><br></div><div style>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 style><br></div>-- <br>Peeter<br>
</div></div></div>