We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a2d0a commit d544d8bCopy full SHA for d544d8b
clang/lib/Lex/ModuleMap.cpp
@@ -810,7 +810,7 @@ Module *ModuleMap::findModule(StringRef Name) const {
810
if (Known != Modules.end()) {
811
Module *M = Known->getValue();
812
// Notify callbacks that we found a module map for the module.
813
- if (!M->DefinitionLoc.isInvalid())
+ if (M->DefinitionLoc.isValid() && !M->IsFromModuleFile)
814
for (const auto &Cb : Callbacks)
815
Cb->moduleMapFoundForModule(
816
**getContainingModuleMapFile(M), M,
0 commit comments