Searched refs:ModuleScopes (Results 1 – 5 of 5) sorted by relevance
216 ModuleScopes.push_back({}); // No GMF in HandleStartOfHeaderUnit()217 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit()218 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit()320 assert(ModuleScopes.size() <= 1 && "expected to be at global module scope"); in ActOnModuleDecl()328 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()455 ModuleScopes.push_back({}); in ActOnModuleDecl()457 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleDecl()464 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl()465 ModuleScopes.back().Module = Mod; in ActOnModuleDecl()502 Context.addModuleInitializer(ModuleScopes.back().Module, Import); in ActOnModuleDecl()[all …]
1247 !ModuleScopes.empty() && ModuleScopes.back().Module->Kind == in ActOnEndOfTranslationUnit()1333 if (!ModuleScopes.empty() && ModuleScopes.back().Module->Kind == in ActOnEndOfTranslationUnit()1335 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()1418 ModuleScopes.back().Module->Kind == Module::PrivateModuleFragment) { in ActOnEndOfTranslationUnit()1419 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
14844 if (Context.DeclMustBeEmitted(var) && !ModuleScopes.empty()) in CheckCompleteVariableDeclaration()14845 Context.addModuleInitializer(ModuleScopes.back().Module, var); in CheckCompleteVariableDeclaration()14858 if (Context.DeclMustBeEmitted(var) && !ModuleScopes.empty()) in CheckCompleteVariableDeclaration()14859 Context.addModuleInitializer(ModuleScopes.back().Module, var); in CheckCompleteVariableDeclaration()
1666 if (llvm::count_if(ModuleScopes, in isUsableModule()
3562 return ModuleScopes.empty() ? false in currentModuleIsHeaderUnit()3563 : ModuleScopes.back().Module->isHeaderUnit(); in currentModuleIsHeaderUnit()9795 return ModuleScopes.empty() ? nullptr : ModuleScopes.back().Module; in getCurrentModule()9800 return ModuleScopes.empty() in currentModuleIsImplementation()9802 : ModuleScopes.back().Module->isModuleImplementation(); in currentModuleIsImplementation()9909 llvm::SmallVector<ModuleScope, 16> ModuleScopes; variable