Home
last modified time | relevance | path

Searched refs:CurrentModule (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DModuleManager.cpp361 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local
362 VisitOrder.push_back(CurrentModule); in visit()
366 for (ModuleFile *M : llvm::reverse(CurrentModule->Imports)) { in visit()
398 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
400 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
404 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
405 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
406 if (!Visitor(*CurrentModule)) in visit()
412 ModuleFile *NextModule = CurrentModule; in visit()
H A DGeneratePCH.cpp48 M = PP.getHeaderSearchInfo().lookupModule(PP.getLangOpts().CurrentModule, in getEmittingModule()
H A DASTReader.cpp6045 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
6082 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock()
6117 CurrentModule = std::invoke(CreateModule, &ModMap, Name, ParentModule, in ReadSubmoduleBlock()
6127 if (OptionalFileEntryRef CurFile = CurrentModule->getASTFile()) { in ReadSubmoduleBlock()
6134 << CurrentModule->getTopLevelModuleName() << CurFile->getName() in ReadSubmoduleBlock()
6138 ModMap.getContainingModuleMapFile(CurrentModule); in ReadSubmoduleBlock()
6149 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
6150 CurrentModule->PresumedModuleMapFile = F.ModuleMapPath; in ReadSubmoduleBlock()
6153 CurrentModule->Kind = Kind; in ReadSubmoduleBlock()
6160 CurrentModule->DefinitionLoc = DefinitionLoc; in ReadSubmoduleBlock()
[all …]
H A DASTWriter.cpp236 const Module *CurrentModule = Q.front(); in GetAffectingModuleMaps() local
239 for (const Module *ImportedModule : CurrentModule->Imports) in GetAffectingModuleMaps()
241 for (const Module *UndeclaredModule : CurrentModule->UndeclaredUses) in GetAffectingModuleMaps()
244 for (auto *M : CurrentModule->submodules()) in GetAffectingModuleMaps()
1631 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock()
2947 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in getLocalOrImportedSubmoduleID()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp86 Module *CurrentModule, in isImportingModuleUnitFromSameModule() argument
101 if (!CurrentModule) in isImportingModuleUnitFromSameModule()
110 if (!CurrentModule->isModulePartitionImplementation()) in isImportingModuleUnitFromSameModule()
113 if (Ctx.isInSameModule(Imported, CurrentModule)) { in isImportingModuleUnitFromSameModule()
131 Module *Imported, Module *CurrentModule, in makeTransitiveImportsVisible() argument
156 if (isImportingModuleUnitFromSameModule(Ctx, Importing, CurrentModule, in makeTransitiveImportsVisible()
195 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit()
199 const_cast<LangOptions &>(getLangOpts()).CurrentModule = HUName.str(); in HandleStartOfHeaderUnit()
381 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl()
382 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
[all …]
H A DSema.cpp1352 if (Module *CurrentModule = getCurrentModule(); in ActOnEndOfTranslationUnit() local
1353 CurrentModule && CurrentModule->isInterfaceOrPartition()) { in ActOnEndOfTranslationUnit()
1367 CurrentModule->NamedModuleHasInit = in ActOnEndOfTranslationUnit()
1368 DoesModNeedInit(CurrentModule) || in ActOnEndOfTranslationUnit()
1369 llvm::any_of(CurrentModule->submodules(), DoesModNeedInit); in ActOnEndOfTranslationUnit()
1375 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local
1379 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
H A DSemaCodeComplete.cpp2204 clang::Module *CurrentModule = SemaRef.getCurrentModule(); in AddOrdinaryNameResults() local
2208 if (!CurrentModule) { in AddOrdinaryNameResults()
2218 if (!CurrentModule || in AddOrdinaryNameResults()
2219 CurrentModule->Kind == Module::ExplicitGlobalModuleFragment || in AddOrdinaryNameResults()
2220 CurrentModule->Kind == Module::ImplicitGlobalModuleFragment) { in AddOrdinaryNameResults()
2233 if (!CurrentModule || in AddOrdinaryNameResults()
2234 CurrentModule->Kind == Module::ModuleInterfaceUnit || in AddOrdinaryNameResults()
2235 CurrentModule->Kind == Module::ModulePartitionInterface) { in AddOrdinaryNameResults()
2245 if (CurrentModule && in AddOrdinaryNameResults()
2246 (CurrentModule->Kind == Module::ModuleInterfaceUnit || in AddOrdinaryNameResults()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DFrontendAction.cpp294 CI.getLangOpts().CurrentModule, SourceLocation(), /*AllowSearch*/false); in getCurrentModule()
642 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule()
654 Module *M = HS.lookupModule(CI.getLangOpts().CurrentModule, SourceLocation(), in prepareToBuildModule()
658 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule()
704 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
816 AST->getLangOpts().CurrentModule, SourceLocation(), in BeginSourceFile()
1012 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile()
1030 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile()
1045 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local
1046 if (!CurrentModule) in BeginSourceFile()
[all …]
H A DFrontendActions.cpp254 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile()
907 if (LO.CPlusPlusModules && !LO.CurrentModule.empty()) { in ExecuteAction()
913 if (MF.ModuleName != LO.CurrentModule) in ExecuteAction()
915 << LO.CurrentModule << "\n"; in ExecuteAction()
940 if (M->Name == LO.CurrentModule) { in ExecuteAction()
942 Out << " " << ModuleKindName(M->Kind) << " '" << LO.CurrentModule in ExecuteAction()
H A DCompilerInstance.cpp1181 Invocation->getLangOpts().CurrentModule = std::string(ModuleName); in cloneForModuleCompileImpl()
2044 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule()
2061 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule()
2181 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp157 StringRef CurrentModule = LangOpts.CurrentModule; in isForBuilding() local
163 CurrentModule == LangOpts.ModuleName && in isForBuilding()
164 !CurrentModule.ends_with("_Private") && in isForBuilding()
168 return TopLevelName == CurrentModule; in isForBuilding()
H A DLangOptions.cpp47 CurrentModule.clear(); in resetNonModularOptions()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerWriter.cpp161 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp875 if (LangOpts.CurrentModule == Name) in createModule()
937 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit()
955 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForImplementationUnit()
979 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderUnit()
1104 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule()
1739 Map.LangOpts.CurrentModule == ModuleName && in handleModuleDecl()
H A DPPMacroExpansion.cpp383 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros()
1939 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro()
1943 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1944 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
H A DPPLexerChange.cpp784 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
H A DPreprocessor.cpp529 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
H A DPPDirectives.cpp902 return getLangOpts().CurrentModule.empty() in getModuleForLocation()
904 : HeaderInfo.lookupModule(getLangOpts().CurrentModule, Loc); in getModuleForLocation()
H A DPragma.cpp1751 StringRef Current = PP.getLangOpts().CurrentModule; in HandlePragma()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.h117 int32_t CurrentModule = -1;
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.cpp1083 if (CurrentModule != Modi) { in createScopes()
1087 CurrentModule = Modi; in createScopes()
1114 if (LVScope *Scope = getScopeForModule(CurrentModule)) { in processModule()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/Serialization/
H A DSymbolGraphSerializer.cpp943 auto *CurrentModule = ModuleForCurrentSymbol; in traverseObjCCategoryRecord() local
951 ModuleForCurrentSymbol = CurrentModule; in traverseObjCCategoryRecord()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp465 if (Module *CurrentModule = PP.getCurrentModuleImplementation()) in applyDiscoveredDependencies() local
469 .getModuleMapFileForUniquing(CurrentModule)) in applyDiscoveredDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp356 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper()
361 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper()
416 Module &CurrentModule; member in __anon71830f180111::GUIDToFuncNameMapper
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DLangOptions.h577 std::string CurrentModule; variable

12