Lines Matching refs:functionDecl
43 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()
259 functionDecl(hasDescendant( in TEST_P()
263 functionDecl(hasDescendant( in TEST_P()
271 functionDecl(hasDescendant( in TEST_P()
275 functionDecl(hasDescendant( in TEST_P()
279 functionDecl(hasDescendant( in TEST_P()
290 functionDecl(hasDescendant(chooseExpr()))); in TEST_P()
304 const auto Pattern = functionDecl(hasDescendant(shuffleVectorExpr( in TEST_P()
316 functionDecl(hasDescendant(gnuNullExpr(hasType(isInteger()))))); in TEST_P()
325 functionDecl(hasDescendant(genericSelectionExpr()))); in TEST_P()
333 functionDecl(hasDescendant(cxxNullPtrLiteralExpr()))); in TEST_P()
341 functionDecl(hasDescendant( in TEST_P()
345 functionDecl(hasDescendant( in TEST_P()
352 Verifier, functionDecl(hasDescendant(fixedPointLiteral()))); in TEST_P()
354 Verifier, functionDecl(hasDescendant(fixedPointLiteral()))); in TEST_P()
362 functionDecl(hasDescendant(imaginaryLiteral()))); in TEST_P()
371 functionDecl(hasDescendant(compoundLiteralExpr( in TEST_P()
393 functionDecl(hasDescendant(atomicExpr( in TEST_P()
404 functionDecl(hasDescendant(labelStmt( in TEST_P()
437 functionDecl(hasDescendant( in TEST_P()
447 functionDecl(hasDescendant(varDecl( in TEST_P()
460 functionDecl(hasDescendant(conditionalOperator( in TEST_P()
473 functionDecl(hasDescendant(binaryConditionalOperator( in TEST_P()
493 functionDecl(hasDescendant(initListExpr( in TEST_P()
510 functionDecl(hasDescendant(predefinedExpr( in TEST_P()
523 functionDecl(hasDescendant(initListExpr( in TEST_P()
556 functionDecl(hasDescendant( in TEST_P()
567 functionDecl(hasDescendant(exprWithCleanups(has(cxxConstructExpr( in TEST_P()
577 functionDecl(hasDescendant(typedefDecl(has(atomicType()))))); in TEST_P()
585 functionDecl(hasDescendant( in TEST_P()
626 functionDecl(hasDescendant(implicitCastExpr(has(declRefExpr()))), in TEST_P()
641 functionDecl( in TEST_P()
656 traverse(TK_AsIs, functionDecl(hasDescendant(returnStmt(has( in TEST_P()
760 functionDecl(hasDescendant(typeTraitExpr(hasType(asString("int")))))); in TEST_P()
776 functionDecl( in TEST_P()
792 functionDecl(hasDescendant( in TEST_P()
804 functionDecl(hasBody(compoundStmt( in TEST_P()
835 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
847 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
852 To, functionDecl(hasName("declToImport"), in TEST_P()
864 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
882 functionDecl(hasDescendant(callExpr(has(cxxPseudoDestructorExpr()))))); in TEST_P()
890 functionDecl(hasDescendant(usingDecl(hasName("bar"))))); in TEST_P()
900 functionDecl( in TEST_P()
910 functionDecl(hasDescendant(usingEnumDecl(hasName("bar"))))); in TEST_P()
997 unless(has(functionDecl(hasName("declToImport")))))))); in TEST_P()
1088 FromTU, functionDecl(hasName("f"))); in TEST_P()
1321 auto Matcher = functionDecl(hasName("declToImport"), in TEST_P()
1603 auto Matcher = functionDecl(); in TEST_P()
1616 Decl *From = LastDeclMatcher<Decl>{}.match(FromTU, functionDecl()); in TEST_P()
1666 FromTU, functionDecl(hasName("f"))); in TEST_P()
1769 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1796 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1952 FromTU, functionDecl(hasName("f"))); in TEST_P()
1970 FromTU, functionDecl(hasName("f"))); in TEST_P()
2001 FromTU, functionDecl(hasName("f"))); in TEST_P()
2030 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2048 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2112 }).match(ToTU, functionDecl())); in TEST_P()
2115 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
2122 }).match(ToTU, functionDecl())); in TEST_P()
2260 auto FooDef = functionDecl(hasName("foo")); in TEST_P()
2333 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2352 FromTU, functionDecl(hasName("g0"))); in TEST_P()
2361 FromTU, functionDecl(hasName("g1"))); in TEST_P()
2366 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))), in TEST_P()
2379 FromTU, functionDecl(hasName("foo"))); in TEST_P()
2405 FromTU, functionDecl(hasName("f"))); in TEST_P()
2409 ToD, functionDecl(hasName("f"), hasDescendant(declRefExpr())))); in TEST_P()
2431 FromTU, functionDecl(hasName("g"))); in TEST_P()
2437 functionDecl(hasName("f"), hasDescendant(declRefExpr())))))); in TEST_P()
2494 FromTU, functionDecl(hasName("foo"))); in TEST_P()
2534 FromTU, functionDecl(hasOverloadedOperatorName("<"))); in TEST_P()
2542 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2560 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2577 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2595 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2612 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2641 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2659 ToTU, functionDecl(unless(hasParent(friendDecl())))); in TEST_P()
2669 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2693 auto FunctionPattern = functionDecl(hasName("f")); in TEST_P()
2727 auto FunctionPattern = functionDecl(hasName("f")); in TEST_P()
2777 auto FunctionPattern = functionDecl(hasName("f")); in TEST_P()
2820 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2868 FromTU, functionDecl(hasName("f"))); in TEST_P()
2926 ImportAction ImportFoo{"foo.c", "main.c", functionDecl(hasName("foo"))}, in TEST_P()
2927 ImportMoo{"moo.c", "main.c", functionDecl(hasName("moo"))}; in TEST_P()
2963 functionTemplateDecl(has(functionDecl(has(compoundStmt( in TEST_P()
2974 functionTemplateDecl(has(functionDecl(has(compoundStmt( in TEST_P()
3000 functionTemplateDecl(has(functionDecl(has( in TEST_P()
3265 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3273 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3285 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3294 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3342 FromTU, functionDecl(hasName("f"))); in TEST_P()
3440 auto FunPattern = functionDecl(hasName("g"), in TEST_P()
3797 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
4251 ToTU, functionDecl(hasName("foo"))); in TEST_P()
4255 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4343 unless(has(functionDecl(hasName("f"), isTemplateInstantiation())))); in TEST_P()
4347 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4366 auto Instantiation = functionDecl(hasName("f"), isTemplateInstantiation()); in TEST_P()
4390 functionDecl(hasName("f"), isExplicitTemplateSpecialization()); in TEST_P()
4412 auto Spec = functionDecl(hasName("f"), isExplicitTemplateSpecialization(), in TEST_P()
4456 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4461 DeclCounter<FunctionDecl>().match(FromTU, functionDecl(hasName("f"))), in TEST_P()
4462 DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f")))); in TEST_P()
4491 FromTU, functionDecl(hasName("f"))); in TEST_P()
4547 functionDecl(hasName("f"), isExplicitTemplateSpecialization())); in TEST_P()
4877 ToTU, functionDecl(hasName("foo"))); in TEST_P()
4982 auto *F0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl()); in TEST_P()
4983 auto *F2 = LastDeclMatcher<FunctionDecl>().match(ToTU, functionDecl()); in TEST_P()
5003 ToTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
5005 ToTU, functionDecl(hasOverloadedOperatorName("-"))); in TEST_P()
5027 ToTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
5036 FromTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
5194 FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("F"))); in TEST_P()
5484 FromTU, functionDecl(hasName("foo"))); in TEST_P()
5492 DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("foo"))), in TEST_P()
5511 FromTU, functionDecl(hasName("f"))); in TEST_P()
5513 LastDeclMatcher<FunctionDecl>().match(FromTU, functionDecl(hasName("f"))); in TEST_P()
5520 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))), in TEST_P()
5524 FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))); in TEST_P()
5685 FromTU, functionDecl(hasName("f"))); in TEST_P()
5695 FromTU, functionDecl(hasName("ok"))); in TEST_P()
5811 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("A")))); in TEST_P()
5813 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("B")))); in TEST_P()
5815 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("C")))); in TEST_P()
5873 FromTU, functionDecl(hasName("f"))); in TEST_P()
5979 FromTU, functionDecl(hasName("f"))); in TEST_P()
6239 FromTU, functionDecl(hasName("f"))); in TEST_P()
6263 FromTU, functionDecl(hasName("f"))); in TEST_P()
6334 FromTU, functionDecl(hasName("foo"))); in TEST_P()
6352 FromTU, functionDecl(hasName("foo"))); in TEST_P()
6370 FromTU, functionDecl(hasName("foo"))); in TEST_P()
6389 FromTU, functionDecl(hasName("foo"))); in TEST_P()
6441 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
6458 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
6477 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
6494 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
6514 FromTU, functionDecl(hasName("f"))); in TEST_P()
6533 FromTU, functionDecl(hasName("f"))); in TEST_P()
6550 FromTU, functionDecl(hasName("f"))); in TEST_P()
6569 FromTU, functionDecl(hasName("f"))); in TEST_P()
6795 FromTU, functionDecl(hasName("foo"))); in TEST_P()
7132 FromTU, functionDecl(hasName("f"))); in TEST_P()
7532 functionDecl(hasName("f"), parameterCountIs(0))))); in TEST_P()
7535 functionDecl(hasName("f"), parameterCountIs(1))))); in TEST_P()
7812 FromTU, functionDecl(hasName("f"), isDefinition())); in TEST_P()
7837 FromTU, functionDecl(hasName("other"))); in TEST_P()
7844 ToTU, functionDecl(hasName("bar"))); in TEST_P()