Home
last modified time | relevance | path

Searched refs:getTopLevelModule (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp671 const Module *TopLevelModule = Imported->getTopLevelModule(); in handleImport()
746 assert(M == M->getTopLevelModule() && "Expected top level module!"); in handleTopLevelModule()
903 if (Import->getTopLevelModule() != M->getTopLevelModule()) in addModulePrebuiltDeps()
904 if (MDC.isPrebuiltModule(Import->getTopLevelModule())) in addModulePrebuiltDeps()
905 if (SeenSubmodules.insert(Import->getTopLevelModule()).second) { in addModulePrebuiltDeps()
906 MD.PrebuiltModuleDeps.emplace_back(Import->getTopLevelModule()); in addModulePrebuiltDeps()
938 if (Import->getTopLevelModule() != M->getTopLevelModule() && in addModuleDep()
940 if (auto ImportID = handleTopLevelModule(Import->getTopLevelModule())) in addModuleDep()
941 if (AddedModules.insert(Import->getTopLevelModule()).second) in addModuleDep()
942 addOneModuleDep(Import->getTopLevelModule(), *ImportID, MD); in addModuleDep()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DModule.h722 Module *getTopLevelModule() { in getTopLevelModule() function
724 const_cast<const Module *>(this)->getTopLevelModule()); in getTopLevelModule()
729 const Module *getTopLevelModule() const;
733 return getTopLevelModule()->Name; in getTopLevelModuleName()
738 return getTopLevelModule()->ASTFile; in getASTFile()
744 getTopLevelModule()->ASTFile = File; in setASTFile()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp481 return M ? M->getTopLevelModule() : nullptr; in getTopLevelOrNull()
542 << RequestingModule->getTopLevelModule()->Name << Filename in diagnoseHeaderInclusion()
554 << RequestingModule->getTopLevelModule()->Name << Filename; in diagnoseHeaderInclusion()
558 diag::kind DiagID = RequestingModule->getTopLevelModule()->IsFramework ? in diagnoseHeaderInclusion()
612 if (H.getModule()->getTopLevelModule() == SourceModule) in findModuleForHeader()
1118 Result->getTopLevelModule()->Directory->getName().size()); in inferFrameworkModule()
1505 auto *Top = Mod->getTopLevelModule(); in resolveUses()
1690 ? ActiveModule->getTopLevelModule()->getFullModuleName() in handleModuleDecl()
1840 ActiveModule->getTopLevelModule()->markUnavailable(/*Unimportable=*/false); in handleModuleDecl()
1841 ActiveModule->getTopLevelModule()->MissingHeaders.append( in handleModuleDecl()
H A DPPDirectives.cpp2433 static_cast<Module *>(Imported)->getTopLevelModule()); in HandleHeaderIncludeOrImport()
2687 if (ModuleToImport->getTopLevelModule()->ShadowingModule) { in HandleHeaderIncludeOrImport()
2693 Diag(ModuleToImport->getTopLevelModule()->ShadowingModule->DefinitionLoc, in HandleHeaderIncludeOrImport()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp162 if (!LangOpts.isCompilingModule() && getTopLevelModule()->IsFramework && in isForBuilding()
201 const Module *Module::getTopLevelModule() const { in getTopLevelModule() function in Module
288 auto *Top = getTopLevelModule(); in directlyUses()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DModuleMap.h186 (M && M->getTopLevelModule() == getModule()->getTopLevelModule()); in isAccessibleFrom()
/freebsd/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesManager.cpp224 auto ExportedModuleName = M->getTopLevelModule()->ExportAsModule; in getCurrentModuleAPINotes()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp136 getOwningModule()->getTopLevelModule()->isNamedModule()) in getTopLevelOwningNamedModule()
137 return getOwningModule()->getTopLevelModule(); in getTopLevelOwningNamedModule()
1157 M = M->getTopLevelModule(); in isInAnotherModuleUnit()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp1656 Current = Current->getTopLevelModule(); in isUsableModule()
1658 M = M->getTopLevelModule(); in isUsableModule()
1957 if (M->isGlobalModule() && LookupModules.count(M->getTopLevelModule())) in isModuleVisible()
1996 Module *DeclTopModule = DeclModule->getTopLevelModule(); in isReachableSlow()
2034 if (CurrentM && CurrentM->getTopLevelModule()->Imports.count(DeclTopModule)) in isReachableSlow()
5693 M = M->getTopLevelModule(); in diagnoseMissingImport()
H A DSemaLambda.cpp312 if (M && M->getTopLevelModule()->isNamedModuleUnit() && in getCurrentMangleNumberContext()
H A DSemaDecl.cpp1780 NewM = NewM->getTopLevelModule(); in IsRedefinitionInModule()
1782 OldM = OldM->getTopLevelModule(); in IsRedefinitionInModule()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInstance.cpp1632 clang::Module *TopModule = M->getTopLevelModule(); in checkConfigMacros()
2101 if (!Sub && Name == "Private" && Module == Module->getTopLevelModule()) { in loadModule()
2213 .resolveLinkAsDependencies(Module->getTopLevelModule()); in loadModule()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangModulesDeclVendor.cpp529 clang::Module *top_level_module = module->getTopLevelModule(); in ForEachMacro()
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h220 return OwningModule->getTopLevelModule()->Name; in getOwningModuleName()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp392 M = M->getTopLevelModule(); in shouldVarGenerateHereOnly()
421 M = M->getTopLevelModule(); in shouldFunctionGenerateHereOnly()
H A DASTReaderDecl.cpp3789 M->getTopLevelModule() == D->getOwningModule()->getTopLevelModule()) in checkMultipleDefinitionInNamedModules()
H A DASTWriter.cpp196 M = M->getTopLevelModule(); in GetAffectingModuleMaps()
2944 auto *Top = Mod->getTopLevelModule(); in getLocalOrImportedSubmoduleID()
6898 TouchedTopLevelModules.insert(D->getOwningModule()->getTopLevelModule()); in GetDeclRef()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp4296 M && M->getTopLevelModule()->isNamedModule() && in shouldEmitFunction()
4297 getContext().getCurrentNamedModule() != M->getTopLevelModule()) { in shouldEmitFunction()