Lines Matching refs:match
44 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
54 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
55 auto *D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
68 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
69 auto *D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
128 DeclCounterWithPredicate<CXXRecordDecl>().match(ToTU, Pattern); in TEST_P()
145 DeclCounterWithPredicate<CXXRecordDecl>().match(ToTU, Pattern); in TEST_P()
155 D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in ImportPath()
156 D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in ImportPath()
822 FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("d"))); in TEST_P()
834 auto *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
846 auto *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
851 EXPECT_TRUE(MatchVerifier<FunctionDecl>().match( in TEST_P()
863 auto *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
1047 auto From = FirstDeclMatcher<UsingPackDecl>().match(FromTU, usingPackDecl()); in TEST_P()
1066 auto From = FirstDeclMatcher<TemplateTypeParmDecl>().match( in TEST_P()
1075 auto From = FirstDeclMatcher<TemplateTypeParmDecl>().match( in TEST_P()
1087 auto From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
1110 auto From = FirstDeclMatcher<TemplateTemplateParmDecl>().match( in TEST_P()
1122 auto From = FirstDeclMatcher<TemplateTemplateParmDecl>().match( in TEST_P()
1132 auto ToExpectedDecl = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
1139 auto From = FirstDeclMatcher<NonTypeTemplateParmDecl>().match( in TEST_P()
1147 auto From = FirstDeclMatcher<NonTypeTemplateParmDecl>().match( in TEST_P()
1162 FirstDeclMatcher<ClassTemplateDecl>().match(FromTU, classTemplateDecl()); in TEST_P()
1175 auto From = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
1190 FirstDeclMatcher<ClassTemplateDecl>().match(FromTU, classTemplateDecl()); in TEST_P()
1198 FirstDeclMatcher<ClassTemplateDecl>().match(ToTU, classTemplateDecl()); in TEST_P()
1205 auto FromFT = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
1213 auto ToFT = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
1229 FirstDeclMatcher<NamespaceDecl>().match(FromTU, namespaceDecl()); in TEST_P()
1233 FirstDeclMatcher<ClassTemplateDecl>().match(FromTU, in TEST_P()
1237 FirstDeclMatcher<ClassTemplateDecl>().match(ToNs, in TEST_P()
1257 auto ToResults = match(chooseExpr().bind("choose"), To->getASTContext()); in TEST_P()
1258 auto FromResults = match(chooseExpr().bind("choose"), From->getASTContext()); in TEST_P()
1284 match(genericSelectionExpr().bind("expr"), To->getASTContext()); in TEST_P()
1286 match(genericSelectionExpr().bind("expr"), From->getASTContext()); in TEST_P()
1326 ASSERT_TRUE(Verifier.match(From, Matcher)); in TEST_P()
1327 EXPECT_TRUE(Verifier.match(To, Matcher)); in TEST_P()
1426 MatchVerifier<Decl>{}.match(From->getTranslationUnitDecl(), Pattern)); in TEST_P()
1428 MatchVerifier<Decl>{}.match(To->getTranslationUnitDecl(), Pattern)); in TEST_P()
1435 MatchVerifier<Decl>{}.match(From->getTranslationUnitDecl(), Pattern)); in TEST_P()
1437 MatchVerifier<Decl>{}.match(To->getTranslationUnitDecl(), Pattern)); in TEST_P()
1472 ASSERT_TRUE(MatchVerifier<Decl>{}.match(From, Pattern)); in TEST_P()
1473 EXPECT_TRUE(MatchVerifier<Decl>{}.match(To, Pattern)); in TEST_P()
1478 ASSERT_TRUE(MatchVerifier<Decl>{}.match(From, Pattern)); in TEST_P()
1479 EXPECT_TRUE(MatchVerifier<Decl>{}.match(To, Pattern)); in TEST_P()
1491 ASSERT_TRUE(Verifier.match(From, cxxRecordDecl(hasFieldOrder({"a", "b"})))); in TEST_P()
1492 EXPECT_TRUE(Verifier.match(To, cxxRecordDecl(hasFieldOrder({"a", "b"})))); in TEST_P()
1512 Verifier.match(From, cxxRecordDecl(hasFieldOrder({"a", "b", "c"})))); in TEST_P()
1514 Verifier.match(To, cxxRecordDecl(hasFieldOrder({"a", "b", "c"})))); in TEST_P()
1536 ASSERT_TRUE(Verifier.match( in TEST_P()
1538 EXPECT_TRUE(Verifier.match( in TEST_P()
1554 ASSERT_TRUE(Verifier.match(From, Matcher)); in TEST_P()
1555 EXPECT_TRUE(Verifier.match(To, Matcher)); in TEST_P()
1572 ASSERT_TRUE(Verifier.match(From, Matcher)); in TEST_P()
1573 EXPECT_TRUE(Verifier.match(To, Matcher)); in TEST_P()
1592 MatchVerifier<Decl>{}.match(From->getTranslationUnitDecl(), Pattern)); in TEST_P()
1594 MatchVerifier<Decl>{}.match(To->getTranslationUnitDecl(), Pattern)); in TEST_P()
1604 ASSERT_TRUE(Verifier.match(From, Matcher)); in TEST_P()
1605 EXPECT_TRUE(Verifier.match(To, Matcher)); in TEST_P()
1616 Decl *From = LastDeclMatcher<Decl>{}.match(FromTU, functionDecl()); in TEST_P()
1636 MatchVerifier<Decl>{}.match(From->getTranslationUnitDecl(), Pattern)); in TEST_P()
1638 MatchVerifier<Decl>{}.match(To->getTranslationUnitDecl(), Pattern)); in TEST_P()
1650 auto *FromD = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
1665 FunctionDecl *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
1668 auto *FromCTD = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
1692 .match(ToTU, classTemplateDecl())); in TEST_P()
1702 ClassTemplateDecl *FromD = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
1712 .match(ToTU, classTemplateDecl())); in TEST_P()
1726 ASSERT_EQ(2u, DeclCounter<CXXRecordDecl>().match( in TEST_P()
1736 auto *FromD = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
1741 EXPECT_EQ(2u, DeclCounter<CXXRecordDecl>().match( in TEST_P()
1769 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1772 auto ToLHS = LastDeclMatcher<DeclRefExpr>().match(ToD, declRefExpr()); in TEST_P()
1773 auto FromLHS = LastDeclMatcher<DeclRefExpr>().match(FromTU, declRefExpr()); in TEST_P()
1774 auto ToRHS = LastDeclMatcher<IntegerLiteral>().match(ToD, integerLiteral()); in TEST_P()
1776 LastDeclMatcher<IntegerLiteral>().match(FromTU, integerLiteral()); in TEST_P()
1796 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1825 .match(ToTU, classTemplateSpecializationDecl())); in TEST_P()
1836 auto *FromD = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
1846 .match(ToTU, classTemplateSpecializationDecl())); in TEST_P()
1858 FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("object0"))); in TEST_P()
1861 FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("object1"))); in TEST_P()
1886 FirstDeclMatcher<RecordDecl>().match(FromTU0, recordDecl(hasName("X"))); in TEST_P()
1888 FirstDeclMatcher<RecordDecl>().match(FromTU1, recordDecl(hasName("X"))); in TEST_P()
1896 DeclCounter<RecordDecl>().match(ToTU, recordDecl(hasName("X")))); in TEST_P()
1919 FirstDeclMatcher<RecordDecl>().match(FromTU0, recordDecl(hasName("X"))); in TEST_P()
1921 FirstDeclMatcher<RecordDecl>().match(FromTU1, recordDecl(hasName("X"))); in TEST_P()
1929 DeclCounter<RecordDecl>().match(ToTU, recordDecl(hasName("X")))); in TEST_P()
1937 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
1943 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
1951 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
1963 ExistingD = FirstDeclMatcher<VarDecl>().match(ToTU, Pattern); in TEST_P()
1969 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
1987 ExistingD = FirstDeclMatcher<VarDecl>().match(ToTU, Pattern); in TEST_P()
2000 auto *FromFunD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2002 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
2013 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
2032 FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); // Proto in TEST_P()
2037 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2038 auto *To0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2039 auto *To1 = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2050 LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); // Def in TEST_P()
2055 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2056 auto *To0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2057 auto *To1 = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2075 FirstDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern); in TEST_P()
2092 FirstDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern); in TEST_P()
2093 CXXMethodDecl *Def = LastDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern); 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()
2137 auto *DF = FirstDeclMatcher<CXXMethodDecl>().match(FromTU0, DFP); in TEST_P()
2141 auto *BF = FirstDeclMatcher<CXXMethodDecl>().match(FromTU1, BFP); in TEST_P()
2146 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFP), 1u); in TEST_P()
2147 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, DFP), 1u); in TEST_P()
2173 auto *FromD = FirstDeclMatcher<CXXMethodDecl>().match(FromTU, DFP); in TEST_P()
2178 auto *FromB = FirstDeclMatcher<CXXMethodDecl>().match(FromTU, BFP); in TEST_P()
2184 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFP), 1u); in TEST_P()
2185 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, DFP), 1u); in TEST_P()
2186 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFDefP), 1u); in TEST_P()
2187 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, DFDefP), 1u); in TEST_P()
2188 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, FDefAllP), 2u); in TEST_P()
2207 auto *D = FirstDeclMatcher<CXXMethodDecl>().match(FromTU0, DFP); in TEST_P()
2211 auto *B = FirstDeclMatcher<CXXMethodDecl>().match(FromTU1, BFP); in TEST_P()
2216 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFP), 1u); in TEST_P()
2217 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFDefP), 0u); in TEST_P()
2219 auto *ToB = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
2221 auto *ToBFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, BFP); in TEST_P()
2222 auto *ToBFOutOfClass = FirstDeclMatcher<CXXMethodDecl>().match( in TEST_P()
2264 auto *D = FirstDeclMatcher<CXXMethodDecl>().match(FromTU0, DFP); in TEST_P()
2270 auto *Foo = FirstDeclMatcher<FunctionDecl>().match(FromTU1, FooDef); in TEST_P()
2276 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFP), 1u); in TEST_P()
2277 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, DFP), 1u); in TEST_P()
2278 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFDefP), 0u); in TEST_P()
2279 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, DFDefP), 0u); in TEST_P()
2281 auto *ToB = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
2283 auto *ToD = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
2285 auto *ToBFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, BFP); in TEST_P()
2286 auto *ToBFOutOfClass = FirstDeclMatcher<CXXMethodDecl>().match( in TEST_P()
2288 auto *ToDFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, DFP); in TEST_P()
2289 auto *ToDFOutOfClass = LastDeclMatcher<CXXMethodDecl>().match( in TEST_P()
2316 auto *From0 = FirstDeclMatcher<VarDecl>().match(FromTu, Pattern); in TEST_P()
2317 auto *From1 = LastDeclMatcher<VarDecl>().match(FromTu, Pattern); in TEST_P()
2335 auto *FromF0 = FirstDeclMatcher<FunctionDecl>().match(FromTu, Pattern); in TEST_P()
2336 auto *FromF1 = LastDeclMatcher<FunctionDecl>().match(FromTu, Pattern); in TEST_P()
2351 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2360 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2366 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))), in TEST_P()
2378 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2404 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2408 EXPECT_TRUE(MatchVerifier<FunctionDecl>().match( in TEST_P()
2430 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2435 EXPECT_TRUE(MatchVerifier<TranslationUnitDecl>().match( in TEST_P()
2451 auto *FromD1 = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
2455 auto *FromD2 = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
2473 auto *FromD1 = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
2477 auto *FromD2 = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
2493 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2512 LastDeclMatcher<CXXConstructorDecl>().match(FromTU, cxxConstructorDecl()); in TEST_P()
2533 auto *FromD = LastDeclMatcher<FunctionDecl>().match( in TEST_P()
2547 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2551 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2553 auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2565 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2569 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2571 auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2582 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2586 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2588 auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2600 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2604 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2606 auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2623 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2627 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2630 .match(ToTU, friendDecl()) in TEST_P()
2652 auto *FromD = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2656 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2658 auto *OutOfClassFD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2675 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2681 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2686 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2698 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern); in TEST_P()
2703 auto *Class = FirstDeclMatcher<CXXRecordDecl>().match(FromTU, ClassPattern); in TEST_P()
2714 auto *Class = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern); in TEST_P()
2720 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, FunctionPattern), 1u); in TEST_P()
2721 auto *To0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern); in TEST_P()
2740 FirstDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern); in TEST_P()
2742 LastDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern); in TEST_P()
2750 FirstDeclMatcher<CXXRecordDecl>().match(FromTU, ClassPattern); in TEST_P()
2760 auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern); in TEST_P()
2767 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, FunctionPattern), 2u); in TEST_P()
2768 ToFriend = FirstDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern); in TEST_P()
2769 auto *ToNormal = LastDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern); in TEST_P()
2784 FirstDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern); in TEST_P()
2786 LastDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern); in TEST_P()
2794 FirstDeclMatcher<CXXRecordDecl>().match(FromTU, ClassPattern); in TEST_P()
2804 auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern); in TEST_P()
2810 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, FunctionPattern), 2u); in TEST_P()
2811 ToNormal = FirstDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern); in TEST_P()
2812 auto *ToFriend = LastDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern); in TEST_P()
2825 FirstDeclMatcher<FunctionDecl>().match(FromNormalTU, Pattern); in TEST_P()
2829 FirstDeclMatcher<FunctionDecl>().match(FromFriendTU, Pattern); in TEST_P()
2849 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 1u); in TEST_P()
2854 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2867 auto *FromFriendF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
2870 auto *FromClass = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
2872 auto *FromFriend = FirstDeclMatcher<FriendDecl>().match(FromTU, friendDecl()); in TEST_P()
2883 auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
2885 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl()); in TEST_P()
3036 auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match( in test()
3039 ASSERT_EQ(DeclCounter<CXXMethodDecl>().match(ToClass, MethodMatcher), 1u); in test()
3043 FirstDeclMatcher<CXXMethodDecl>().match(ToClass, MethodMatcher); in test()
3048 ASSERT_EQ(DeclCounter<CXXMethodDecl>().match(ToClass, MethodMatcher), 0u); in test()
3053 auto *FromClass = FirstDeclMatcher<CXXRecordDecl>().match( in test()
3059 EXPECT_EQ(DeclCounter<CXXMethodDecl>().match(ToClass, MethodMatcher), in test()
3120 auto *FromR = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
3129 auto *FromR = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
3142 auto *FromR = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
3150 auto *FromR = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
3161 auto *FromF = FirstDeclMatcher<FieldDecl>().match( in TEST_P()
3168 auto *FromF = FirstDeclMatcher<FieldDecl>().match( in TEST_P()
3178 FirstDeclMatcher<FieldDecl>().match(FromTU, fieldDecl(hasName("x"))); in TEST_P()
3206 auto *FromBlock = FirstDeclMatcher<BlockDecl>().match(FromTU, blockDecl()); in TEST_P()
3226 auto *FromVar = FirstDeclMatcher<ParmVarDecl>().match( in TEST_P()
3244 auto *FromF = FirstDeclMatcher<FieldDecl>().match( in TEST_P()
3252 auto *FromF = FirstDeclMatcher<FieldDecl>().match( in TEST_P()
3264 auto *FromM = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
3272 auto *FromM = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
3284 auto *FromM = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
3293 auto *FromM = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
3315 FirstDeclMatcher<RecordDecl>().match(FromTU, recordDecl(hasName("A"))); in TEST_P()
3321 FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry0"))); in TEST_P()
3323 FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry1"))); in TEST_P()
3327 EXPECT_TRUE(MatchVerifier<RecordDecl>().match( in TEST_P()
3329 EXPECT_TRUE(MatchVerifier<RecordDecl>().match( in TEST_P()
3341 auto *FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
3386 auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3399 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3438 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3443 FirstDeclMatcher<FunctionDecl>().match(FromTU, FunPattern); in TEST_P()
3445 FirstDeclMatcher<FunctionDecl>().match(ToTU, FunPattern); in TEST_P()
3450 auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3467 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3504 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3516 DeclCounter<ClassTemplateSpecializationDecl>().match( in TEST_P()
3542 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3549 FirstDeclMatcher<CXXConstructorDecl>().match(FromTU, CtorPattern); in TEST_P()
3551 FirstDeclMatcher<CXXConstructorDecl>().match(ToTU, CtorPattern); in TEST_P()
3556 auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3571 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3573 auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3578 EXPECT_EQ(1u, DeclCounter<ClassTemplateSpecializationDecl>().match( in TEST_P()
3597 FirstDeclMatcher<ClassTemplatePartialSpecializationDecl>().match( in TEST_P()
3600 FirstDeclMatcher<ClassTemplatePartialSpecializationDecl>().match( in TEST_P()
3605 EXPECT_EQ(1u, DeclCounter<ClassTemplatePartialSpecializationDecl>().match( in TEST_P()
3623 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3625 auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3630 EXPECT_EQ(1u, DeclCounter<ClassTemplateSpecializationDecl>().match( in TEST_P()
3653 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
3659 EXPECT_EQ(1u, DeclCounter<ClassTemplatePartialSpecializationDecl>().match( in TEST_P()
3662 EXPECT_EQ(1u, DeclCounter<ClassTemplateSpecializationDecl>().match( in TEST_P()
3674 auto *FromD = FirstDeclMatcher<VarDecl>().match(TU, varDecl(hasName("a"))); in TEST_P()
3699 auto *FromDWithInit = FirstDeclMatcher<VarDecl>().match( in TEST_P()
3701 auto *FromDWithDef = LastDeclMatcher<VarDecl>().match( in TEST_P()
3725 auto *FromDWithInit = FirstDeclMatcher<VarDecl>().match( in TEST_P()
3727 auto *FromDWithDef = LastDeclMatcher<VarDecl>().match( in TEST_P()
3735 auto *ToD = FirstDeclMatcher<VarDecl>().match( in TEST_P()
3756 auto *FromDDeclarationOnly = FirstDeclMatcher<VarDecl>().match( in TEST_P()
3758 auto *FromDWithDef = LastDeclMatcher<VarDecl>().match( in TEST_P()
3766 auto *ToD = FirstDeclMatcher<VarDecl>().match( in TEST_P()
3796 auto *FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
3802 auto *FromB = FirstDeclMatcher<BindingDecl>().match( in TEST_P()
3835 FirstDeclMatcher<DecompositionDecl>().match(FromTU, decompositionDecl()); in TEST_P()
3854 auto ToProto = FirstDeclMatcher<RecordDecl>().match(ToTU, Pattern); in TEST_P()
3855 auto FromDef = FirstDeclMatcher<RecordDecl>().match(FromTU1, Pattern); in TEST_P()
3860 EXPECT_EQ(DeclCounter<RecordDecl>().match(ToTU, Pattern), 2u); in TEST_P()
3861 auto ToDef = LastDeclMatcher<RecordDecl>().match(ToTU, Pattern); in TEST_P()
3872 auto ToProto = FirstDeclMatcher<RecordDecl>().match(ToTU, Pattern); in TEST_P()
3873 auto FromDef = FirstDeclMatcher<RecordDecl>().match(FromTU1, Pattern); in TEST_P()
3878 EXPECT_EQ(DeclCounter<RecordDecl>().match(ToTU, Pattern), 2u); in TEST_P()
3879 auto ToDef = LastDeclMatcher<RecordDecl>().match(ToTU, Pattern); in TEST_P()
3891 auto FromProto = FirstDeclMatcher<RecordDecl>().match(FromTU0, Pattern); in TEST_P()
3892 auto FromDef = FirstDeclMatcher<RecordDecl>().match(FromTU1, Pattern); in TEST_P()
3899 EXPECT_EQ(DeclCounter<RecordDecl>().match(ToTU, Pattern), 2u); in TEST_P()
3900 auto ToProto = FirstDeclMatcher<RecordDecl>().match(ToTU, Pattern); in TEST_P()
3901 auto ToDef = LastDeclMatcher<RecordDecl>().match(ToTU, Pattern); in TEST_P()
3924 auto *FromClass = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
3926 auto *FromFriendClass = LastDeclMatcher<CXXRecordDecl>().match( in TEST_P()
3959 auto *FromD = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
3963 ASSERT_TRUE(MatchVerifier<Decl>{}.match(FromD, Pattern)); in TEST_P()
3964 EXPECT_TRUE(MatchVerifier<Decl>{}.match(ToD, Pattern)); in TEST_P()
3970 auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
3972 auto *FromFriend = FirstDeclMatcher<FriendDecl>().match(FromTu, friendDecl()); in TEST_P()
3991 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTu, friendDecl()); in TEST_P()
4016 FirstDeclMatcher<ClassTemplateDecl>().match(FromTu, classTemplateDecl()); in TEST_P()
4021 ASSERT_TRUE(MatchVerifier<Decl>{}.match(FromD, Pattern)); in TEST_P()
4022 EXPECT_TRUE(MatchVerifier<Decl>{}.match(ToD, Pattern)); in TEST_P()
4025 FirstDeclMatcher<ClassTemplateDecl>().match(ToD, classTemplateDecl()); in TEST_P()
4026 auto *Friend = FirstDeclMatcher<FriendDecl>().match(ToD, friendDecl()); in TEST_P()
4039 auto *FromD = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
4051 auto *FromD = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
4059 EXPECT_EQ(DeclCounter<ClassTemplateSpecializationDecl>().match(ToTU, Pattern), in TEST_P()
4077 auto *Fwd = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4086 auto *Definition = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4116 auto *ToDecl = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4124 auto *Definition = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4146 auto *Fwd = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4155 auto *Definition = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4175 auto *Friend = FirstDeclMatcher<FriendDecl>().match(FromTU0, friendDecl()); in TEST_P()
4185 auto *Definition = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
4203 auto *ToFriend1 = FirstDeclMatcher<FriendDecl>().match(ToTu, friendDecl()); in TEST_P()
4204 auto *ToFriend2 = LastDeclMatcher<FriendDecl>().match(ToTu, friendDecl()); in TEST_P()
4206 FirstDeclMatcher<FriendDecl>().match(FromTu, friendDecl()); in TEST_P()
4207 auto *FromFriend2 = LastDeclMatcher<FriendDecl>().match(FromTu, friendDecl()); in TEST_P()
4228 auto *ToFriend1 = FirstDeclMatcher<FriendDecl>().match(ToTu, friendDecl()); in TEST_P()
4229 auto *ToFriend2 = LastDeclMatcher<FriendDecl>().match(ToTu, friendDecl()); in TEST_P()
4231 FirstDeclMatcher<FriendDecl>().match(FromTu, friendDecl()); in TEST_P()
4232 auto *FromFriend2 = LastDeclMatcher<FriendDecl>().match(FromTu, friendDecl()); in TEST_P()
4250 auto *ToFoo = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
4254 auto *FromFoo = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
4279 auto *NS = FirstDeclMatcher<NamespaceDecl>().match( in TEST_P()
4281 auto *Spec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
4292 auto *A0 = FirstDeclMatcher<VarDecl>().match(TU, varDecl(hasName("A"))); in TEST_P()
4293 auto *A1 = LastDeclMatcher<VarDecl>().match(TU, varDecl(hasName("A"))); in TEST_P()
4344 ASSERT_TRUE(MatchVerifier<Decl>{}.match(FromTU, Pattern)); in TEST_P()
4346 auto *Foo = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
4351 EXPECT_TRUE(MatchVerifier<Decl>{}.match(ToTU, Pattern)); in TEST_P()
4368 ASSERT_TRUE(MatchVerifier<Decl>{}.match(FromTU, Pattern)); in TEST_P()
4370 ASSERT_TRUE(Import(FirstDeclMatcher<Decl>().match(FromTU, Instantiation), in TEST_P()
4374 EXPECT_TRUE(MatchVerifier<Decl>{}.match(ToTU, Pattern)); in TEST_P()
4392 ASSERT_TRUE(MatchVerifier<Decl>{}.match(FromTU, Pattern)); in TEST_P()
4394 ASSERT_TRUE(Import(FirstDeclMatcher<Decl>().match(FromTU, Specialization), in TEST_P()
4398 EXPECT_TRUE(MatchVerifier<Decl>{}.match(ToTU, Pattern)); in TEST_P()
4414 auto *FromSpecD = FirstDeclMatcher<Decl>().match(FromTU, Spec); in TEST_P()
4418 auto *TemplateD = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
4431 auto *SpecD = FirstDeclMatcher<Decl>().match(TU, Spec); in TEST_P()
4432 auto *TemplateD = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
4455 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( 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()
4474 auto *FromD = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4490 FunctionDecl *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
4493 auto *FromCTD = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4516 auto *ToD = FirstDeclMatcher<TypedefNameDecl>().match(ToTU, in TEST_P()
4528 auto *FromD = FirstDeclMatcher<TypedefNameDecl>().match(FromTU, in TEST_P()
4546 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, in TEST_P()
4572 auto *FromD = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
4596 auto *FromD = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4599 FirstDeclMatcher<ClassTemplatePartialSpecializationDecl>().match( in TEST_P()
4651 auto *FromD1 = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
4653 auto *FromD2 = LastDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
4706 auto *FromD1 = FirstDeclMatcher<VarTemplateDecl>().match( in TEST_P()
4709 FirstDeclMatcher<VarTemplatePartialSpecializationDecl>().match( in TEST_P()
4711 auto *FromD2 = FirstDeclMatcher<VarTemplateDecl>().match( in TEST_P()
4714 FirstDeclMatcher<VarTemplatePartialSpecializationDecl>().match( in TEST_P()
4771 auto *FromD1 = FirstDeclMatcher<TypeAliasTemplateDecl>().match( in TEST_P()
4773 auto *FromD2 = FirstDeclMatcher<TypeAliasTemplateDecl>().match( in TEST_P()
4808 auto *FromClass = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
4814 "pack", match(substTemplateTypeParmPackType().bind("pack"), FromCtx)); in TEST_P()
4831 "pack", match(substTemplateTypeParmPackType().bind("pack"), ToCtx)); in TEST_P()
4849 auto *D = FirstDeclMatcher<VarDecl>().match(ToTU, varDecl(hasName("a"))); in TEST_P()
4874 auto *X = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
4876 auto *Foo = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
4911 FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("Foo"))); in TEST_P()
4913 FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("A"))); in TEST_P()
4946 .match(ToTU, varDecl(hasName("V"))) in TEST_P()
4949 FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("A"))); in TEST_P()
4951 FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("B"))); in TEST_P()
4957 EXPECT_EQ(*Res.begin(), FirstDeclMatcher<FieldDecl>().match( in TEST_P()
4962 EXPECT_EQ(*Res.begin(), FirstDeclMatcher<FieldDecl>().match( in TEST_P()
4967 EXPECT_EQ(*Res.begin(), FirstDeclMatcher<VarDecl>().match( 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()
5002 auto *FPlus = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5004 auto *FMinus = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5026 auto *ToPlus = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5035 auto *FromPlus = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5062 auto *FriendD = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl()); in TEST_P()
5064 auto *Y = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5088 auto *FriendD = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl()); in TEST_P()
5090 auto *Y = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, cxxRecordDecl(hasName("Y"))); in TEST_P()
5115 auto *Alias = FirstDeclMatcher<TypeAliasDecl>().match( in TEST_P()
5130 auto *F = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
5153 auto *F = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
5175 auto *F = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
5194 FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("F"))); in TEST_P()
5217 auto *Template = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
5219 auto *FieldInTemplate = FirstDeclMatcher<FieldDecl>().match( in TEST_P()
5223 auto *Spec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
5258 auto *F = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
5281 auto *X = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5283 auto *FriendD0 = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl()); in TEST_P()
5284 auto *FriendD1 = LastDeclMatcher<FriendDecl>().match(ToTU, friendDecl()); in TEST_P()
5307 auto *E = FirstDeclMatcher<EnumDecl>().match(ToTU, enumDecl(hasName("E"))); in TEST_P()
5308 auto *A = FirstDeclMatcher<EnumConstantDecl>().match( in TEST_P()
5346 LastDeclMatcher<NamespaceDecl>().match(ToTU, namespaceDecl(hasName("N"))); in TEST_P()
5347 auto *A = FirstDeclMatcher<VarDecl>().match(ToTU, varDecl(hasName("A"))); in TEST_P()
5374 auto *FromFwd = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5376 auto *FromDef = LastDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5405 auto *Friend = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
5413 auto *FromFoo = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
5460 auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match( in TEST_P()
5466 EXPECT_EQ(DeclCounter<ClassTemplateSpecializationDecl>().match( in TEST_P()
5483 auto *FromFoo = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5492 DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("foo"))), in TEST_P()
5510 auto *FromProto = FirstDeclMatcher<FunctionDecl>().match( 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()
5548 auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5560 auto *FromF = FirstDeclMatcher<CXXMethodDecl>().match( in TEST_P()
5570 auto *FromOK = FirstDeclMatcher<CXXMethodDecl>().match( in TEST_P()
5601 auto *FromFRD = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5603 auto *FromA = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5605 auto *FromB = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5607 auto *FromNS = FirstDeclMatcher<NamespaceDecl>().match( in TEST_P()
5643 FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
5649 FirstDeclMatcher<FriendDecl>().match( in TEST_P()
5654 Importer->getImportDeclErrorIfAny(FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5659 Importer->getImportDeclErrorIfAny(FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5673 auto *FromX = FirstDeclMatcher<NamespaceDecl>().match( in TEST_P()
5684 auto *FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5694 auto *FromOK = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5729 FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("z"))); in TEST_P()
5752 auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5764 auto *ToXDef = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5772 auto *ToXFwd = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5788 auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5835 auto *FromFooA = FirstDeclMatcher<FunctionDecl>().match(FromTU, MatchFooA); in TEST_P()
5836 auto *FromFooB = FirstDeclMatcher<FunctionDecl>().match(FromTU, MatchFooB); in TEST_P()
5837 auto *FromFooC = FirstDeclMatcher<FunctionDecl>().match(FromTU, MatchFooC); in TEST_P()
5872 auto *FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5910 auto *FromA = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
5920 Decl *FromNS = FirstDeclMatcher<NamespaceDecl>().match( in TEST_P()
5937 FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass(); in TEST_P()
5957 FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass(); in TEST_P()
5978 FunctionDecl *FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6000 auto *ToClassProto = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
6002 auto *ToClassDef = LastDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
6011 auto *FromClassProto = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
6013 auto *FromClassDef = LastDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
6050 auto *ToX = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
6065 auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
6095 auto *ToTypedef = FirstDeclMatcher<TypedefDecl>().match( in TEST_P()
6099 auto *FromTypedef = FirstDeclMatcher<TypedefDecl>().match( in TEST_P()
6119 auto *FromD = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
6141 auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
6144 auto *Constr1 = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_P()
6146 auto *Constr2 = LastDeclMatcher<CXXConstructorDecl>().match( in TEST_P()
6177 FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass(); in TEST_P()
6179 LastDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass(); in TEST_P()
6197 FirstDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern); in TEST_P()
6199 LastDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern); in TEST_P()
6218 FirstDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern); in TEST_P()
6220 LastDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern); in TEST_P()
6238 auto FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6242 DeclCounter<CXXRecordDecl>().match(FromTU, cxxRecordDecl(isLambda())), in TEST_P()
6249 EXPECT_EQ(DeclCounter<CXXRecordDecl>().match(ToTU, cxxRecordDecl(isLambda())), in TEST_P()
6262 auto FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6266 DeclCounter<CXXRecordDecl>().match(FromTU, cxxRecordDecl(isLambda())), in TEST_P()
6273 EXPECT_EQ(DeclCounter<CXXRecordDecl>().match(ToTU, cxxRecordDecl(isLambda())), in TEST_P()
6294 .match(FromTU, lambdaExpr()) in TEST_P()
6333 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6351 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6369 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6388 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6407 FirstDeclMatcher<CXXMethodDecl>().match(FromTU, cxxMethodDecl()); in TEST_P()
6419 FirstDeclMatcher<TypeAliasDecl>().match(FromTU, typeAliasDecl()); 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()
6513 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6532 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6549 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6568 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6587 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
6595 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
6629 VarDecl *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
6663 VarDecl *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
6712 FirstDeclMatcher<DT>().match(FromTU, namedDecl(hasName("test"))); in importAttr()
6762 auto *FromD = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
6778 auto *ToA = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
6794 auto *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
7078 auto *FromD = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
7099 auto *FromD = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
7120 auto *FromD = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
7131 auto *FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
7158 auto *Guide = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
7160 auto *Typedef = FirstDeclMatcher<TypedefNameDecl>().match( in TEST_P()
7178 auto *Guide = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
7180 auto *Typedef = FirstDeclMatcher<TypedefNameDecl>().match( in TEST_P()
7201 auto *Guide = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
7203 auto *Typedef = FirstDeclMatcher<TypedefNameDecl>().match( in TEST_P()
7221 FirstDeclMatcher<TypedefDecl>().match(TU, typedefDecl(hasName("X"))); in TEST_P()
7252 auto *From1 = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
7258 auto *From2 = LastDeclMatcher<ClassTemplateDecl>().match( in TEST_P()
7274 auto *FromFD = FirstDeclMatcher<FieldDecl>().match(FromTU, fieldDecl()); in TEST_P()
7293 auto *FromD = FirstDeclMatcher<EnumDecl>().match( in TEST_P()
7320 auto *FromD = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_P()
7346 auto *RecordA = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7348 auto *RecordB = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7350 auto *ConstrA = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_P()
7354 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7358 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7375 auto *FromC = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7408 auto *RecordA = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7410 auto *RecordB = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7412 auto *RecordV1 = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7414 auto *RecordV2 = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7416 auto *ConstrA = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_P()
7419 auto *ConstrB = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_P()
7422 auto *UsingD2V1 = FirstDeclMatcher<UsingDecl>().match( in TEST_P()
7424 auto *UsingD2V2 = LastDeclMatcher<UsingDecl>().match( in TEST_P()
7427 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7431 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7435 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7439 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7443 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7447 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7452 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7457 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7462 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7499 auto *FromD2 = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7522 auto *FromB = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7528 auto *ToUsing = FirstDeclMatcher<UsingDecl>().match( in TEST_P()
7530 auto *ToUsingShadowF1 = FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7533 auto *ToUsingShadowF2 = FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7561 auto *FromDGCtor = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
7564 auto *FromDGCopyCtor = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
7567 auto *FromDGOther = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
7627 auto *FromDGCtor = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
7630 auto *FromDGCopyCtor = FirstDeclMatcher<FunctionTemplateDecl>().match( in TEST_P()
7633 auto *FromDGOther = FirstDeclMatcher<CXXDeductionGuideDecl>().match( in TEST_P()
7694 auto *FromA = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7721 auto *FromA = FirstDeclMatcher<CXXRecordDecl>().match( in TEST_P()
7748 auto *ToX = FirstDeclMatcher<FieldDecl>().match( in TEST_P()
7763 auto *FromX = FirstDeclMatcher<FieldDecl>().match( in TEST_P()
7786 auto *ToX = FirstDeclMatcher<FieldDecl>().match( in TEST_P()
7811 auto *FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
7836 auto *FromOther = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
7843 auto *ToBar = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()