Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DModuleManager.cpp382 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local
383 VisitOrder.push_back(CurrentModule); in visit()
387 for (auto M = CurrentModule->Imports.rbegin(), in visit()
388 MEnd = CurrentModule->Imports.rend(); in visit()
422 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
424 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
428 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
429 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
430 if (!Visitor(*CurrentModule)) in visit()
436 ModuleFile *NextModule = CurrentModule; in visit()
H A DGeneratePCH.cpp53 PP.getLangOpts().CurrentModule, /*AllowSearch*/ false); in HandleTranslationUnit()
H A DASTReader.cpp5465 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
5541 CurrentModule = in ReadSubmoduleBlock()
5569 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
5573 CurrentModule->Kind = Kind; in ReadSubmoduleBlock()
5576 CurrentModule->IsSystem = IsSystem || CurrentModule->IsSystem; in ReadSubmoduleBlock()
5592 CurrentModule->Conflicts.clear(); in ReadSubmoduleBlock()
5601 CurrentModule->IsUnimportable = in ReadSubmoduleBlock()
5603 CurrentModule->IsAvailable = !CurrentModule->IsUnimportable; in ReadSubmoduleBlock()
5681 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock()
5693 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock()
[all …]
H A DASTWriter.cpp1252 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock()
2490 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in getLocalOrImportedSubmoduleID()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DFrontendAction.cpp146 CI.getLangOpts().CurrentModule, /*AllowSearch*/false); in getCurrentModule()
462 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule()
474 Module *M = HS.lookupModule(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
478 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule()
519 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
620 AST->getLangOpts().CurrentModule, /*AllowSearch*/ false); in BeginSourceFile()
782 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local
783 if (!CurrentModule) in BeginSourceFile()
786 CurrentModule->PresumedModuleMapFile = PresumedModuleMapFile; in BeginSourceFile()
793 auto Buffer = getInputBufferForModule(CI, CurrentModule); in BeginSourceFile()
[all …]
H A DFrontendActions.cpp235 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile()
325 HS.getModuleMap().createHeaderModule(CI.getLangOpts().CurrentModule, Headers); in BeginSourceFileAction()
H A DCompilerInstance.cpp1094 Invocation->getLangOpts()->CurrentModule = std::string(ModuleName);
1861 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule()
1873 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule()
1994 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
H A DCompilerInvocation.cpp459 LangOpts.CurrentModule = LangOpts.ModuleName; in FixupInvocation()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp170 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl()
171 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
174 << getLangOpts().CurrentModule; in ActOnModuleDecl()
177 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl()
356 if (Mod->getTopLevelModuleName() == getLangOpts().CurrentModule && in ActOnModuleImport()
361 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport()
H A DSema.cpp1201 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local
1205 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
H A DSemaLookup.cpp1563 return M->getTopLevelModuleName() == LangOpts.CurrentModule || in isInCurrentModule()
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DLangOptions.cpp37 CurrentModule.clear(); in resetNonModularOptions()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp154 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
H A DCodeGenModule.cpp2340 if (M->getTopLevelModuleName() == getLangOpts().CurrentModule && in EmitModuleLinkOptions()
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DPPDirectives.cpp117 static bool isForModuleBuilding(Module *M, StringRef CurrentModule, in isForModuleBuilding() argument
123 if (M->getTopLevelModule()->IsFramework && CurrentModule == ModuleName && in isForModuleBuilding()
124 !CurrentModule.endswith("_Private") && TopLevelName.endswith("_Private")) in isForModuleBuilding()
127 return TopLevelName == CurrentModule; in isForModuleBuilding()
736 return getLangOpts().CurrentModule.empty() in getModuleForLocation()
738 : HeaderInfo.lookupModule(getLangOpts().CurrentModule); in getModuleForLocation()
2056 getLangOpts().CurrentModule, in HandleHeaderIncludeOrImport()
2356 isForModuleBuilding(M, getLangOpts().CurrentModule, in HandleHeaderIncludeOrImport()
H A DPPMacroExpansion.cpp394 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros()
1779 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro()
1783 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1784 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
H A DModuleMap.cpp828 if (LangOpts.CurrentModule == Name) in findOrCreateModule()
857 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit()
884 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderModule()
1030 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule()
1959 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
H A DPPLexerChange.cpp778 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
H A DPreprocessor.cpp521 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
H A DPragma.cpp1718 StringRef Current = PP.getLangOpts().CurrentModule; in HandlePragma()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DLangOptions.h343 std::string CurrentModule; variable
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp247 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper()
252 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper()
307 Module &CurrentModule; member in __anon4c1bc6cc0111::GUIDToFuncNameMapper