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()
253 functionDecl(hasDescendant( in TEST_P()
257 functionDecl(hasDescendant( in TEST_P()
261 functionDecl(hasDescendant( in TEST_P()
272 functionDecl(hasDescendant(chooseExpr()))); in TEST_P()
279 functionDecl(hasDescendant(gnuNullExpr(hasType(isInteger()))))); in TEST_P()
287 functionDecl(hasDescendant(cxxNullPtrLiteralExpr()))); in TEST_P()
295 functionDecl(hasDescendant( in TEST_P()
299 functionDecl(hasDescendant( in TEST_P()
306 Verifier, functionDecl(hasDescendant(fixedPointLiteral()))); in TEST_P()
308 Verifier, functionDecl(hasDescendant(fixedPointLiteral()))); in TEST_P()
316 functionDecl(hasDescendant(imaginaryLiteral()))); in TEST_P()
325 functionDecl(hasDescendant(compoundLiteralExpr( in TEST_P()
347 functionDecl(hasDescendant(atomicExpr( in TEST_P()
358 functionDecl(hasDescendant(labelStmt( in TEST_P()
391 functionDecl(hasDescendant( in TEST_P()
401 functionDecl(hasDescendant(varDecl( in TEST_P()
414 functionDecl(hasDescendant(conditionalOperator( in TEST_P()
427 functionDecl(hasDescendant(binaryConditionalOperator( in TEST_P()
447 functionDecl(hasDescendant(initListExpr( in TEST_P()
464 functionDecl(hasDescendant(predefinedExpr( in TEST_P()
477 functionDecl(hasDescendant(initListExpr( in TEST_P()
495 functionDecl(hasDescendant( in TEST_P()
506 functionDecl(hasDescendant(exprWithCleanups(has(cxxConstructExpr( in TEST_P()
516 functionDecl(hasDescendant(typedefDecl(has(atomicType()))))); in TEST_P()
556 functionDecl(hasDescendant(implicitCastExpr(has(declRefExpr()))), in TEST_P()
571 functionDecl( in TEST_P()
587 functionDecl(hasDescendant(returnStmt( in TEST_P()
650 functionDecl(hasDescendant(typeTraitExpr(hasType(asString("int")))))); in TEST_P()
666 functionDecl( in TEST_P()
682 functionDecl(hasDescendant( in TEST_P()
694 functionDecl(hasBody(compoundStmt( in TEST_P()
719 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
731 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
736 To, functionDecl(hasName("declToImport"), in TEST_P()
748 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
766 functionDecl(hasDescendant(callExpr(has(cxxPseudoDestructorExpr()))))); in TEST_P()
774 functionDecl(hasDescendant(usingDecl()))); in TEST_P()
841 unless(has(functionDecl(hasName("declToImport")))))))); in TEST_P()
907 FromTU, functionDecl(hasName("f"))); in TEST_P()
1110 auto Matcher = functionDecl(hasName("declToImport"), in TEST_P()
1392 auto Matcher = functionDecl(); in TEST_P()
1405 Decl *From = LastDeclMatcher<Decl>{}.match(FromTU, functionDecl()); in TEST_P()
1455 FromTU, functionDecl(hasName("f"))); in TEST_P()
1558 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1585 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1741 FromTU, functionDecl(hasName("f"))); in TEST_P()
1759 FromTU, functionDecl(hasName("f"))); in TEST_P()
1790 FromTU, functionDecl(hasName("f"))); in TEST_P()
1819 auto Pattern = functionDecl(hasName("f")); in TEST_P()
1837 auto Pattern = functionDecl(hasName("f")); in TEST_P()
1901 }).match(ToTU, functionDecl())); in TEST_P()
1904 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1911 }).match(ToTU, functionDecl())); in TEST_P()
2049 auto FooDef = functionDecl(hasName("foo")); in TEST_P()
2122 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2141 FromTU, functionDecl(hasName("g0"))); in TEST_P()
2150 FromTU, functionDecl(hasName("g1"))); in TEST_P()
2155 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))), in TEST_P()
2168 FromTU, functionDecl(hasName("foo"))); in TEST_P()
2194 FromTU, functionDecl(hasName("f"))); in TEST_P()
2198 ToD, functionDecl(hasName("f"), hasDescendant(declRefExpr())))); in TEST_P()
2220 FromTU, functionDecl(hasName("g"))); in TEST_P()
2226 functionDecl(hasName("f"), hasDescendant(declRefExpr())))))); in TEST_P()
2283 FromTU, functionDecl(hasName("foo"))); in TEST_P()
2323 FromTU, functionDecl(hasOverloadedOperatorName("<"))); in TEST_P()
2331 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2349 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2366 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2384 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2401 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2430 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2448 ToTU, functionDecl(unless(hasParent(friendDecl())))); in TEST_P()
2458 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2482 auto FunctionPattern = functionDecl(hasName("f")); in TEST_P()
2516 auto FunctionPattern = functionDecl(hasName("f")); in TEST_P()
2566 auto FunctionPattern = functionDecl(hasName("f")); in TEST_P()
2609 auto Pattern = functionDecl(hasName("f")); in TEST_P()
2657 FromTU, functionDecl(hasName("f"))); in TEST_P()
2715 ImportAction ImportFoo{"foo.c", "main.c", functionDecl(hasName("foo"))}, in TEST_P()
2716 ImportMoo{"moo.c", "main.c", functionDecl(hasName("moo"))}; in TEST_P()
2752 functionTemplateDecl(has(functionDecl(has(compoundStmt( in TEST_P()
2763 functionTemplateDecl(has(functionDecl(has(compoundStmt( in TEST_P()
2789 functionTemplateDecl(has(functionDecl(has( in TEST_P()
2989 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
2997 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3009 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3018 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3066 FromTU, functionDecl(hasName("f"))); in TEST_P()
3164 auto FunPattern = functionDecl(hasName("g"), in TEST_P()
3903 ToTU, functionDecl(hasName("foo"))); in TEST_P()
3907 FromTU, functionDecl(hasName("foo"))); in TEST_P()
3991 unless(has(functionDecl(hasName("f"), isTemplateInstantiation())))); in TEST_P()
3995 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4014 auto Instantiation = functionDecl(hasName("f"), isTemplateInstantiation()); in TEST_P()
4038 functionDecl(hasName("f"), isExplicitTemplateSpecialization()); in TEST_P()
4060 auto Spec = functionDecl(hasName("f"), isExplicitTemplateSpecialization(), in TEST_P()
4104 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4109 DeclCounter<FunctionDecl>().match(FromTU, functionDecl(hasName("f"))), in TEST_P()
4110 DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f")))); in TEST_P()
4139 FromTU, functionDecl(hasName("f"))); in TEST_P()
4195 functionDecl(hasName("f"), isExplicitTemplateSpecialization())); in TEST_P()
4235 ToTU, functionDecl(hasName("foo"))); in TEST_P()
4340 auto *F0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl()); in TEST_P()
4341 auto *F2 = LastDeclMatcher<FunctionDecl>().match(ToTU, functionDecl()); in TEST_P()
4361 ToTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
4363 ToTU, functionDecl(hasOverloadedOperatorName("-"))); in TEST_P()
4385 ToTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
4394 FromTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
4552 FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("F"))); in TEST_P()
4842 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4850 DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("foo"))), in TEST_P()
4869 FromTU, functionDecl(hasName("f"))); in TEST_P()
4871 LastDeclMatcher<FunctionDecl>().match(FromTU, functionDecl(hasName("f"))); in TEST_P()
4878 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))), in TEST_P()
4882 FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))); in TEST_P()
5042 FromTU, functionDecl(hasName("f"))); in TEST_P()
5052 FromTU, functionDecl(hasName("ok"))); in TEST_P()
5134 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("A")))); in TEST_P()
5136 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("B")))); in TEST_P()
5138 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("C")))); in TEST_P()
5226 FromTU, functionDecl(hasName("f"))); in TEST_P()
5486 FromTU, functionDecl(hasName("f"))); in TEST_P()
5510 FromTU, functionDecl(hasName("f"))); in TEST_P()
5595 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
5612 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
5631 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
5648 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
5668 FromTU, functionDecl(hasName("f"))); in TEST_P()
5687 FromTU, functionDecl(hasName("f"))); in TEST_P()
5704 FromTU, functionDecl(hasName("f"))); in TEST_P()
5723 FromTU, functionDecl(hasName("f"))); in TEST_P()
5871 FromTU, functionDecl(hasName("foo"))); in TEST_P()