Lines Matching refs:Module
25 static void checkModuleImportContext(Sema &S, Module *M, in checkModuleImportContext()
85 isImportingModuleUnitFromSameModule(ASTContext &Ctx, Module *Imported, in isImportingModuleUnitFromSameModule()
86 Module *CurrentModule, in isImportingModuleUnitFromSameModule()
87 Module *&FoundPrimaryModuleInterface) { in isImportingModuleUnitFromSameModule()
131 Module *Imported, Module *CurrentModule, in makeTransitiveImportsVisible()
138 llvm::SmallVector<Module *, 4> Worklist; in makeTransitiveImportsVisible()
141 Module *FoundPrimaryModuleInterface = in makeTransitiveImportsVisible()
145 Module *Importing = Worklist.pop_back_val(); in makeTransitiveImportsVisible()
156 for (Module *TransImported : Importing->Imports) in makeTransitiveImportsVisible()
165 Module *GlobalModule = in ActOnGlobalModuleFragmentDecl()
207 Module::Header H{HUName.str(), HUName.str(), *F}; in HandleStartOfHeaderUnit()
209 Module *Mod = Map.createHeaderUnit(StartOfTU, HUName, H); in HandleStartOfHeaderUnit()
213 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit()
322 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
390 Module *Mod; // The module we are creating. in ActOnModuleDecl()
391 Module *Interface = nullptr; // The interface for an implementation. in ActOnModuleDecl()
411 Mod->Kind = Module::ModulePartitionInterface; in ActOnModuleDecl()
430 Module::AllVisible, in ActOnModuleDecl()
447 Mod->Kind = Module::ModulePartitionImplementation; in ActOnModuleDecl()
462 ModuleScopes.back().Module = Mod; in ActOnModuleDecl()
499 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleDecl()
517 switch (ModuleScopes.empty() ? Module::ExplicitGlobalModuleFragment in ActOnPrivateModuleFragmentDecl()
518 : ModuleScopes.back().Module->Kind) { in ActOnPrivateModuleFragmentDecl()
519 case Module::ModuleMapModule: in ActOnPrivateModuleFragmentDecl()
520 case Module::ExplicitGlobalModuleFragment: in ActOnPrivateModuleFragmentDecl()
521 case Module::ImplicitGlobalModuleFragment: in ActOnPrivateModuleFragmentDecl()
522 case Module::ModulePartitionImplementation: in ActOnPrivateModuleFragmentDecl()
523 case Module::ModulePartitionInterface: in ActOnPrivateModuleFragmentDecl()
524 case Module::ModuleHeaderUnit: in ActOnPrivateModuleFragmentDecl()
528 case Module::PrivateModuleFragment: in ActOnPrivateModuleFragmentDecl()
533 case Module::ModuleImplementationUnit: in ActOnPrivateModuleFragmentDecl()
540 case Module::ModuleInterfaceUnit: in ActOnPrivateModuleFragmentDecl()
552 Module *PrivateModuleFragment = in ActOnPrivateModuleFragmentDecl()
554 ModuleScopes.back().Module, PrivateLoc); in ActOnPrivateModuleFragmentDecl()
560 ModuleScopes.back().Module = PrivateModuleFragment; in ActOnPrivateModuleFragmentDecl()
589 Module *NamedMod = ModuleScopes.back().Module; in ActOnModuleImport()
617 Module *Mod = getModuleLoader().loadModule( in ActOnModuleImport()
618 ImportLoc, Path, Module::AllVisible, /*IsInclusionDirective=*/false); in ActOnModuleImport()
642 SourceLocation ImportLoc, Module *Mod, in ActOnModuleImport()
672 for (Module *ModCheck = Mod; ModCheck; ModCheck = ModCheck->Parent) in ActOnModuleImport()
678 Module *ModCheck = Mod; in ActOnModuleImport()
697 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleImport()
701 Mod->Kind == Module::ModuleKind::ModulePartitionImplementation) { in ActOnModuleImport()
722 void Sema::ActOnAnnotModuleInclude(SourceLocation DirectiveLoc, Module *Mod) { in ActOnAnnotModuleInclude()
727 void Sema::BuildModuleInclude(SourceLocation DirectiveLoc, Module *Mod) { in BuildModuleInclude()
745 Context.addModuleInitializer(ModuleScopes.back().Module, ImportD); in BuildModuleInclude()
750 getModuleLoader().makeModuleVisible(Mod, Module::AllVisible, DirectiveLoc); in BuildModuleInclude()
754 Module *ThisModule = PP.getHeaderSearchInfo().lookupModule( in BuildModuleInclude()
761 void Sema::ActOnAnnotModuleBegin(SourceLocation DirectiveLoc, Module *Mod) { in ActOnAnnotModuleBegin()
765 ModuleScopes.back().Module = Mod; in ActOnAnnotModuleBegin()
785 void Sema::ActOnAnnotModuleEnd(SourceLocation EomLoc, Module *Mod) { in ActOnAnnotModuleEnd()
793 assert(!ModuleScopes.empty() && ModuleScopes.back().Module == Mod && in ActOnAnnotModuleEnd()
826 Module *Mod) { in createImplicitModuleImportForErrorRecovery()
840 getModuleLoader().makeModuleVisible(Mod, Module::AllVisible, Loc); in createImplicitModuleImportForErrorRecovery()
870 } else if (ModuleScopes.back().Module->Kind == in ActOnStartExportDecl()
871 Module::PrivateModuleFragment) { in ActOnStartExportDecl()
962 if (Lk == Linkage::Internal || Lk == Linkage::Module) { in checkExportedDecl()
1026 Module *Sema::PushGlobalModuleFragment(SourceLocation BeginLoc) { in PushGlobalModuleFragment()
1052 Module *Sema::PushImplicitGlobalModuleFragment(SourceLocation BeginLoc) { in PushImplicitGlobalModuleFragment()
1082 case Module::ModuleInterfaceUnit: in isCurrentModulePurview()
1083 case Module::ModuleImplementationUnit: in isCurrentModulePurview()
1084 case Module::ModulePartitionInterface: in isCurrentModulePurview()
1085 case Module::ModulePartitionImplementation: in isCurrentModulePurview()
1086 case Module::PrivateModuleFragment: in isCurrentModulePurview()
1087 case Module::ImplicitGlobalModuleFragment: in isCurrentModulePurview()