Home
last modified time | relevance | path

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

12

/freebsd-14-stable/contrib/llvm-project/clang/lib/Serialization/
HDModuleManager.cpp358 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local
359 VisitOrder.push_back(CurrentModule); in visit()
363 for (ModuleFile *M : llvm::reverse(CurrentModule->Imports)) { in visit()
395 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
397 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
401 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
402 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
403 if (!Visitor(*CurrentModule)) in visit()
409 ModuleFile *NextModule = CurrentModule; in visit()
HDGeneratePCH.cpp48 M = PP.getHeaderSearchInfo().lookupModule(PP.getLangOpts().CurrentModule, in getEmittingModule()
HDASTReader.cpp5721 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
5758 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock()
5794 CurrentModule = in ReadSubmoduleBlock()
5807 if (OptionalFileEntryRef CurFile = CurrentModule->getASTFile()) { in ReadSubmoduleBlock()
5815 << CurrentModule->getTopLevelModuleName() << CurFile->getName() in ReadSubmoduleBlock()
5822 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
5823 CurrentModule->PresumedModuleMapFile = F.ModuleMapPath; in ReadSubmoduleBlock()
5826 CurrentModule->Kind = Kind; in ReadSubmoduleBlock()
5827 CurrentModule->DefinitionLoc = DefinitionLoc; in ReadSubmoduleBlock()
5828 CurrentModule->Signature = F.Signature; in ReadSubmoduleBlock()
[all …]
HDASTWriter.cpp214 const Module *CurrentModule = Q.front(); in GetAffectingModuleMaps() local
217 for (const Module *ImportedModule : CurrentModule->Imports) in GetAffectingModuleMaps()
219 for (const Module *UndeclaredModule : CurrentModule->UndeclaredUses) in GetAffectingModuleMaps()
222 for (auto *M : CurrentModule->submodules()) in GetAffectingModuleMaps()
1567 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock()
2871 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in getLocalOrImportedSubmoduleID()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Sema/
HDSemaModule.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
154 if (isImportingModuleUnitFromSameModule(Ctx, Importing, CurrentModule, in makeTransitiveImportsVisible()
190 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit()
194 const_cast<LangOptions &>(getLangOpts()).CurrentModule = HUName.str(); in HandleStartOfHeaderUnit()
378 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl()
379 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
[all …]
HDSema.cpp1271 if (Module *CurrentModule = getCurrentModule(); in ActOnEndOfTranslationUnit() local
1272 CurrentModule && CurrentModule->isInterfaceOrPartition()) { in ActOnEndOfTranslationUnit()
1286 CurrentModule->NamedModuleHasInit = in ActOnEndOfTranslationUnit()
1287 DoesModNeedInit(CurrentModule) || in ActOnEndOfTranslationUnit()
1288 llvm::any_of(CurrentModule->submodules(), in ActOnEndOfTranslationUnit()
1295 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local
1299 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Frontend/
HDFrontendAction.cpp160 CI.getLangOpts().CurrentModule, SourceLocation(), /*AllowSearch*/false); in getCurrentModule()
491 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule()
503 Module *M = HS.lookupModule(CI.getLangOpts().CurrentModule, SourceLocation(), in prepareToBuildModule()
507 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule()
554 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
668 AST->getLangOpts().CurrentModule, SourceLocation(), in BeginSourceFile()
864 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile()
882 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile()
897 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local
898 if (!CurrentModule) in BeginSourceFile()
[all …]
HDFrontendActions.cpp254 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile()
878 if (LO.CPlusPlusModules && !LO.CurrentModule.empty()) { in ExecuteAction()
884 if (MF.ModuleName != LO.CurrentModule) in ExecuteAction()
886 << LO.CurrentModule << "\n"; in ExecuteAction()
911 if (M->Name == LO.CurrentModule) { in ExecuteAction()
913 Out << " " << ModuleKindName(M->Kind) << " '" << LO.CurrentModule in ExecuteAction()
HDCompilerInstance.cpp1206 Invocation->getLangOpts().CurrentModule = std::string(ModuleName);
2030 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule()
2047 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule()
2165 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
HDASTUnit.cpp896 Module *M = HeaderInfo.lookupModule(AST->getLangOpts().CurrentModule); in LoadFromASTFile()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Basic/
HDModule.cpp162 StringRef CurrentModule = LangOpts.CurrentModule; in isForBuilding() local
168 CurrentModule == LangOpts.ModuleName && in isForBuilding()
169 !CurrentModule.ends_with("_Private") && in isForBuilding()
173 return TopLevelName == CurrentModule; in isForBuilding()
HDLangOptions.cpp45 CurrentModule.clear(); in resetNonModularOptions()
/freebsd-14-stable/contrib/llvm-project/clang/lib/CodeGen/
HDObjectFilePCHContainerOperations.cpp160 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
/freebsd-14-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
HDLVCodeViewReader.h117 int32_t CurrentModule = -1;
/freebsd-14-stable/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
HDLVCodeViewReader.cpp1089 if (CurrentModule != Modi) { in createScopes()
1093 CurrentModule = Modi; in createScopes()
1120 if (LVScope *Scope = getScopeForModule(CurrentModule)) { in processModule()
/freebsd-14-stable/contrib/llvm-project/clang/lib/ExtractAPI/Serialization/
HDSymbolGraphSerializer.cpp931 auto *CurrentModule = ModuleForCurrentSymbol; in traverseObjCCategoryRecord() local
939 ModuleForCurrentSymbol = CurrentModule; in traverseObjCCategoryRecord()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Lex/
HDModuleMap.cpp863 if (LangOpts.CurrentModule == Name) in findOrCreateModule()
926 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit()
944 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForImplementationUnit()
968 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderUnit()
1091 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule()
2075 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
HDPPMacroExpansion.cpp400 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros()
1986 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro()
1990 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1991 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
HDPPLexerChange.cpp790 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
HDPreprocessor.cpp531 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
HDPPDirectives.cpp876 return getLangOpts().CurrentModule.empty() in getModuleForLocation()
878 : HeaderInfo.lookupModule(getLangOpts().CurrentModule, Loc); in getModuleForLocation()
HDPragma.cpp1744 StringRef Current = PP.getLangOpts().CurrentModule; in HandlePragma()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
HDModuleDepCollector.cpp365 if (Module *CurrentModule = PP.getCurrentModuleImplementation()) in applyDiscoveredDependencies() local
369 .getModuleMapFileForUniquing(CurrentModule)) in applyDiscoveredDependencies()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
HDSampleProfile.cpp356 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper()
361 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper()
416 Module &CurrentModule; member in __anon2feb6cb20111::GUIDToFuncNameMapper
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/Basic/
HDLangOptions.h516 std::string CurrentModule; variable

12