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 1ada03a commit 2c20ea4Copy full SHA for 2c20ea4
clang/lib/Lex/ModuleMap.cpp
@@ -803,7 +803,7 @@ Module *ModuleMap::findModule(StringRef Name) const {
803
if (Known != Modules.end()) {
804
Module *M = Known->getValue();
805
// Notify callbacks that we found a module map for the module.
806
- if (!M->DefinitionLoc.isInvalid())
+ if (M->DefinitionLoc.isValid() && !M->IsFromModuleFile)
807
for (const auto &Cb : Callbacks)
808
Cb->moduleMapFoundForModule(
809
**getContainingModuleMapFile(M), M,
0 commit comments