Lines Matching refs:ModuleScopes
77 if (!ModuleScopes.empty() && in ActOnGlobalModuleFragmentDecl()
78 ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment) { in ActOnGlobalModuleFragmentDecl()
83 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnGlobalModuleFragmentDecl()
134 ModuleScopes.push_back({}); // No GMF in HandleStartOfHeaderUnit()
135 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit()
136 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit()
137 ModuleScopes.back().ModuleInterface = true; in HandleStartOfHeaderUnit()
138 ModuleScopes.back().IsPartition = false; in HandleStartOfHeaderUnit()
234 assert(ModuleScopes.size() <= 1 && "expected to be at global module scope"); in ActOnModuleDecl()
242 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
256 ModuleScopes.empty() in ActOnModuleDecl()
258 : ModuleScopes.back().BeginLoc; in ActOnModuleDecl()
374 ModuleScopes.push_back({}); in ActOnModuleDecl()
376 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleDecl()
383 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl()
384 ModuleScopes.back().Module = Mod; in ActOnModuleDecl()
385 ModuleScopes.back().ModuleInterface = MDK != ModuleDeclKind::Implementation; in ActOnModuleDecl()
386 ModuleScopes.back().IsPartition = IsPartition; in ActOnModuleDecl()
422 switch (ModuleScopes.empty() ? Module::GlobalModuleFragment in ActOnPrivateModuleFragmentDecl()
423 : ModuleScopes.back().Module->Kind) { in ActOnPrivateModuleFragmentDecl()
434 Diag(ModuleScopes.back().BeginLoc, diag::note_previous_definition); in ActOnPrivateModuleFragmentDecl()
441 if (!ModuleScopes.back().ModuleInterface) { in ActOnPrivateModuleFragmentDecl()
443 Diag(ModuleScopes.back().BeginLoc, in ActOnPrivateModuleFragmentDecl()
445 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnPrivateModuleFragmentDecl()
460 ModuleScopes.back().Module, PrivateLoc); in ActOnPrivateModuleFragmentDecl()
464 ModuleScopes.push_back({}); in ActOnPrivateModuleFragmentDecl()
465 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnPrivateModuleFragmentDecl()
466 ModuleScopes.back().Module = PrivateModuleFragment; in ActOnPrivateModuleFragmentDecl()
467 ModuleScopes.back().ModuleInterface = true; in ActOnPrivateModuleFragmentDecl()
496 assert(!ModuleScopes.empty() && "in a module purview, but no module?"); in ActOnModuleImport()
497 Module *NamedMod = ModuleScopes.back().Module; in ActOnModuleImport()
521 << ModuleName << !ModuleScopes.back().ModuleInterface; in ActOnModuleImport()
591 if (!ModuleScopes.empty()) in ActOnModuleImport()
592 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleImport()
599 } else if (!ModuleScopes.empty() && in ActOnModuleImport()
600 (ModuleScopes.back().ModuleInterface || in ActOnModuleImport()
602 ModuleScopes.back().Module->isGlobalModule()))) { in ActOnModuleImport()
615 << (!ModuleScopes.empty() && in ActOnModuleImport()
616 !ModuleScopes.back().ImplicitGlobalModuleFragment); in ActOnModuleImport()
651 if (!ModuleScopes.empty()) in BuildModuleInclude()
652 Context.addModuleInitializer(ModuleScopes.back().Module, ImportD); in BuildModuleInclude()
671 ModuleScopes.push_back({}); in ActOnModuleBegin()
672 ModuleScopes.back().Module = Mod; in ActOnModuleBegin()
674 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleBegin()
694 VisibleModules = std::move(ModuleScopes.back().OuterVisibleModules); in ActOnModuleEnd()
700 assert(!ModuleScopes.empty() && ModuleScopes.back().Module == Mod && in ActOnModuleEnd()
702 ModuleScopes.pop_back(); in ActOnModuleEnd()
771 } else if (!ModuleScopes.back().ModuleInterface) { in ActOnStartExportDecl()
773 Diag(ModuleScopes.back().BeginLoc, in ActOnStartExportDecl()
775 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnStartExportDecl()
778 } else if (ModuleScopes.back().Module->Kind == in ActOnStartExportDecl()
781 Diag(ModuleScopes.back().BeginLoc, diag::note_private_module_fragment); in ActOnStartExportDecl()
991 ModuleScopes.push_back({BeginLoc, GlobalModuleFragment, in PushGlobalModuleFragment()
1002 assert(!ModuleScopes.empty() && getCurrentModule()->isGlobalModule() && in PopGlobalModuleFragment()
1004 ModuleScopes.pop_back(); in PopGlobalModuleFragment()