Lines Matching refs:functionDecl
81 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()
1618 EXPECT_TRUE(matches("void f() {}", functionDecl(hasBody(compoundStmt())))); in TEST()
1619 EXPECT_TRUE(notMatches("void f();", functionDecl(hasBody(compoundStmt())))); in TEST()
1622 functionDecl(hasBody(compoundStmt())).bind("func"), in TEST()
1639 EXPECT_TRUE(matches("void f() {}", functionDecl(hasAnyBody(compoundStmt())))); in TEST()
1641 functionDecl(hasAnyBody(compoundStmt())))); in TEST()
1644 functionDecl(hasAnyBody(compoundStmt())).bind("func"), in TEST()
1914 matches(VarDeclCode, functionDecl(traverse(TK_AsIs, hasName("foo"))))); in TEST()
1918 functionDecl(traverse(TK_IgnoreUnlessSpelledInSource, hasName("foo"))))); in TEST()
1921 VarDeclCode, functionDecl(traverse(TK_AsIs, hasAnyName("foo", "bar"))))); in TEST()
1924 matches(VarDeclCode, functionDecl(traverse(TK_IgnoreUnlessSpelledInSource, in TEST()
1951 functionDecl(hasName("foo"), in TEST()
1956 callee(functionDecl(hasName("foo"))))))))); in TEST()
1959 functionDecl(hasName("foo"))))))))); in TEST()
2001 functionDecl( in TEST()
2013 functionDecl(hasName("stringConstruct"), in TEST()
2023 functionDecl(hasName("stringConstruct"), in TEST()
2030 functionDecl(hasName("stringConstruct"), in TEST()
2051 functionDecl( in TEST()
2067 functionDecl(hasName("conversionOperator"), in TEST()
2249 functionDecl(hasName("timesTwo"), in TEST()
2256 functionDecl(hasName("timesTwo"), in TEST()
2264 functionDecl(hasName("timesTwo"), in TEST()
2271 functionDecl(hasName("timesTwo"), in TEST()
2280 auto M = functionDecl(hasName("timesTwo"), in TEST()
2646 return callExpr(callee(functionDecl(hasName("hasDefaultArg"))), in TEST()
2767 functionDecl(anyOf(hasDescendant(Matcher), in TEST()
2769 functionDecl(hasDescendant(Matcher))))))); in TEST()
2860 returnStmt(forFunction(functionDecl(hasName("func1"))), in TEST()
2869 functionDecl(hasName("func1"))))))), in TEST()
2875 returnStmt(forFunction(functionDecl(hasName("func2"))), in TEST()
2885 forFunction(functionDecl(hasName("func2"))))))))), in TEST()
2891 returnStmt(forFunction(functionDecl(hasName("func3"))), in TEST()
2902 forFunction(functionDecl(hasName("func3"))))))))), in TEST()
2908 returnStmt(forFunction(functionDecl(hasName("func4"))), in TEST()
2915 returnStmt(forFunction(functionDecl(hasName("func5"))), in TEST()
2922 returnStmt(forFunction(functionDecl(hasName("func6"))), in TEST()
2929 returnStmt(forFunction(functionDecl(hasName("func7"))), in TEST()
2936 returnStmt(forFunction(functionDecl(hasName("func8"))), in TEST()
2944 returnStmt(forFunction(functionDecl(hasName("func9"))), in TEST()
2953 returnStmt(forFunction(functionDecl(hasName("func10"))), in TEST()
2962 functionDecl(hasName("func10"))))))), in TEST()
2969 returnStmt(forFunction(functionDecl(hasName("func11"))), in TEST()
2978 functionDecl(hasName("func11"))))))), in TEST()
2985 returnStmt(forFunction(functionDecl(hasName("func12"))), in TEST()
2994 functionDecl(hasName("func12"))))))), in TEST()
3001 lambdaExpr(forFunction(functionDecl(hasName("func13"))), in TEST()
3014 functionDecl(hasName("func13"))))))), in TEST()
3023 forFunction(functionDecl(hasName("func13"))))))), in TEST()
3029 lambdaExpr(forFunction(functionDecl(hasName("func14"))), in TEST()
3036 functionDecl(hasName("func14"), hasDescendant(floatLiteral()))), in TEST()
3201 hasTargetDecl(functionDecl()))))); in TEST()
3204 hasTargetDecl(functionDecl()))))); in TEST()
3273 functionDecl(hasExplicitSpecifier(constantExpr())), in TEST()
3525 functionDecl(decl().bind("x"), hasAnyParameter(hasName("y"))), in TEST()
3529 functionDecl(decl().bind("x"), in TEST()
3536 functionDecl(parameterCountIs(1))))), in TEST()
3549 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))), in TEST()
3636 integerLiteral(equals(42), hasAncestor(functionDecl(hasName("f")))))); in TEST()
3667 hasAncestor(functionDecl(hasParameter( in TEST()
3791 hasParent(compoundStmt(hasParent(functionDecl( in TEST()
3798 hasParent(compoundStmt(hasParent(functionDecl(hasParent( in TEST()
3805 allOf(hasParent(functionDecl(hasParent( in TEST()
3807 hasParent(functionDecl(hasParent(cxxRecordDecl( in TEST()
3945 functionDecl(hasName("f"), in TEST()
3988 functionDecl(hasName("f"), in TEST()
4139 matches(Fragment, unresolvedLookupExpr(hasAnyDeclaration(functionDecl( in TEST()
4142 matches(Fragment, unresolvedLookupExpr(hasAnyDeclaration(functionDecl( in TEST()
4145 notMatches(Fragment, unresolvedLookupExpr(hasAnyDeclaration(functionDecl( in TEST()
4148 functionDecl(hasName("bar")))))); in TEST()