Lines Matching refs:ModuleScopes

211   ModuleScopes.push_back({}); // No GMF  in HandleStartOfHeaderUnit()
212 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit()
213 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit()
314 assert(ModuleScopes.size() <= 1 && "expected to be at global module scope"); in ActOnModuleDecl()
322 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
336 ModuleScopes.empty() in ActOnModuleDecl()
338 : ModuleScopes.back().BeginLoc; in ActOnModuleDecl()
452 ModuleScopes.push_back({}); in ActOnModuleDecl()
454 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleDecl()
461 ModuleScopes.back().BeginLoc = StartLoc; 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()
530 Diag(ModuleScopes.back().BeginLoc, diag::note_previous_definition); in ActOnPrivateModuleFragmentDecl()
535 Diag(ModuleScopes.back().BeginLoc, in ActOnPrivateModuleFragmentDecl()
537 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnPrivateModuleFragmentDecl()
554 ModuleScopes.back().Module, PrivateLoc); in ActOnPrivateModuleFragmentDecl()
558 ModuleScopes.push_back({}); in ActOnPrivateModuleFragmentDecl()
559 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnPrivateModuleFragmentDecl()
560 ModuleScopes.back().Module = PrivateModuleFragment; in ActOnPrivateModuleFragmentDecl()
588 assert(!ModuleScopes.empty() && "in a module purview, but no module?"); in ActOnModuleImport()
589 Module *NamedMod = ModuleScopes.back().Module; in ActOnModuleImport()
696 if (!ModuleScopes.empty()) in ActOnModuleImport()
697 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleImport()
704 } else if (!ModuleScopes.empty() && !currentModuleIsImplementation()) { in ActOnModuleImport()
744 if (!ModuleScopes.empty()) in BuildModuleInclude()
745 Context.addModuleInitializer(ModuleScopes.back().Module, ImportD); in BuildModuleInclude()
764 ModuleScopes.push_back({}); in ActOnAnnotModuleBegin()
765 ModuleScopes.back().Module = Mod; in ActOnAnnotModuleBegin()
767 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnAnnotModuleBegin()
787 VisibleModules = std::move(ModuleScopes.back().OuterVisibleModules); in ActOnAnnotModuleEnd()
793 assert(!ModuleScopes.empty() && ModuleScopes.back().Module == Mod && in ActOnAnnotModuleEnd()
795 ModuleScopes.pop_back(); in ActOnAnnotModuleEnd()
865 Diag(ModuleScopes.back().BeginLoc, in ActOnStartExportDecl()
867 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnStartExportDecl()
870 } else if (ModuleScopes.back().Module->Kind == in ActOnStartExportDecl()
873 Diag(ModuleScopes.back().BeginLoc, diag::note_private_module_fragment); in ActOnStartExportDecl()
1038 ModuleScopes.push_back({BeginLoc, TheGlobalModuleFragment, in PushGlobalModuleFragment()
1046 assert(!ModuleScopes.empty() && in PopGlobalModuleFragment()
1049 ModuleScopes.pop_back(); in PopGlobalModuleFragment()
1062 ModuleScopes.push_back({BeginLoc, TheImplicitGlobalModuleFragment, in PushImplicitGlobalModuleFragment()
1069 assert(!ModuleScopes.empty() && in PopImplicitGlobalModuleFragment()
1072 ModuleScopes.pop_back(); in PopImplicitGlobalModuleFragment()