Home
last modified time | relevance | path

Searched refs:LookupRes (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DErrnoModeling.cpp79 auto LookupRes = ACtx.getTranslationUnitDecl()->lookup(&II); in REGISTER_TRAIT_WITH_PROGRAMSTATE() local
80 auto Found = llvm::find_if(LookupRes, [&ACtx](const Decl *D) { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
87 if (Found == LookupRes.end()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
97 SmallVector<const Decl *> LookupRes; in getErrnoFunc() local
100 llvm::append_range(LookupRes, ACtx.getTranslationUnitDecl()->lookup(&II)); in getErrnoFunc()
103 auto Found = llvm::find_if(LookupRes, [&ACtx](const Decl *D) { in getErrnoFunc()
111 if (Found == LookupRes.end()) in getErrnoFunc()
H A DStdLibraryFunctionsChecker.cpp1154 auto LookupRes = ACtx.getTranslationUnitDecl()->lookup(&II); in initFunctionSummaries() local
1155 if (LookupRes.empty()) in initFunctionSummaries()
1163 for (Decl *D : LookupRes) in initFunctionSummaries()
1171 for (Decl *D : LookupRes) in initFunctionSummaries()
1306 auto LookupRes = ACtx.getTranslationUnitDecl()->lookup(&II); in initFunctionSummaries() local
1307 if (LookupRes.empty()) in initFunctionSummaries()
1309 for (Decl *D : LookupRes) { in initFunctionSummaries()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A DLookup.cpp156 auto LookupRes = NS->lookup(DeclarationName(&AST.Idents.get(Head))); in disambiguateSpellingInScope() local
157 if (!LookupRes.empty()) { in disambiguateSpellingInScope()
158 for (const NamedDecl *Res : LookupRes) in disambiguateSpellingInScope()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTestTU.cpp220 auto LookupRes = Scope.lookup(DeclarationName(&Ctx.Idents.get(Name))); in findDecl() local
221 assert(!LookupRes.empty() && "Lookup failed"); in findDecl()
222 assert(LookupRes.isSingleResult() && "Lookup returned multiple results"); in findDecl()
223 return *LookupRes.front(); in findDecl()
/llvm-project-15.0.7/clang/lib/AST/
H A DExternalASTMerger.cpp508 Decl *LookupRes = C.first.get(); in FindExternalVisibleDeclsByName() local
510 auto NDOrErr = Importer->Import(LookupRes); in FindExternalVisibleDeclsByName()
517 importSpecializationsIfNeeded(LookupRes, Importer); in FindExternalVisibleDeclsByName()
H A DASTContext.cpp425 auto LookupRes = CommentlessRedeclChains.find(CanonicalD); in getRawCommentForAnyRedecl() local
426 if (LookupRes != CommentlessRedeclChains.end()) in getRawCommentForAnyRedecl()
427 return LookupRes->second; in getRawCommentForAnyRedecl()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp2705 ASSERT_TRUE(LookupRes.empty()); in TEST_P()
2716 EXPECT_TRUE(LookupRes.empty()); in TEST_P()
2717 LookupRes = ToTU->noload_lookup(ToName); in TEST_P()
2718 EXPECT_TRUE(LookupRes.isSingleResult()); in TEST_P()
2752 ASSERT_TRUE(LookupRes.empty()); in TEST_P()
2754 ASSERT_TRUE(LookupRes.isSingleResult()); in TEST_P()
2762 EXPECT_TRUE(LookupRes.empty()); in TEST_P()
2763 LookupRes = ToTU->noload_lookup(ToName); in TEST_P()
2765 EXPECT_TRUE(LookupRes.isSingleResult()); in TEST_P()
2796 ASSERT_TRUE(LookupRes.empty()); in TEST_P()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp301 auto LookupRes = DC->lookup(DeclarationName(&AST.Idents.get(Name))); in conflictInNamespace() local
302 if (LookupRes.empty()) in conflictInNamespace()
304 return LookupRes.front(); in conflictInNamespace()