| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | QualityTests.cpp | 123 Relevance.merge(CodeCompletionResult(&findDecl(AST, "deprecated"), in TEST() 131 Relevance.merge(CodeCompletionResult(&findDecl(AST, "main"), 42)); in TEST() 135 Relevance.merge(CodeCompletionResult(&findDecl(AST, "header"), 42)); in TEST() 144 *dyn_cast<UsingDecl>(&findDecl(AST, [&](const NamedDecl &ND) { in TEST() 175 Relevance.merge(CodeCompletionResult(&findDecl(AST, "S::S"), 42)); in TEST() 370 const NamedDecl *Foo = &findDecl(AST, "Foo"); in TEST() 374 const NamedDecl *CtorDecl = &findDecl(AST, [](const NamedDecl &ND) { in TEST() 412 const NamedDecl *Foo = &findDecl(AST, "Foo::foo"); in TEST() 413 const NamedDecl *Bar = &findDecl(AST, "Foo::bar"); in TEST() 414 const NamedDecl *Tpl = &findDecl(AST, "Foo::tpl"); in TEST() [all …]
|
| H A D | TypeHierarchyTests.cpp | 76 EXPECT_EQ(&findDecl(AST, "Child2"), in TEST() 100 EXPECT_EQ(&findDecl(AST, "Child2"), in TEST() 147 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent")); in TEST() 149 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Child1")); in TEST() 151 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Child2")); in TEST() 181 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent1")); in TEST() 183 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent2")); in TEST() 206 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Parent")); in TEST() 225 return findDecl(AST, [&Query](const NamedDecl &ND) { in findDeclWithTemplateArgs() 258 dyn_cast<CXXRecordDecl>(&findDecl(AST, "Child1")); in TEST() [all …]
|
| H A D | InsertionPointTests.cpp | 47 auto &NS = cast<NamespaceDecl>(findDecl(AST, "ns")); in TEST() 104 const CXXRecordDecl &C = cast<CXXRecordDecl>(findDecl(AST, "C")); in TEST() 156 const CXXRecordDecl &S = cast<CXXRecordDecl>(findDecl(AST, "S")); in TEST() 164 const CXXRecordDecl &T = cast<CXXRecordDecl>(findDecl(AST, "T")); in TEST() 172 const CXXRecordDecl &U = cast<CXXRecordDecl>(findDecl(AST, "U")); in TEST() 194 cast<ObjCImplementationDecl>(findDecl(AST, [&](const NamedDecl &D) { in TEST()
|
| H A D | ASTTests.cpp | 307 const_cast<NamedDecl *>(&findDecl(AST, [&](const NamedDecl &D) { in TEST() 346 llvm::cast<FunctionTemplateDecl>(findDecl(AST, "withAuto")); in TEST() 360 llvm::cast<FunctionDecl>(findDecl(AST, "withoutAuto")); in TEST() 453 findDecl(AST, [&](const NamedDecl &ND) { in TEST() 519 findDecl(AST, [&](const NamedDecl &ND) { in TEST() 590 Stmt *FooBody = cast<FunctionDecl>(findDecl(AST, "foo")).getBody(); in TEST()
|
| H A D | TestTU.h | 99 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName); 101 const NamedDecl &findDecl(ParsedAST &AST,
|
| H A D | DumpASTTests.cpp | 158 auto Node = dumpAST(DynTypedNode::create(findDecl(AST, "x")), AST.getTokens(), in TEST() 180 auto Node = dumpAST(DynTypedNode::create(findDecl(AST, "x")), AST.getTokens(), in TEST()
|
| H A D | TestTU.cpp | 216 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName) { in findDecl() function 236 const NamedDecl &findDecl(ParsedAST &AST, in findDecl() function 258 return findDecl(AST, [Name](const NamedDecl &ND) { in findUnqualifiedDecl()
|
| H A D | ExpectedTypeTest.cpp | 35 const NamedDecl *decl(llvm::StringRef Name) { return &findDecl(*AST, Name); } in decl()
|
| H A D | SourceCodeTests.cpp | 584 return findDecl(AST, Name).getLocation(); in TEST() 662 const auto &Func = cast<FunctionDecl>(findDecl(AST, "test")); in TEST() 687 FileID Foo = SM.getFileID(findDecl(AST, "foo").getLocation()); in TEST() 690 FileID Bar = SM.getFileID(findDecl(AST, "bar").getLocation()); in TEST()
|
| H A D | CodeCompletionStringsTests.cpp | 65 getDeclComment(AST.getASTContext(), findDecl(AST, "X"))); in TEST_F()
|
| H A D | XRefsTests.cpp | 1045 hasID(getSymbolID(&findDecl(AST, "add")))))); in TEST() 1200 hasID(getSymbolID(&findDecl(AST, "MyClass")))))); in TEST() 2449 llvm::dyn_cast<FunctionDecl>(&findDecl(AST, [SL](const NamedDecl &ND) { in TEST()
|
| H A D | PreambleTests.cpp | 484 auto &ND = findDecl(AST, "foo"); in TEST()
|
| H A D | DiagnosticsTests.cpp | 873 const auto *X = cast<FunctionDecl>(findDecl(AST, "foo")).getParamDecl(0); in TEST() 891 const auto *X = cast<FunctionDecl>(findDecl(AST, "foo")).getParamDecl(0); in TEST() 894 const auto *Y = cast<FunctionDecl>(findDecl(AST, "bar")).getParamDecl(0); in TEST()
|
| H A D | FindTargetTests.cpp | 1144 auto *TestDecl = &findDecl(AST, "foo"); in annotateReferencesInFoo()
|
| H A D | ClangdTests.cpp | 1173 XKind = findDecl(AST.AST, "x").getKind(); in TEST()
|
| H A D | SymbolCollectorTests.cpp | 124 Qualified ? findDecl(*AST, Name) : findUnqualifiedDecl(*AST, Name); in shouldCollect()
|
| H A D | HoverTests.cpp | 2649 IndexSym.ID = getSymbolID(&findDecl(AST, "X")); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A 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()
|