summaryrefslogtreecommitdiff
path: root/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-03-05 20:51:45 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-03-05 20:51:45 +0000
commita889b8ad628ca8640834812b2e144ee8c908a788 (patch)
treee09d468dc6464787ab4c86f2bc4bd30780fcff7b /lib/Lex/ModuleMap.cpp
parentbe7e33426d4e260b717c38784af7beda71043ff5 (diff)
downloadclang-a889b8ad628ca8640834812b2e144ee8c908a788.tar.gz
clang-a889b8ad628ca8640834812b2e144ee8c908a788.tar.bz2
clang-a889b8ad628ca8640834812b2e144ee8c908a788.tar.xz
If a #include finds a file relative to the current file, don't forget to check
whether it's part of a module. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/ModuleMap.cpp')
-rw-r--r--lib/Lex/ModuleMap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp
index 0d9cd10953..86ffa5288a 100644
--- a/lib/Lex/ModuleMap.cpp
+++ b/lib/Lex/ModuleMap.cpp
@@ -297,6 +297,8 @@ ModuleMap::findModuleForHeader(const FileEntry *File,
Result = *I;
// If 'File' is a public header of this module, this is as good as we
// are going to get.
+ // FIXME: If we have a RequestingModule, we should prefer the header from
+ // that module.
if (I->getRole() == ModuleMap::NormalHeader)
break;
}