diff options
author | Nico Weber <nicolasweber@gmx.de> | 2011-05-24 04:31:14 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2011-05-24 04:31:14 +0000 |
commit | 3b1d1217f827c52a71786202968929e4017bc80f (patch) | |
tree | a66866d5c68ff4fa31749a051e4db6d10f433046 /clang/lib/Lex/HeaderSearch.cpp | |
parent | 0130027dec1d48f2a454dee0f9bfb5b49a036b1c (diff) | |
download | bcm5719-llvm-3b1d1217f827c52a71786202968929e4017bc80f.tar.gz bcm5719-llvm-3b1d1217f827c52a71786202968929e4017bc80f.zip |
Make it possible for external tools to distinguish between paths that come from -I and paths that come from -system. Patch from Paul Holden!
llvm-svn: 131955
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index b3301164bd2..bb4388195a3 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -37,6 +37,7 @@ ExternalHeaderFileInfoSource::~ExternalHeaderFileInfoSource() {} HeaderSearch::HeaderSearch(FileManager &FM) : FileMgr(FM), FrameworkMap(64) { + AngledDirIdx = 0; SystemDirIdx = 0; NoCurDirSearch = false; @@ -317,7 +318,7 @@ const FileEntry *HeaderSearch::LookupFile( CurDir = 0; // If this is a system #include, ignore the user #include locs. - unsigned i = isAngled ? SystemDirIdx : 0; + unsigned i = isAngled ? AngledDirIdx : 0; // If this is a #include_next request, start searching after the directory the // file was found in. |