Home
last modified time | relevance | path

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

/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp434 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
437 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
442 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
448 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
818 functionDecl(forEachDescendant( in TEST()
1267 DeclarationMatcher AnyOpStar = functionDecl(hasOverloadedOperatorName("*")); in TEST()
1535 StatementMatcher CallFunctionF = callExpr(callee(functionDecl(hasName("f")))); in TEST()
1560 EXPECT_TRUE(matches("void f(...);", functionDecl(isVariadic()))); in TEST()
1561 EXPECT_TRUE(notMatches("void f(int);", functionDecl(isVariadic()))); in TEST()
1563 functionDecl(isVariadic()))); in TEST()
[all …]
/external/clang/unittests/AST/
DStmtPrinterTest.cpp118 functionDecl(hasName(ContainingFunction), in PrintedStmtCXX98Matches()
144 functionDecl(hasName(ContainingFunction), in PrintedStmtMSMatches()
DASTTypeTraitsTest.cpp144 EXPECT_TRUE(Verifier.match("void f() {}", functionDecl())); in TEST()
156 EXPECT_TRUE(Verifier.match("void f() {}", functionDecl())); in TEST()
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()
DASTContextParentMapTest.cpp45 typeLoc(hasParent(typeLoc(hasParent(functionDecl())))))); in TEST()
DDeclPrinterTest.cpp463 functionDecl(hasName("A"), isExplicitTemplateSpecialization()).bind("id"), in TEST()
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp138 VariantValue(VariantMatcher::SingleMatcher(functionDecl())) in TEST()
156 "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/clang/include/clang/ASTMatchers/
DASTMatchers.h846 const internal::VariadicDynCastAllOfMatcher<Decl, FunctionDecl> functionDecl; variable
3715 functionDecl(isTemplateInstantiation()))); in AST_MATCHER_FUNCTION()
3736 functionDecl(isTemplateInstantiation()))))); in AST_MATCHER_FUNCTION()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp182 REGISTER_MATCHER(functionDecl); in RegistryMaps()