Lines Matching refs:Module

22 static void checkModuleImportContext(Sema &S, Module *M,  in checkModuleImportContext()
60 ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment) { in ActOnGlobalModuleFragmentDecl()
78 ModuleScopes.back().Module = GlobalModule; in ActOnGlobalModuleFragmentDecl()
131 ModuleScopes.back().Module->isModulePurview()) { in ActOnModuleDecl()
133 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
139 Module *GlobalModuleFragment = nullptr; in ActOnModuleDecl()
141 ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment) in ActOnModuleDecl()
142 GlobalModuleFragment = ModuleScopes.back().Module; in ActOnModuleDecl()
180 Module *Mod; in ActOnModuleDecl()
208 Module::AllVisible, in ActOnModuleDecl()
230 ModuleScopes.back().Module = Mod; in ActOnModuleDecl()
251 switch (ModuleScopes.empty() ? Module::GlobalModuleFragment in ActOnPrivateModuleFragmentDecl()
252 : ModuleScopes.back().Module->Kind) { in ActOnPrivateModuleFragmentDecl()
253 case Module::ModuleMapModule: in ActOnPrivateModuleFragmentDecl()
254 case Module::GlobalModuleFragment: in ActOnPrivateModuleFragmentDecl()
258 case Module::PrivateModuleFragment: in ActOnPrivateModuleFragmentDecl()
263 case Module::ModuleInterfaceUnit: in ActOnPrivateModuleFragmentDecl()
284 Module *PrivateModuleFragment = in ActOnPrivateModuleFragmentDecl()
286 ModuleScopes.back().Module, PrivateLoc); in ActOnPrivateModuleFragmentDecl()
292 ModuleScopes.back().Module = PrivateModuleFragment; in ActOnPrivateModuleFragmentDecl()
324 Module *Mod = in ActOnModuleImport()
325 getModuleLoader().loadModule(ImportLoc, Path, Module::AllVisible, in ActOnModuleImport()
344 Module *Mod, ModuleIdPath Path) { in ActOnModuleImport()
365 Module *ModCheck = Mod; in ActOnModuleImport()
391 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleImport()
404 void Sema::ActOnModuleInclude(SourceLocation DirectiveLoc, Module *Mod) { in ActOnModuleInclude()
409 void Sema::BuildModuleInclude(SourceLocation DirectiveLoc, Module *Mod) { in BuildModuleInclude()
429 Context.addModuleInitializer(ModuleScopes.back().Module, ImportD); in BuildModuleInclude()
434 getModuleLoader().makeModuleVisible(Mod, Module::AllVisible, DirectiveLoc); in BuildModuleInclude()
438 void Sema::ActOnModuleBegin(SourceLocation DirectiveLoc, Module *Mod) { in ActOnModuleBegin()
442 ModuleScopes.back().Module = Mod; in ActOnModuleBegin()
462 void Sema::ActOnModuleEnd(SourceLocation EomLoc, Module *Mod) { in ActOnModuleEnd()
470 assert(!ModuleScopes.empty() && ModuleScopes.back().Module == Mod && in ActOnModuleEnd()
503 Module *Mod) { in createImplicitModuleImportForErrorRecovery()
517 getModuleLoader().makeModuleVisible(Mod, Module::AllVisible, Loc); in createImplicitModuleImportForErrorRecovery()
534 if (ModuleScopes.empty() || !ModuleScopes.back().Module->isModulePurview()) { in ActOnStartExportDecl()
541 } else if (ModuleScopes.back().Module->Kind == in ActOnStartExportDecl()
542 Module::PrivateModuleFragment) { in ActOnStartExportDecl()