Home
last modified time | relevance | path

Searched refs:functionDecl (Results 1 – 25 of 171) sorted by relevance

1234567

/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp171 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 DASTMatchersTraversalTest.cpp83 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 DGtestMatchersTest.cpp293 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 DGtestMatchers.cpp46 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 DTypePromotionInMathFnCheck.cpp71 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 DSourceLocationTest.cpp347 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 DASTImporterTest.cpp43 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 DASTTraverserTest.cpp134 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 DDeclTest.cpp171 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 DDurationUnnecessaryConversionCheck.cpp34 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 DRedundantStrcatCallsCheck.cpp29 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 DUpgradeDurationConversionsCheck.cpp38 callee(functionDecl( in registerMatchers()
62 callExpr(callee(functionDecl( in registerMatchers()
76 callExpr(callee(functionDecl( in registerMatchers()
108 callee(functionDecl( in registerMatchers()
H A DDurationRewriter.h102 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 DTransformerTest.cpp210 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 DSpuriouslyWakeUpFunctionsCheck.cpp31 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 DFoldInitTypeCheck.cpp42 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 DPosixReturnCheck.cpp35 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
44 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
53 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
H A DMisplacedOperatorInStrlenInAllocCheck.cpp22 const auto StrLenFunc = functionDecl(hasAnyName( in registerMatchers()
43 const auto Alloc0Func = functionDecl( in registerMatchers()
45 const auto Alloc1Func = functionDecl( in registerMatchers()
H A DNoEscapeCheck.cpp20 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 DStaticObjectExceptionCheck.cpp29 hasAncestor(functionDecl()))), in registerMatchers()
33 functionDecl(unless(isNoThrow())).bind("func")))), in registerMatchers()
35 functionDecl(unless(isNoThrow())).bind("func")))))) in registerMatchers()
H A DCommandProcessorCheck.cpp22 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 DSingleWorkItemBarrierCheck.cpp26 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 DNoMallocCheck.cpp33 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 DCloexecOpenCheck.cpp22 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 DMustCheckErrsCheck.cpp21 functionDecl(hasAnyName("ERR_PTR", "PTR_ERR", "IS_ERR", "IS_ERR_OR_NULL", in registerMatchers()
29 auto ReturnsErrFn = functionDecl(hasDescendant(ReturnToCheck)); in registerMatchers()

1234567