Home
last modified time | relevance | path

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

/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()
DStmtPrinterTest.cpp118 functionDecl(hasName(ContainingFunction), in PrintedStmtCXX98Matches()
144 functionDecl(hasName(ContainingFunction), in PrintedStmtMSMatches()
DASTTypeTraitsTest.cpp155 EXPECT_TRUE(Verifier.match("void f() {}", functionDecl())); in TEST()
167 EXPECT_TRUE(Verifier.match("void f() {}", functionDecl())); in TEST()
DASTContextParentMapTest.cpp41 typeLoc(hasParent(typeLoc(hasParent(functionDecl())))))); in TEST()
DDeclPrinterTest.cpp463 functionDecl(hasName("A"), isExplicitTemplateSpecialization()).bind("id"), in TEST()
/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 …]
DASTMatchersTraversalTest.cpp82 functionDecl(forEachDescendant( in TEST()
454 functionDecl( in TEST()
511 functionDecl(returns(asString("int"))))); in TEST()
513 functionDecl(returns(asString("float"))))); in TEST()
515 functionDecl(returns(hasDeclaration( in TEST()
1016 EXPECT_TRUE(matches("void f() {}", functionDecl(hasBody(compoundStmt())))); in TEST()
1017 EXPECT_TRUE(notMatches("void f();", functionDecl(hasBody(compoundStmt())))); in TEST()
1019 functionDecl(hasBody(compoundStmt())))); in TEST()
1260 hasTargetDecl(functionDecl()))))); in TEST()
1263 hasTargetDecl(functionDecl()))))); in TEST()
[all …]
DASTMatchersNodeTest.cpp440 StatementMatcher CallFunctionF = callExpr(callee(functionDecl(hasName("f")))); in TEST()
465 EXPECT_TRUE(matches("void f(...);", functionDecl(isVariadic()))); in TEST()
466 EXPECT_TRUE(notMatches("void f(int);", functionDecl(isVariadic()))); in TEST()
468 functionDecl(isVariadic()))); in TEST()
469 EXPECT_TRUE(notMatches("void f();", functionDecl(isVariadic()))); in TEST()
470 EXPECT_TRUE(notMatchesC("void f();", functionDecl(isVariadic()))); in TEST()
471 EXPECT_TRUE(matches("void f(...);", functionDecl(parameterCountIs(0)))); in TEST()
472 EXPECT_TRUE(matchesC("void f();", functionDecl(parameterCountIs(0)))); in TEST()
473 EXPECT_TRUE(matches("void f(int, ...);", functionDecl(parameterCountIs(1)))); in TEST()
494 functionDecl(hasName("g")))))))); in TEST()
[all …]
DASTMatchersInternalTest.cpp185 functionDecl(isInline(), hasName("f")))); in TEST()
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp135 VariantValue(VariantMatcher::SingleMatcher(functionDecl())) in TEST()
153 "int x;", VariantValue(VariantMatcher::SingleMatcher(functionDecl())) in TEST()
DRegistryTest.cpp152 Value = functionDecl(constructMatcher("parameterCountIs", 2) in TEST_F()
180 functionDecl(constructMatcher( in TEST_F()
/external/v8/tools/clang/rewrite_scoped_refptr/
DRewriteScopedRefptr.cpp301 returnStmt(hasAncestor(id("fn", functionDecl(returns(pointerType())))))); in main()
329 functionDecl(anyOf(hasName("CheckEQImpl"), hasName("CheckNEImpl"))); in main()
330 auto is_gtest_helper = functionDecl( in main()
/external/clang/unittests/Analysis/
DCFGTest.cpp48 Finder.addMatcher(ast_matchers::functionDecl().bind("func"), &Callback); in TEST()
/external/v8/tools/clang/pass_to_move/
DPassToMove.cpp92 callee(functionDecl(hasName("Pass"), returns(rValueReferenceType()))), in main()
/external/v8/tools/clang/rewrite_to_chrome_style/
DRewriteToChromeStyle.cpp615 auto conflict_matcher = functionDecl(anyOf( in GetNameForDecl()
618 functionDecl(returns(type_containing_same_name_as_function), in GetNameForDecl()
1361 unless(hasAncestor(functionDecl(isDefaulted()))))); in main()
1397 functionDecl( in main()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h955 const internal::VariadicDynCastAllOfMatcher<Decl, FunctionDecl> functionDecl; variable
3222 callExpr(callee(functionDecl( in AST_POLYMORPHIC_MATCHER_P2()
4297 functionDecl(isTemplateInstantiation()))); in AST_MATCHER_FUNCTION()
4318 functionDecl(isTemplateInstantiation()))))); in AST_MATCHER_FUNCTION()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp191 REGISTER_MATCHER(functionDecl); in RegistryMaps()