| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNarrowingTest.cpp | 171 allOf(callee(functionDecl(hasName("f"))), in TEST_P() 176 callee(functionDecl(hasName("f"))), in TEST_P() 182 callee(functionDecl(hasName("f"))), in TEST_P() 3173 functionDecl(isInstantiated()))); in TEST_P() 3366 functionDecl(isNoReturn()))); in TEST_P() 3368 functionDecl(isNoReturn()))); in TEST_P() 3401 functionDecl(isNoReturn()))); in TEST_P() 3404 functionDecl(isNoReturn()))); in TEST_P() 3670 functionDecl( in TEST_P() 3685 functionDecl( in TEST_P() [all …]
|
| H A D | ASTMatchersTraversalTest.cpp | 83 functionDecl(forEachDescendant( in TEST() 932 functionDecl( in TEST() 1050 functionDecl( in TEST() 2459 functionDecl( in TEST() 2509 functionDecl( in TEST() 2715 functionDecl(hasName("timesTwo"), in TEST() 2722 functionDecl(hasName("timesTwo"), in TEST() 5105 functionDecl(decl().bind("x"), in TEST() 5521 functionDecl(hasName("f"), in TEST() 5564 functionDecl(hasName("f"), in TEST() [all …]
|
| H A D | GtestMatchersTest.cpp | 293 expr(), callExpr(callee(functionDecl(hasName("::testing::Eq"))))))); in TEST() 304 expr(), callExpr(callee(functionDecl(hasName("::testing::Eq"))))))); in TEST() 329 callee(functionDecl(hasName("gmock_TwoArgsMethod")))) in TEST() 356 callee(functionDecl(hasName("gmock_TwoArgsMethod")))) in TEST() 384 callee(functionDecl(hasName("gmock_TwoArgsMethod")))) in TEST() 412 callee(functionDecl(hasName("gmock_TwoArgsMethod")))) in TEST()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | GtestMatchers.cpp | 46 return functionDecl(hasName("::testing::internal::CmpHelperNE")); in getComparisonDecl() 48 return functionDecl(hasName("::testing::internal::CmpHelperGE")); in getComparisonDecl() 50 return functionDecl(hasName("::testing::internal::CmpHelperGT")); in getComparisonDecl() 52 return functionDecl(hasName("::testing::internal::CmpHelperLE")); in getComparisonDecl() 54 return functionDecl(hasName("::testing::internal::CmpHelperLT")); in getComparisonDecl() 140 callExpr(callee(functionDecl(hasName( in gtestThatInternal() 161 callee(functionDecl(hasName(getSpecSetterName(Macro)))), in gtestCallInternal() 172 callee(functionDecl(hasName(getSpecSetterName(Macro)))), in gtestCallInternal() 187 callee(functionDecl(hasName(("gmock_" + MockMethodName).str())))), in gtestCallInternal()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | TypePromotionInMathFnCheck.cpp | 71 callExpr(callee(functionDecl(OneDoubleArgFns, parameterCountIs(1), in registerMatchers() 82 callExpr(callee(functionDecl(TwoDoubleArgFns, parameterCountIs(2), in registerMatchers() 91 callExpr(callee(functionDecl(hasName("::fma"), parameterCountIs(3), in registerMatchers() 102 callExpr(callee(functionDecl( in registerMatchers() 114 callExpr(callee(functionDecl(hasName("::nexttoward"), parameterCountIs(2), in registerMatchers() 125 callee(functionDecl( in registerMatchers() 136 callExpr(callee(functionDecl(hasName("::scalbln"), parameterCountIs(2), in registerMatchers() 145 callExpr(callee(functionDecl(hasName("::scalbn"), parameterCountIs(2), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | SourceLocationTest.cpp | 347 EXPECT_TRUE(Verifier.match("class C { C(); };", functionDecl())); in TEST() 742 functionDecl())); in TEST() 762 EXPECT_TRUE(Verifier.match("void f(...);\n", functionDecl())); in TEST() 776 functionDecl())); in TEST() 784 functionDecl())); in TEST() 799 functionDecl())); in TEST() 808 functionDecl())); in TEST() 817 functionDecl())); in TEST() 855 functionDecl())); in TEST() 865 functionDecl())); in TEST() [all …]
|
| H A D | ASTImporterTest.cpp | 43 auto Pattern = functionDecl(hasName("f")); in TEST_P() 259 functionDecl(hasDescendant( in TEST_P() 263 functionDecl(hasDescendant( in TEST_P() 271 functionDecl(hasDescendant( in TEST_P() 275 functionDecl(hasDescendant( in TEST_P() 279 functionDecl(hasDescendant( in TEST_P() 641 functionDecl( in TEST_P() 776 functionDecl( in TEST_P() 792 functionDecl(hasDescendant( in TEST_P() 900 functionDecl( in TEST_P() [all …]
|
| H A D | ASTTraverserTest.cpp | 134 auto Result = ast_matchers::match(functionDecl(hasName(Name)).bind("fn"), in getFunctionNode() 400 ast_matchers::match(functionDecl(hasName("overloadCall")).bind("fn"), in TEST() 440 functionDecl(hasName("conversionOperator"), in TEST() 471 functionDecl(hasName("template_test"), in TEST() 498 functionDecl( in TEST() 691 auto BN = ast_matchers::match(functionDecl(hasName("foo")).bind("fn"), in TEST() 790 auto BN = ast_matchers::match(functionDecl(hasName(name)).bind("fn"), in TEST() 978 lambdaExpr(hasAncestor(functionDecl(hasName(name)))).bind("lambda"), in TEST() 1476 callExpr(callee(functionDecl(hasName("hasDefaultArg")))) in TEST() 1500 functionDecl(hasName("decomposition"), in TEST() [all …]
|
| H A D | DeclTest.cpp | 171 selectFirst<FunctionDecl>("f", match(functionDecl().bind("f"), Ctx)); in TEST() 196 match(functionDecl().bind("f"), Ctx); in TEST() 233 "f", match(functionDecl(hasName("f")).bind("f"), Ctx)); in TEST() 241 "g", match(functionDecl(hasName("g")).bind("g"), Ctx)); in TEST() 251 "f", match(functionDecl(hasName("f")).bind("f"), CtxTS)); in TEST() 258 "g", match(functionDecl(hasName("g")).bind("g"), CtxTS)); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | DurationUnnecessaryConversionCheck.cpp | 34 callExpr(callee(functionDecl(hasName(DurationFactory))), in registerMatchers() 40 callee(functionDecl(hasAnyName(FloatConversion, IntegerConversion))), in registerMatchers() 52 callee(functionDecl(hasName("::absl::FDivDuration"))), in registerMatchers() 60 callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 67 callExpr(callee(functionDecl(hasName(DurationFactory))), in registerMatchers()
|
| H A D | RedundantStrcatCallsCheck.cpp | 29 callExpr(callee(functionDecl(hasName("::absl::StrCat")))); in registerMatchers() 31 callExpr(callee(functionDecl(hasName("::absl::StrAppend")))); in registerMatchers() 35 callee(functionDecl(hasAnyName("::absl::StrCat", "::absl::StrAppend")))); in registerMatchers() 68 has(callExpr(callee(functionDecl(*Strcat))).bind("StrCat"))); in processArgument()
|
| H A D | UpgradeDurationConversionsCheck.cpp | 38 callee(functionDecl( in registerMatchers() 62 callExpr(callee(functionDecl( in registerMatchers() 76 callExpr(callee(functionDecl( in registerMatchers() 108 callee(functionDecl( in registerMatchers()
|
| H A D | DurationRewriter.h | 102 return functionDecl( in AST_MATCHER_FUNCTION() 114 return functionDecl(hasAnyName("::absl::Nanoseconds", "::absl::Microseconds", in AST_MATCHER_FUNCTION() 122 return functionDecl(hasAnyName( in AST_MATCHER_FUNCTION()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | TransformerTest.cpp | 210 callExpr(callee(functionDecl(hasName("strlen"))), in ruleStrlenSize() 257 makeRule(callExpr(callee(functionDecl(hasName("f")))), in TEST_F() 275 callExpr(callee(functionDecl(hasName("f")))), in TEST_F() 532 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F() 543 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F() 585 makeRule(functionDecl(hasName("f"), in TEST_F() 600 testRule(makeRule(functionDecl(hasName("f"), in TEST_F() 612 Transformer T(makeRule(functionDecl(hasName("f")), in TEST_F() 627 makeRule(functionDecl( in TEST_F() 670 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SpuriouslyWakeUpFunctionsCheck.cpp | 31 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers() 38 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers() 45 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers() 57 callExpr(callee(functionDecl(hasAnyName("cnd_wait", "cnd_timedwait")))) in registerMatchers()
|
| H A D | FoldInitTypeCheck.cpp | 42 callExpr(callee(functionDecl( in registerMatchers() 50 callExpr(callee(functionDecl(hasName("::std::inner_product"), in registerMatchers() 59 callExpr(callee(functionDecl(hasName("::std::reduce"), in registerMatchers() 67 callExpr(callee(functionDecl(hasName("::std::inner_product"), in registerMatchers()
|
| H A D | PosixReturnCheck.cpp | 35 hasLHS(callExpr(callee(functionDecl( in registerMatchers() 44 hasLHS(callExpr(callee(functionDecl( in registerMatchers() 53 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
|
| H A D | MisplacedOperatorInStrlenInAllocCheck.cpp | 22 const auto StrLenFunc = functionDecl(hasAnyName( in registerMatchers() 43 const auto Alloc0Func = functionDecl( in registerMatchers() 45 const auto Alloc1Func = functionDecl( in registerMatchers()
|
| H A D | NoEscapeCheck.cpp | 20 Finder->addMatcher(callExpr(callee(functionDecl(hasName("::dispatch_async"))), in registerMatchers() 24 Finder->addMatcher(callExpr(callee(functionDecl(hasName("::dispatch_after"))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | StaticObjectExceptionCheck.cpp | 29 hasAncestor(functionDecl()))), in registerMatchers() 33 functionDecl(unless(isNoThrow())).bind("func")))), in registerMatchers() 35 functionDecl(unless(isNoThrow())).bind("func")))))) in registerMatchers()
|
| H A D | CommandProcessorCheck.cpp | 22 callee(functionDecl(hasAnyName("::system", "::popen", "::_popen")) in registerMatchers() 27 unless(callExpr(callee(functionDecl(hasName("::system"))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | SingleWorkItemBarrierCheck.cpp | 26 functionDecl( in registerMatchers() 31 forEachDescendant(callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 35 unless(hasDescendant(callExpr(callee(functionDecl( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NoMallocCheck.cpp | 33 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 40 callExpr(callee(functionDecl( in registerMatchers() 47 callExpr(callee(functionDecl( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/ |
| H A D | CloexecOpenCheck.cpp | 22 functionDecl(isExternC(), returns(isInteger()), in registerMatchers() 27 functionDecl(isExternC(), returns(isInteger()), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/linuxkernel/ |
| H A D | MustCheckErrsCheck.cpp | 21 functionDecl(hasAnyName("ERR_PTR", "PTR_ERR", "IS_ERR", "IS_ERR_OR_NULL", in registerMatchers() 29 auto ReturnsErrFn = functionDecl(hasDescendant(ReturnToCheck)); in registerMatchers()
|