Lines Matching refs:ModuleScopes
125 ModuleScopes.push_back({}); // No GMF in HandleStartOfHeaderUnit()
126 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit()
127 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit()
228 assert(ModuleScopes.size() <= 1 && "expected to be at global module scope"); in ActOnModuleDecl()
236 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
250 ModuleScopes.empty() in ActOnModuleDecl()
252 : ModuleScopes.back().BeginLoc; in ActOnModuleDecl()
366 ModuleScopes.push_back({}); in ActOnModuleDecl()
368 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleDecl()
375 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl()
376 ModuleScopes.back().Module = Mod; in ActOnModuleDecl()
409 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleDecl()
427 switch (ModuleScopes.empty() ? Module::ExplicitGlobalModuleFragment in ActOnPrivateModuleFragmentDecl()
428 : ModuleScopes.back().Module->Kind) { in ActOnPrivateModuleFragmentDecl()
440 Diag(ModuleScopes.back().BeginLoc, diag::note_previous_definition); in ActOnPrivateModuleFragmentDecl()
445 Diag(ModuleScopes.back().BeginLoc, in ActOnPrivateModuleFragmentDecl()
447 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnPrivateModuleFragmentDecl()
464 ModuleScopes.back().Module, PrivateLoc); in ActOnPrivateModuleFragmentDecl()
468 ModuleScopes.push_back({}); in ActOnPrivateModuleFragmentDecl()
469 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnPrivateModuleFragmentDecl()
470 ModuleScopes.back().Module = PrivateModuleFragment; in ActOnPrivateModuleFragmentDecl()
498 assert(!ModuleScopes.empty() && "in a module purview, but no module?"); in ActOnModuleImport()
499 Module *NamedMod = ModuleScopes.back().Module; in ActOnModuleImport()
602 if (!ModuleScopes.empty()) in ActOnModuleImport()
603 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleImport()
610 } else if (!ModuleScopes.empty() && !currentModuleIsImplementation()) { in ActOnModuleImport()
650 if (!ModuleScopes.empty()) in BuildModuleInclude()
651 Context.addModuleInitializer(ModuleScopes.back().Module, ImportD); in BuildModuleInclude()
670 ModuleScopes.push_back({}); in ActOnModuleBegin()
671 ModuleScopes.back().Module = Mod; in ActOnModuleBegin()
673 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleBegin()
693 VisibleModules = std::move(ModuleScopes.back().OuterVisibleModules); in ActOnModuleEnd()
699 assert(!ModuleScopes.empty() && ModuleScopes.back().Module == Mod && in ActOnModuleEnd()
701 ModuleScopes.pop_back(); in ActOnModuleEnd()
772 Diag(ModuleScopes.back().BeginLoc, in ActOnStartExportDecl()
774 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnStartExportDecl()
777 } else if (ModuleScopes.back().Module->Kind == in ActOnStartExportDecl()
780 Diag(ModuleScopes.back().BeginLoc, diag::note_private_module_fragment); in ActOnStartExportDecl()
929 ModuleScopes.push_back({BeginLoc, TheGlobalModuleFragment, in PushGlobalModuleFragment()
937 assert(!ModuleScopes.empty() && in PopGlobalModuleFragment()
940 ModuleScopes.pop_back(); in PopGlobalModuleFragment()
953 ModuleScopes.push_back({BeginLoc, TheImplicitGlobalModuleFragment, in PushImplicitGlobalModuleFragment()
960 assert(!ModuleScopes.empty() && in PopImplicitGlobalModuleFragment()
963 ModuleScopes.pop_back(); in PopImplicitGlobalModuleFragment()