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

/external/clang/unittests/AST/
H A DASTImporterTest.cpp108 functionDecl(
117 functionDecl(
126 functionDecl(
139 functionDecl(
151 functionDecl(
163 functionDecl(
172 functionDecl(
189 functionDecl(
227 functionDecl(hasBody(compoundStmt(has(atomicExpr(
240 functionDecl(
[all...]
H A DASTContextParentMapTest.cpp41 typeLoc(hasParent(typeLoc(hasParent(functionDecl()))))));
H A DSourceLocationTest.cpp154 EXPECT_TRUE(Verifier.match("class C { C(); };", functionDecl()));
160 EXPECT_TRUE(Verifier.match("class C { C() = default; };", functionDecl()));
166 EXPECT_TRUE(Verifier.match("class C { C() = delete; };", functionDecl()));
550 functionDecl()));
558 functionDecl(),
569 functionDecl()));
579 functionDecl(),
H A DStmtPrinterTest.cpp118 functionDecl(hasName(ContainingFunction),
144 functionDecl(hasName(ContainingFunction),
H A DASTTypeTraitsTest.cpp155 EXPECT_TRUE(Verifier.match("void f() {}", functionDecl()));
167 EXPECT_TRUE(Verifier.match("void f() {}", functionDecl()));
H A DDeclPrinterTest.cpp463 functionDecl(hasName("A"), isExplicitTemplateSpecialization()).bind("id"),
/external/clang/unittests/Analysis/
H A DCFGTest.cpp48 Finder.addMatcher(ast_matchers::functionDecl().bind("func"), &Callback);
/external/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp29 callExpr(allOf(callee(functionDecl(hasName("f"))),
32 callExpr(allOf(callee(functionDecl(hasName("f"))),
37 callExpr(allOf(callee(functionDecl(hasName("f"))),
43 callExpr(allOf(callee(functionDecl(hasName("f"))),
634 DeclarationMatcher AnyOpStar = functionDecl(hasOverloadedOperatorName("*"));
802 DeclarationMatcher Function1Arg = functionDecl(parameterCountIs(1));
839 EXPECT_TRUE(matches("extern \"C\" void f() {}", functionDecl(isExternC())));
841 functionDecl(isExternC())));
842 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isExternC())));
847 functionDecl(hasNam
[all...]
H A DASTMatchersTraversalTest.cpp82 functionDecl(forEachDescendant(
454 functionDecl(
511 functionDecl(returns(asString("int")))));
513 functionDecl(returns(asString("float")))));
515 functionDecl(returns(hasDeclaration(
1016 EXPECT_TRUE(matches("void f() {}", functionDecl(hasBody(compoundStmt()))));
1017 EXPECT_TRUE(notMatches("void f();", functionDecl(hasBody(compoundStmt()))));
1019 functionDecl(hasBody(compoundStmt()))));
1260 hasTargetDecl(functionDecl())))));
1263 hasTargetDecl(functionDecl())))));
[all...]
H A DASTMatchersNodeTest.cpp440 StatementMatcher CallFunctionF = callExpr(callee(functionDecl(hasName("f"))));
465 EXPECT_TRUE(matches("void f(...);", functionDecl(isVariadic())));
466 EXPECT_TRUE(notMatches("void f(int);", functionDecl(isVariadic())));
468 functionDecl(isVariadic())));
469 EXPECT_TRUE(notMatches("void f();", functionDecl(isVariadic())));
470 EXPECT_TRUE(notMatchesC("void f();", functionDecl(isVariadic())));
471 EXPECT_TRUE(matches("void f(...);", functionDecl(parameterCountIs(0))));
472 EXPECT_TRUE(matchesC("void f();", functionDecl(parameterCountIs(0))));
473 EXPECT_TRUE(matches("void f(int, ...);", functionDecl(parameterCountIs(1))));
494 functionDecl(hasNam
[all...]
H A DASTMatchersInternalTest.cpp185 functionDecl(isInline(), hasName("f"))));
/external/clang/unittests/ASTMatchers/Dynamic/
H A DVariantValueTest.cpp135 VariantValue(VariantMatcher::SingleMatcher(functionDecl()))
153 "int x;", VariantValue(VariantMatcher::SingleMatcher(functionDecl()))
H A DRegistryTest.cpp152 Value = functionDecl(constructMatcher("parameterCountIs", 2)
180 functionDecl(constructMatcher(
237 constructMatcher("functionDecl", IsDefinition).getTypedMatcher<Decl>();
350 constructMatcher("functionDecl",
/external/v8/tools/clang/pass_to_move/
H A DPassToMove.cpp92 callee(functionDecl(hasName("Pass"), returns(rValueReferenceType()))),
/external/v8/tools/clang/rewrite_scoped_refptr/
H A DRewriteScopedRefptr.cpp301 returnStmt(hasAncestor(id("fn", functionDecl(returns(pointerType()))))));
329 functionDecl(anyOf(hasName("CheckEQImpl"), hasName("CheckNEImpl")));
330 auto is_gtest_helper = functionDecl(
/external/v8/tools/clang/rewrite_to_chrome_style/
H A DRewriteToChromeStyle.cpp615 auto conflict_matcher = functionDecl(anyOf(
618 functionDecl(returns(type_containing_same_name_as_function),
1361 unless(hasAncestor(functionDecl(isDefaulted())))));
1397 functionDecl(
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h955 const internal::VariadicDynCastAllOfMatcher<Decl, FunctionDecl> functionDecl; member in namespace:clang::ast_matchers
3222 callExpr(callee(functionDecl(
3264 /// functionDecl(parameterCountIs(2))
3298 /// functionDecl(isExternC())
3311 /// functionDecl(isDeleted())
3324 /// functionDecl(isDefaulted())
3342 /// functionDecl(hasDynamicExceptionSpec()) and
3363 /// functionDecl(isNoThrow()) and functionProtoType(isNoThrow())
3392 /// functionDecl(isConstexpr())
4064 /// functionDecl(hasAnyParamete
[all...]
/external/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp191 REGISTER_MATCHER(functionDecl);

Completed in 2622 milliseconds