summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2011-05-24 04:31:14 +0000
committerNico Weber <nicolasweber@gmx.de>2011-05-24 04:31:14 +0000
commit3b1d1217f827c52a71786202968929e4017bc80f (patch)
treea66866d5c68ff4fa31749a051e4db6d10f433046 /clang/lib/Lex/HeaderSearch.cpp
parent0130027dec1d48f2a454dee0f9bfb5b49a036b1c (diff)
downloadbcm5719-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.cpp3
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.
OpenPOWER on IntegriCloud