summaryrefslogtreecommitdiffstats
path: root/clang/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
commit8c71eba19f267c5ea6561d9d92fbc963cfc88a9c (patch)
treeab156303eee040068df828d9df4a1791673278f3 /clang/lib/Lex/ModuleMap.cpp
parentb63570ecb63e0a835ecc99ada27cfabf492e4e3d (diff)
downloadbcm5719-llvm-8c71eba19f267c5ea6561d9d92fbc963cfc88a9c.tar.gz
bcm5719-llvm-8c71eba19f267c5ea6561d9d92fbc963cfc88a9c.zip
If a #include finds a file relative to the current file, don't forget to check
whether it's part of a module. llvm-svn: 203005
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r--clang/lib/Lex/ModuleMap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp
index 0d9cd109537..86ffa5288a0 100644
--- a/clang/lib/Lex/ModuleMap.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud