Home
last modified time | relevance | path

Searched refs:ModuleScopes (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang/lib/Sema/
DSemaModule.cpp59 if (!ModuleScopes.empty() && in ActOnGlobalModuleFragmentDecl()
60 ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment) { in ActOnGlobalModuleFragmentDecl()
65 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnGlobalModuleFragmentDecl()
76 ModuleScopes.push_back({}); in ActOnGlobalModuleFragmentDecl()
77 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnGlobalModuleFragmentDecl()
78 ModuleScopes.back().Module = GlobalModule; in ActOnGlobalModuleFragmentDecl()
124 assert(ModuleScopes.size() <= 1 && "expected to be at global module scope"); in ActOnModuleDecl()
130 if (!ModuleScopes.empty() && in ActOnModuleDecl()
131 ModuleScopes.back().Module->isModulePurview()) { in ActOnModuleDecl()
133 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
[all …]
DSema.cpp920 ModuleScopes.back().ImplicitGlobalModuleFragment = true; in ActOnStartOfTranslationUnit()
1007 !ModuleScopes.empty() && ModuleScopes.back().Module->Kind == in ActOnEndOfTranslationUnit()
1090 if (!ModuleScopes.empty() && in ActOnEndOfTranslationUnit()
1091 ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment && in ActOnEndOfTranslationUnit()
1092 !ModuleScopes.back().ImplicitGlobalModuleFragment) { in ActOnEndOfTranslationUnit()
1093 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
1103 (ModuleScopes.empty() || in ActOnEndOfTranslationUnit()
1104 !ModuleScopes.back().Module->isModulePurview()) && in ActOnEndOfTranslationUnit()
DSemaDecl.cpp13017 if (Context.DeclMustBeEmitted(var) && !ModuleScopes.empty()) in CheckCompleteVariableDeclaration()
13018 Context.addModuleInitializer(ModuleScopes.back().Module, var); in CheckCompleteVariableDeclaration()
13112 if (Context.DeclMustBeEmitted(var) && !ModuleScopes.empty()) in CheckCompleteVariableDeclaration()
13113 Context.addModuleInitializer(ModuleScopes.back().Module, var); in CheckCompleteVariableDeclaration()
/external/llvm-project/clang/include/clang/Sema/
DSema.h2024 llvm::SmallVector<ModuleScope, 16> ModuleScopes; variable
2031 return ModuleScopes.empty() ? nullptr : ModuleScopes.back().Module; in getCurrentModule()