/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | QualityTests.cpp | 77 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 …]
|
D | TypeHierarchyTests.cpp | 74 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 …]
|
D | TestTU.h | 93 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName); 95 const NamedDecl &findDecl(ParsedAST &AST,
|
D | DumpASTTests.cpp | 153 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()
|
D | ASTTests.cpp | 124 findDecl(AST, [&](const NamedDecl &ND) { in TEST() 190 findDecl(AST, [&](const NamedDecl &ND) { in TEST()
|
D | TestTU.cpp | 189 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()
|
D | SourceCodeTests.cpp | 574 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()
|
D | ExpectedTypeTest.cpp | 35 const NamedDecl *decl(llvm::StringRef Name) { return &findDecl(*AST, Name); } in decl()
|
D | CodeCompletionStringsTests.cpp | 65 getDeclComment(AST.getASTContext(), findDecl(AST, "X"))); in TEST_F()
|
D | PreambleTests.cpp | 483 auto &ND = findDecl(AST, "foo"); in TEST()
|
D | FindTargetTests.cpp | 930 auto *TestDecl = &findDecl(AST, "foo"); in annotateReferencesInFoo()
|
D | XRefsTests.cpp | 1931 llvm::dyn_cast<FunctionDecl>(&findDecl(AST, [SL](const NamedDecl &ND) { in TEST()
|
D | ClangdTests.cpp | 1174 XKind = findDecl(AST.AST, "x").getKind(); in TEST()
|
D | SymbolCollectorTests.cpp | 122 Qualified ? findDecl(*AST, Name) : findUnqualifiedDecl(*AST, Name); in shouldCollect()
|
D | HoverTests.cpp | 2080 IndexSym.ID = getSymbolID(&findDecl(AST, "X")); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | RenamerClangTidyCheck.cpp | 201 const NamedDecl *findDecl(const RecordDecl &RecDecl, StringRef DeclName) { in findDecl() function 240 if (const NamedDecl *InClassRef = findDecl(Parent, DeclName)) in findDeclInBases()
|