Home
last modified time | relevance | path

Searched refs:findDecl (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/
DQualityTests.cpp77 Quality.merge(CodeCompletionResult(&findDecl(AST, "_f"), /*Priority=*/42)); in TEST()
120 Relevance.merge(CodeCompletionResult(&findDecl(AST, "deprecated"), in TEST()
128 Relevance.merge(CodeCompletionResult(&findDecl(AST, "main"), 42)); in TEST()
132 Relevance.merge(CodeCompletionResult(&findDecl(AST, "header"), 42)); in TEST()
135 Relevance.merge(CodeCompletionResult(&findDecl(AST, "header_main"), 42)); in TEST()
141 *dyn_cast<UsingDecl>(&findDecl(AST, [&](const NamedDecl &ND) { in TEST()
172 Relevance.merge(CodeCompletionResult(&findDecl(AST, "S::S"), 42)); in TEST()
367 const NamedDecl *Foo = &findDecl(AST, "Foo"); in TEST()
371 const NamedDecl *CtorDecl = &findDecl(AST, [](const NamedDecl &ND) { in TEST()
409 const NamedDecl *Foo = &findDecl(AST, "Foo::foo"); in TEST()
[all …]
DTypeHierarchyTests.cpp74 EXPECT_EQ(&findDecl(AST, "Child2"), static_cast<const NamedDecl *>(RD)); in TEST()
96 EXPECT_EQ(&findDecl(AST, "Child2"), static_cast<const NamedDecl *>(RD)); in TEST()
143 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent")); in TEST()
145 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Child1")); in TEST()
147 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Child2")); in TEST()
177 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent1")); in TEST()
179 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent2")); in TEST()
181 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent3")); in TEST()
182 const CXXRecordDecl *Child = dyn_cast<CXXRecordDecl>(&findDecl(AST, "Child")); in TEST()
202 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent")); in TEST()
[all …]
DTestTU.h93 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName);
95 const NamedDecl &findDecl(ParsedAST &AST,
DDumpASTTests.cpp153 auto Node = dumpAST(DynTypedNode::create(findDecl(AST, "x")), AST.getTokens(), in TEST()
162 auto Node = dumpAST(DynTypedNode::create(findDecl(AST, "x")), AST.getTokens(), in TEST()
DASTTests.cpp124 findDecl(AST, [&](const NamedDecl &ND) { in TEST()
190 findDecl(AST, [&](const NamedDecl &ND) { in TEST()
DTestTU.cpp189 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName) { in findDecl() function
210 const NamedDecl &findDecl(ParsedAST &AST, in findDecl() function
231 return findDecl(AST, [Name](const NamedDecl &ND) { in findUnqualifiedDecl()
DSourceCodeTests.cpp574 return findDecl(AST, Name).getLocation(); in TEST()
652 const auto &Func = cast<FunctionDecl>(findDecl(AST, "test")); in TEST()
677 FileID Foo = SM.getFileID(findDecl(AST, "foo").getLocation()); in TEST()
680 FileID Bar = SM.getFileID(findDecl(AST, "bar").getLocation()); in TEST()
DExpectedTypeTest.cpp35 const NamedDecl *decl(llvm::StringRef Name) { return &findDecl(*AST, Name); } in decl()
DCodeCompletionStringsTests.cpp65 getDeclComment(AST.getASTContext(), findDecl(AST, "X"))); in TEST_F()
DPreambleTests.cpp483 auto &ND = findDecl(AST, "foo"); in TEST()
DFindTargetTests.cpp930 auto *TestDecl = &findDecl(AST, "foo"); in annotateReferencesInFoo()
DXRefsTests.cpp1931 llvm::dyn_cast<FunctionDecl>(&findDecl(AST, [SL](const NamedDecl &ND) { in TEST()
DClangdTests.cpp1174 XKind = findDecl(AST.AST, "x").getKind(); in TEST()
DSymbolCollectorTests.cpp122 Qualified ? findDecl(*AST, Name) : findUnqualifiedDecl(*AST, Name); in shouldCollect()
DHoverTests.cpp2080 IndexSym.ID = getSymbolID(&findDecl(AST, "X")); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DRenamerClangTidyCheck.cpp201 const NamedDecl *findDecl(const RecordDecl &RecDecl, StringRef DeclName) { in findDecl() function
240 if (const NamedDecl *InClassRef = findDecl(Parent, DeclName)) in findDeclInBases()