Lines Matching refs:ActiveModule

1440     Module *ActiveModule = nullptr;  member in clang::ModuleMapParser
1756 auto D = Diags.Report(ActiveModule->DefinitionLoc, in diagnosePrivateModules()
1764 if (M->Directory != ActiveModule->Directory) in diagnosePrivateModules()
1767 SmallString<128> FullName(ActiveModule->getFullModuleName()); in diagnosePrivateModules()
1775 if (ActiveModule->Parent && ActiveModule->Name == "Private" && !M->Parent && in diagnosePrivateModules()
1776 M->Name == ActiveModule->Parent->Name) { in diagnosePrivateModules()
1777 Diags.Report(ActiveModule->DefinitionLoc, in diagnosePrivateModules()
1787 if (FrameworkLoc.isValid() || ActiveModule->Parent->IsFramework) in diagnosePrivateModules()
1793 SourceRange(FixItInitBegin, ActiveModule->DefinitionLoc)); in diagnosePrivateModules()
1798 if (!ActiveModule->Parent && !M->Parent && M->Name != ActiveModule->Name && in diagnosePrivateModules()
1799 ActiveModule->Name != Canonical) { in diagnosePrivateModules()
1800 Diags.Report(ActiveModule->DefinitionLoc, in diagnosePrivateModules()
1802 << ActiveModule->Name; in diagnosePrivateModules()
1803 GenNoteAndFixIt(ActiveModule->Name, Canonical, M, in diagnosePrivateModules()
1804 SourceRange(ActiveModule->DefinitionLoc)); in diagnosePrivateModules()
1874 if (ActiveModule) { in parseModuleDecl()
1890 Module *PreviousActiveModule = ActiveModule; in parseModuleDecl()
1894 ActiveModule = nullptr; in parseModuleDecl()
1897 if (Module *Next = Map.lookupModuleQualified(Id[I].first, ActiveModule)) { in parseModuleDecl()
1900 ActiveModule = Next; in parseModuleDecl()
1905 << Id[I].first << (ActiveModule != nullptr) in parseModuleDecl()
1906 << (ActiveModule in parseModuleDecl()
1907 ? ActiveModule->getTopLevelModule()->getFullModuleName() in parseModuleDecl()
1940 if (Module *Existing = Map.lookupModuleQualified(ModuleName, ActiveModule)) { in parseModuleDecl()
1953 if (!ActiveModule && (LoadedFromASTFile || ParsedAsMainInput)) { in parseModuleDecl()
1986 ActiveModule = in parseModuleDecl()
1989 ActiveModule = in parseModuleDecl()
1990 Map.findOrCreateModule(ModuleName, ActiveModule, Framework, Explicit) in parseModuleDecl()
1994 ActiveModule->DefinitionLoc = ModuleNameLoc; in parseModuleDecl()
1996 ActiveModule->IsSystem = true; in parseModuleDecl()
1998 ActiveModule->IsExternC = true; in parseModuleDecl()
2000 (!ActiveModule->Parent && ModuleName == "Darwin")) in parseModuleDecl()
2001 ActiveModule->NoUndeclaredIncludes = true; in parseModuleDecl()
2002 ActiveModule->Directory = Directory; in parseModuleDecl()
2007 ActiveModule->ModuleMapIsPrivate = true; in parseModuleDecl()
2020 ActiveModule->ModuleMapIsPrivate) in parseModuleDecl()
2108 if (ActiveModule->IsFramework && !ActiveModule->isSubFramework() && in parseModuleDecl()
2109 ActiveModule->LinkLibraries.empty()) { in parseModuleDecl()
2110 inferFrameworkLink(ActiveModule, Directory, SourceMgr.getFileManager()); in parseModuleDecl()
2115 if (!ActiveModule->IsAvailable && !ActiveModule->IsUnimportable && in parseModuleDecl()
2116 ActiveModule->Parent) { in parseModuleDecl()
2117 ActiveModule->getTopLevelModule()->markUnavailable(/*Unimportable=*/false); in parseModuleDecl()
2118 ActiveModule->getTopLevelModule()->MissingHeaders.append( in parseModuleDecl()
2119 ActiveModule->MissingHeaders.begin(), ActiveModule->MissingHeaders.end()); in parseModuleDecl()
2123 ActiveModule = PreviousActiveModule; in parseModuleDecl()
2241 shouldAddRequirement(ActiveModule, Feature, IsRequiresExcludedHack); in parseRequiresDecl()
2244 UsesRequiresExcludedHack.insert(ActiveModule); in parseRequiresDecl()
2248 ActiveModule->addRequirement(Feature, RequiredState, Map.LangOpts, in parseRequiresDecl()
2285 if (UsesRequiresExcludedHack.count(ActiveModule)) { in parseHeaderDecl()
2318 if (Header.IsUmbrella && ActiveModule->Umbrella) { in parseHeaderDecl()
2320 << ActiveModule->getFullModuleName(); in parseHeaderDecl()
2381 Map.addUnresolvedHeader(ActiveModule, std::move(Header), NeedsFramework); in parseHeaderDecl()
2383 if (NeedsFramework && ActiveModule) in parseHeaderDecl()
2385 << ActiveModule->getFullModuleName() in parseHeaderDecl()
2411 if (ActiveModule->Umbrella) { in parseUmbrellaDirDecl()
2413 << ActiveModule->getFullModuleName(); in parseUmbrellaDirDecl()
2437 if (UsesRequiresExcludedHack.count(ActiveModule)) { in parseUmbrellaDirDecl()
2458 Map.addHeader(ActiveModule, std::move(Header), ModuleMap::TextualHeader); in parseUmbrellaDirDecl()
2470 Map.setUmbrellaDir(ActiveModule, *Dir, DirName); in parseUmbrellaDirDecl()
2518 ActiveModule->UnresolvedExports.push_back(Unresolved); in parseExportDecl()
2535 if (ActiveModule->Parent) { in parseExportAsDecl()
2541 if (!ActiveModule->ExportAsModule.empty()) { in parseExportAsDecl()
2542 if (ActiveModule->ExportAsModule == Tok.getString()) { in parseExportAsDecl()
2544 << ActiveModule->Name << Tok.getString(); in parseExportAsDecl()
2547 << ActiveModule->Name << ActiveModule->ExportAsModule in parseExportAsDecl()
2552 ActiveModule->ExportAsModule = std::string(Tok.getString()); in parseExportAsDecl()
2553 Map.addLinkAsDependency(ActiveModule); in parseExportAsDecl()
2569 if (ActiveModule->Parent) in parseUseDecl()
2572 ActiveModule->UnresolvedDirectUses.push_back(ParsedModuleId); in parseUseDecl()
2600 ActiveModule->LinkLibraries.push_back(Module::LinkLibrary(LibraryName, in parseLinkDecl()
2616 if (ActiveModule->Parent) { in parseConfigMacros()
2625 if (Attrs.IsExhaustive && !ActiveModule->Parent) { in parseConfigMacros()
2626 ActiveModule->ConfigMacrosExhaustive = true; in parseConfigMacros()
2635 if (!ActiveModule->Parent) { in parseConfigMacros()
2636 ActiveModule->ConfigMacros.push_back(Tok.getString().str()); in parseConfigMacros()
2654 if (!ActiveModule->Parent) { in parseConfigMacros()
2655 ActiveModule->ConfigMacros.push_back(Tok.getString().str()); in parseConfigMacros()
2708 ActiveModule->UnresolvedConflicts.push_back(Conflict); in parseConflict()
2726 if (!ActiveModule && !Framework) { in parseInferredModuleDecl()
2731 if (ActiveModule) { in parseInferredModuleDecl()
2733 if (!Failed && ActiveModule->IsAvailable && in parseInferredModuleDecl()
2734 !ActiveModule->getUmbrellaDir()) { in parseInferredModuleDecl()
2740 if (!Failed && ActiveModule->InferSubmodules) { in parseInferredModuleDecl()
2742 if (ActiveModule->InferredSubmoduleLoc.isValid()) in parseInferredModuleDecl()
2743 Diags.Report(ActiveModule->InferredSubmoduleLoc, in parseInferredModuleDecl()
2775 if (ActiveModule) { in parseInferredModuleDecl()
2777 ActiveModule->InferSubmodules = true; in parseInferredModuleDecl()
2778 ActiveModule->InferredSubmoduleLoc = StarLoc; in parseInferredModuleDecl()
2779 ActiveModule->InferExplicitSubmodules = Explicit; in parseInferredModuleDecl()
2806 if (ActiveModule) { in parseInferredModuleDecl()
2808 << (ActiveModule != nullptr); in parseInferredModuleDecl()
2826 if (!ActiveModule) { in parseInferredModuleDecl()
2828 << (ActiveModule != nullptr); in parseInferredModuleDecl()
2835 ActiveModule->InferExportWildcard = true; in parseInferredModuleDecl()
2849 << (ActiveModule != nullptr); in parseInferredModuleDecl()