Home
last modified time | relevance | path

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

1234567

/external/clang/unittests/AST/
DASTImporterTest.cpp108 functionDecl( in TEST()
117 functionDecl( in TEST()
126 functionDecl( in TEST()
139 functionDecl( in TEST()
151 functionDecl( in TEST()
163 functionDecl( in TEST()
172 functionDecl( in TEST()
189 functionDecl( in TEST()
227 functionDecl(hasBody(compoundStmt(has(atomicExpr( in TEST()
240 functionDecl( in TEST()
[all …]
DSourceLocationTest.cpp154 EXPECT_TRUE(Verifier.match("class C { C(); };", functionDecl())); in TEST()
160 EXPECT_TRUE(Verifier.match("class C { C() = default; };", functionDecl())); in TEST()
166 EXPECT_TRUE(Verifier.match("class C { C() = delete; };", functionDecl())); in TEST()
550 functionDecl())); in TEST()
558 functionDecl(), in TEST()
569 functionDecl())); in TEST()
579 functionDecl(), in TEST()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp166 Program, callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST_P()
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()
947 DeclarationMatcher AnyOpStar = functionDecl(hasOverloadedOperatorName("*")); in TEST_P()
951 functionDecl(hasAnyOverloadedOperatorName("&", "&&")); in TEST_P()
1205 DeclarationMatcher Function1Arg = functionDecl(parameterCountIs(1)); in TEST_P()
1217 DeclarationMatcher Function1Arg = functionDecl(parameterCountIs(1)); in TEST_P()
1261 EXPECT_TRUE(matches("extern \"C\" void f() {}", functionDecl(isExternC()))); in TEST_P()
1263 matches("extern \"C\" { void f() {} }", functionDecl(isExternC()))); in TEST_P()
[all …]
DASTMatchersTraversalTest.cpp81 functionDecl(forEachDescendant( in TEST()
267 cxxNewExpr(hasDeclaration(functionDecl(parameterCountIs(1)))))); in TEST()
737 functionDecl( in TEST()
855 functionDecl( in TEST()
960 functionDecl(returns(asString("int"))))); in TEST()
962 functionDecl(returns(asString("float"))))); in TEST()
964 functionDecl(returns(hasDeclaration( in TEST()
1058 functionDecl(hasTemplateArgument(0, refersToType(asString("int")))))); in TEST()
1061 functionDecl(hasTemplateArgument(0, refersToType(asString("int")))))); in TEST()
1075 functionDecl(hasAnyTemplateArgument(templateArgument())))); in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
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()
/external/llvm-project/clang/lib/ASTMatchers/
DGtestMatchers.cpp31 return functionDecl(hasName("::testing::internal::CmpHelperNE")); in getComparisonDecl()
33 return functionDecl(hasName("::testing::internal::CmpHelperGE")); in getComparisonDecl()
35 return functionDecl(hasName("::testing::internal::CmpHelperGT")); in getComparisonDecl()
37 return functionDecl(hasName("::testing::internal::CmpHelperLE")); in getComparisonDecl()
39 return functionDecl(hasName("::testing::internal::CmpHelperLT")); in getComparisonDecl()
/external/llvm-project/clang/unittests/AST/
DSourceLocationTest.cpp299 EXPECT_TRUE(Verifier.match("class C { C(); };", functionDecl())); in TEST()
305 EXPECT_TRUE(Verifier.match("class C { C() = default; };", functionDecl())); in TEST()
311 EXPECT_TRUE(Verifier.match("class C { C() = delete; };", functionDecl())); in TEST()
695 functionDecl())); in TEST()
701 EXPECT_TRUE(Verifier.match("void f() noexcept(false);\n", functionDecl(), in TEST()
715 EXPECT_TRUE(Verifier.match("void f(...);\n", functionDecl())); in TEST()
721 EXPECT_TRUE(Verifier.match("void f(int a, ...);\n", functionDecl())); in TEST()
729 functionDecl())); in TEST()
737 functionDecl())); in TEST()
743 EXPECT_TRUE(Verifier.match("void f(int a);\n", functionDecl())); in TEST()
[all …]
DASTImporterTest.cpp43 auto Pattern = functionDecl(hasName("f")); in TEST_P()
53 auto Pattern = functionDecl(hasName("f")); in TEST_P()
67 auto Pattern = functionDecl(hasName("f")); in TEST_P()
126 auto Pattern = functionDecl(hasName("shouldNotBeImported")); in TEST_P()
143 auto Pattern = functionDecl(hasName("shouldNotBeImported")); in TEST_P()
154 auto Pattern = functionDecl(hasName("f")); in ImportPath()
253 functionDecl(hasDescendant( in TEST_P()
257 functionDecl(hasDescendant( in TEST_P()
261 functionDecl(hasDescendant( in TEST_P()
272 functionDecl(hasDescendant(chooseExpr()))); in TEST_P()
[all …]
DASTTraverserTest.cpp134 auto Result = ast_matchers::match(functionDecl(hasName(Name)).bind("fn"), in getFunctionNode()
353 ast_matchers::match(functionDecl(hasName("stringConstruct")).bind("fn"), in TEST()
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()
1277 auto BN = ast_matchers::match(functionDecl(hasName("forLoop")).bind("func"), in TEST()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DTransformerTest.cpp172 callExpr(callee(functionDecl(hasName("strlen"))), in ruleStrlenSize()
219 makeRule(callExpr(callee(functionDecl(hasName("f")))), in TEST_F()
237 callExpr(callee(functionDecl(hasName("f")))), in TEST_F()
255 RewriteRule Rule = makeRule(callExpr(callee(functionDecl(hasName("f")))), in TEST_F()
273 RewriteRule Rule = makeRule(callExpr(callee(functionDecl(hasName("f")))), in TEST_F()
292 RewriteRule Rule = makeRule(functionDecl(hasName("bad")).bind(Fun), in TEST_F()
324 testRule(makeRule(declRefExpr(to(functionDecl(hasName("bad")))).bind(Ref), in TEST_F()
342 Transformer T(makeRule(declRefExpr(to(functionDecl())).bind(Ref), in TEST_F()
480 testRule(makeRule(functionDecl(hasDescendant(returnStmt().bind("return"))) in TEST_F()
494 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
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()
DUpgradeDurationConversionsCheck.cpp38 callee(functionDecl( in registerMatchers()
62 callExpr(callee(functionDecl( in registerMatchers()
76 callExpr(callee(functionDecl( in registerMatchers()
109 callee(functionDecl( in registerMatchers()
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()
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()
/external/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp29 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
32 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
37 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
43 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
634 DeclarationMatcher AnyOpStar = functionDecl(hasOverloadedOperatorName("*")); in TEST()
802 DeclarationMatcher Function1Arg = functionDecl(parameterCountIs(1)); in TEST()
839 EXPECT_TRUE(matches("extern \"C\" void f() {}", functionDecl(isExternC()))); in TEST()
841 functionDecl(isExternC()))); in TEST()
842 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isExternC()))); in TEST()
847 functionDecl(hasName("~A"), isDefaulted()))); in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
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()
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()
DPosixReturnCheck.cpp35 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
44 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
53 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
DMisplacedOperatorInStrlenInAllocCheck.cpp22 const auto StrLenFunc = functionDecl(hasAnyName( in registerMatchers()
43 const auto Alloc0Func = functionDecl( in registerMatchers()
45 const auto Alloc1Func = functionDecl( in registerMatchers()
DNoEscapeCheck.cpp20 Finder->addMatcher(callExpr(callee(functionDecl(hasName("::dispatch_async"))), in registerMatchers()
24 Finder->addMatcher(callExpr(callee(functionDecl(hasName("::dispatch_after"))), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DStaticObjectExceptionCheck.cpp29 hasAncestor(functionDecl()))), in registerMatchers()
33 functionDecl(unless(isNoThrow())).bind("func")))), in registerMatchers()
35 functionDecl(unless(isNoThrow())).bind("func")))))) in registerMatchers()
DCommandProcessorCheck.cpp22 callee(functionDecl(hasAnyName("::system", "::popen", "::_popen")) in registerMatchers()
27 unless(callExpr(callee(functionDecl(hasName("::system"))), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DNoMallocCheck.cpp41 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyListedName(AllocList)))) in registerMatchers()
47 callExpr(callee(functionDecl(hasAnyListedName(ReallocList)))) in registerMatchers()
53 callExpr(callee(functionDecl(hasAnyListedName(DeallocList)))) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/android/
DCloexecOpenCheck.cpp22 functionDecl(isExternC(), returns(isInteger()), in registerMatchers()
27 functionDecl(isExternC(), returns(isInteger()), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/linuxkernel/
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