Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp211 ModuleScopes.push_back({}); // No GMF in HandleStartOfHeaderUnit()
212 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit()
213 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit()
314 assert(ModuleScopes.size() <= 1 && "expected to be at global module scope"); in ActOnModuleDecl()
322 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
336 ModuleScopes.empty() in ActOnModuleDecl()
338 : ModuleScopes.back().BeginLoc; in ActOnModuleDecl()
452 ModuleScopes.push_back({}); in ActOnModuleDecl()
454 ModuleScopes.back().OuterVisibleModules = std::move(VisibleModules); in ActOnModuleDecl()
461 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl()
[all …]
H A DSema.cpp1179 !ModuleScopes.empty() && ModuleScopes.back().Module->Kind == in ActOnEndOfTranslationUnit()
1264 if (!ModuleScopes.empty() && ModuleScopes.back().Module->Kind == in ActOnEndOfTranslationUnit()
1266 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
1338 ModuleScopes.back().Module->Kind == Module::PrivateModuleFragment) { in ActOnEndOfTranslationUnit()
1339 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
H A DSemaDecl.cpp14461 if (Context.DeclMustBeEmitted(var) && !ModuleScopes.empty()) in CheckCompleteVariableDeclaration()
14462 Context.addModuleInitializer(ModuleScopes.back().Module, var); in CheckCompleteVariableDeclaration()
14473 if (Context.DeclMustBeEmitted(var) && !ModuleScopes.empty()) in CheckCompleteVariableDeclaration()
14474 Context.addModuleInitializer(ModuleScopes.back().Module, var); in CheckCompleteVariableDeclaration()
H A DSemaLookup.cpp1629 if (llvm::count_if(ModuleScopes, in isUsableModule()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h3110 return ModuleScopes.empty() ? false in currentModuleIsHeaderUnit()
3111 : ModuleScopes.back().Module->isHeaderUnit(); in currentModuleIsHeaderUnit()
9598 return ModuleScopes.empty() ? nullptr : ModuleScopes.back().Module; in getCurrentModule()
9603 return ModuleScopes.empty() in currentModuleIsImplementation()
9605 : ModuleScopes.back().Module->isModuleImplementation(); in currentModuleIsImplementation()
9711 llvm::SmallVector<ModuleScope, 16> ModuleScopes; variable