Searched refs:ModuleScopes (Results 1 – 4 of 4) sorted by relevance
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()[all …]
1035 ModuleScopes.back().ImplicitGlobalModuleFragment = true; in ActOnStartOfTranslationUnit()1122 !ModuleScopes.empty() && ModuleScopes.back().Module->Kind == in ActOnEndOfTranslationUnit()1208 if (!ModuleScopes.empty() && in ActOnEndOfTranslationUnit()1209 ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment && in ActOnEndOfTranslationUnit()1210 !ModuleScopes.back().ImplicitGlobalModuleFragment) { in ActOnEndOfTranslationUnit()1211 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()1274 ModuleScopes.back().Module->Kind == Module::PrivateModuleFragment) { in ActOnEndOfTranslationUnit()1275 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
14171 if (Context.DeclMustBeEmitted(var) && !ModuleScopes.empty()) in CheckCompleteVariableDeclaration()14172 Context.addModuleInitializer(ModuleScopes.back().Module, var); in CheckCompleteVariableDeclaration()14183 if (Context.DeclMustBeEmitted(var) && !ModuleScopes.empty()) in CheckCompleteVariableDeclaration()14184 Context.addModuleInitializer(ModuleScopes.back().Module, var); in CheckCompleteVariableDeclaration()
2283 llvm::SmallVector<ModuleScope, 16> ModuleScopes; variable2321 return ModuleScopes.empty() ? nullptr : ModuleScopes.back().Module; in getCurrentModule()2326 return ModuleScopes.empty() ? false : ModuleScopes.back().ModuleInterface; in currentModuleIsInterface()2331 return ModuleScopes.empty() ? false in currentModuleIsHeaderUnit()2332 : ModuleScopes.back().Module->isHeaderUnit(); in currentModuleIsHeaderUnit()