Lines Matching refs:ActiveModule
1042 Module *ActiveModule; member in clang::ModuleMapParser
1091 HadError(false), ActiveModule(nullptr) in ModuleMapParser()
1358 if (ActiveModule) { in parseModuleDecl()
1374 Module *PreviousActiveModule = ActiveModule; in parseModuleDecl()
1378 ActiveModule = nullptr; in parseModuleDecl()
1381 if (Module *Next = Map.lookupModuleQualified(Id[I].first, ActiveModule)) { in parseModuleDecl()
1384 ActiveModule = Next; in parseModuleDecl()
1388 if (ActiveModule) { in parseModuleDecl()
1391 << ActiveModule->getTopLevelModule()->getFullModuleName(); in parseModuleDecl()
1424 if (Module *Existing = Map.lookupModuleQualified(ModuleName, ActiveModule)) { in parseModuleDecl()
1425 if (Existing->DefinitionLoc.isInvalid() && !ActiveModule) { in parseModuleDecl()
1452 ActiveModule = Map.findOrCreateModule(ModuleName, ActiveModule, Framework, in parseModuleDecl()
1454 ActiveModule->DefinitionLoc = ModuleNameLoc; in parseModuleDecl()
1456 ActiveModule->IsSystem = true; in parseModuleDecl()
1458 ActiveModule->IsExternC = true; in parseModuleDecl()
1459 ActiveModule->Directory = Directory; in parseModuleDecl()
1542 if (ActiveModule->IsFramework && !ActiveModule->isSubFramework() && in parseModuleDecl()
1543 ActiveModule->LinkLibraries.empty()) { in parseModuleDecl()
1544 inferFrameworkLink(ActiveModule, Directory, SourceMgr.getFileManager()); in parseModuleDecl()
1549 if (!ActiveModule->IsAvailable && !ActiveModule->IsMissingRequirement && in parseModuleDecl()
1550 ActiveModule->Parent) { in parseModuleDecl()
1551 ActiveModule->getTopLevelModule()->markUnavailable(); in parseModuleDecl()
1552 ActiveModule->getTopLevelModule()->MissingHeaders.append( in parseModuleDecl()
1553 ActiveModule->MissingHeaders.begin(), ActiveModule->MissingHeaders.end()); in parseModuleDecl()
1557 ActiveModule = PreviousActiveModule; in parseModuleDecl()
1677 shouldAddRequirement(ActiveModule, Feature, IsRequiresExcludedHack); in parseRequiresDecl()
1680 UsesRequiresExcludedHack.insert(ActiveModule); in parseRequiresDecl()
1684 ActiveModule->addRequirement(Feature, RequiredState, Map.LangOpts, in parseRequiresDecl()
1740 if (UsesRequiresExcludedHack.count(ActiveModule)) { in parseHeaderDecl()
1769 if (LeadingToken == MMToken::UmbrellaKeyword && ActiveModule->Umbrella) { in parseHeaderDecl()
1771 << ActiveModule->getFullModuleName(); in parseHeaderDecl()
1788 if (ActiveModule->isPartOfFramework()) { in parseHeaderDecl()
1789 appendSubframeworkPaths(ActiveModule, RelativePathName); in parseHeaderDecl()
1815 if (ActiveModule->IsSystem && LeadingToken != MMToken::UmbrellaKeyword && in parseHeaderDecl()
1851 Map.setUmbrellaHeader(ActiveModule, File, RelativePathName.str()); in parseHeaderDecl()
1855 Map.excludeHeader(ActiveModule, H); in parseHeaderDecl()
1865 Map.addHeader(ActiveModule, H, Role); in parseHeaderDecl()
1870 Map.addHeader(ActiveModule, H, Role); in parseHeaderDecl()
1878 ActiveModule->markUnavailable(); in parseHeaderDecl()
1879 ActiveModule->MissingHeaders.push_back(Header); in parseHeaderDecl()
1905 if (ActiveModule->Umbrella) { in parseUmbrellaDirDecl()
1907 << ActiveModule->getFullModuleName(); in parseUmbrellaDirDecl()
1930 if (UsesRequiresExcludedHack.count(ActiveModule)) { in parseUmbrellaDirDecl()
1950 Map.addHeader(ActiveModule, std::move(Header), ModuleMap::TextualHeader); in parseUmbrellaDirDecl()
1962 Map.setUmbrellaDir(ActiveModule, Dir, DirName); in parseUmbrellaDirDecl()
2010 ActiveModule->UnresolvedExports.push_back(Unresolved); in parseExportDecl()
2024 if (ActiveModule->Parent) in parseUseDecl()
2027 ActiveModule->UnresolvedDirectUses.push_back(ParsedModuleId); in parseUseDecl()
2055 ActiveModule->LinkLibraries.push_back(Module::LinkLibrary(LibraryName, in parseLinkDecl()
2071 if (ActiveModule->Parent) { in parseConfigMacros()
2078 if (Attrs.IsExhaustive && !ActiveModule->Parent) { in parseConfigMacros()
2079 ActiveModule->ConfigMacrosExhaustive = true; in parseConfigMacros()
2088 if (!ActiveModule->Parent) { in parseConfigMacros()
2089 ActiveModule->ConfigMacros.push_back(Tok.getString().str()); in parseConfigMacros()
2107 if (!ActiveModule->Parent) { in parseConfigMacros()
2108 ActiveModule->ConfigMacros.push_back(Tok.getString().str()); in parseConfigMacros()
2161 ActiveModule->UnresolvedConflicts.push_back(Conflict); in parseConflict()
2179 if (!ActiveModule && !Framework) { in parseInferredModuleDecl()
2184 if (ActiveModule) { in parseInferredModuleDecl()
2186 if (!Failed && ActiveModule->IsAvailable && in parseInferredModuleDecl()
2187 !ActiveModule->getUmbrellaDir()) { in parseInferredModuleDecl()
2193 if (!Failed && ActiveModule->InferSubmodules) { in parseInferredModuleDecl()
2195 if (ActiveModule->InferredSubmoduleLoc.isValid()) in parseInferredModuleDecl()
2196 Diags.Report(ActiveModule->InferredSubmoduleLoc, in parseInferredModuleDecl()
2227 if (ActiveModule) { in parseInferredModuleDecl()
2229 ActiveModule->InferSubmodules = true; in parseInferredModuleDecl()
2230 ActiveModule->InferredSubmoduleLoc = StarLoc; in parseInferredModuleDecl()
2231 ActiveModule->InferExplicitSubmodules = Explicit; in parseInferredModuleDecl()
2258 if (ActiveModule) { in parseInferredModuleDecl()
2260 << (ActiveModule != nullptr); in parseInferredModuleDecl()
2279 if (!ActiveModule) { in parseInferredModuleDecl()
2281 << (ActiveModule != nullptr); in parseInferredModuleDecl()
2288 ActiveModule->InferExportWildcard = true; in parseInferredModuleDecl()
2302 << (ActiveModule != nullptr); in parseInferredModuleDecl()