From 8c71eba19f267c5ea6561d9d92fbc963cfc88a9c Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 5 Mar 2014 20:51:45 +0000 Subject: 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 --- clang/lib/Lex/ModuleMap.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Lex/ModuleMap.cpp') 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; } -- cgit v1.2.3