Lines Matching refs:FromTU

42   Decl *FromTU = getTuDecl("void f();", Lang_CXX03);  in TEST_P()  local
44 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
52 Decl *FromTU = getTuDecl("void f(); void f(); void f();", Lang_CXX03); in TEST_P() local
54 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
55 auto *D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
66 Decl *FromTU = getTuDecl("void f(); void f(); void f();", Lang_CXX03); in TEST_P() local
68 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
69 auto *D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
150 Decl *FromTU; member
153 FromTU = getTuDecl("void f(); void f(); void f();", Lang_CXX03); in ImportPath()
155 D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in ImportPath()
156 D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in ImportPath()
815 Decl *FromTU = getTuDecl("int declToImport() { " in TEST_P() local
822 FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("d"))); in TEST_P()
831 Decl *FromTU = getTuDecl( in TEST_P() local
835 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
842 Decl *FromTU = in TEST_P() local
847 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
859 Decl *FromTU = in TEST_P() local
864 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
1040 Decl *FromTU = getTuDecl( in TEST_P() local
1047 auto From = FirstDeclMatcher<UsingPackDecl>().match(FromTU, usingPackDecl()); in TEST_P()
1065 Decl *FromTU = getTuDecl("template<typename T> struct X {};", Lang_CXX03); in TEST_P() local
1067 FromTU, templateTypeParmDecl(hasName("T"))); in TEST_P()
1073 Decl *FromTU = in TEST_P() local
1076 FromTU, templateTypeParmDecl(hasName("T"))); in TEST_P()
1084 Decl *FromTU = in TEST_P() local
1088 FromTU, functionDecl(hasName("f"))); in TEST_P()
1106 Decl *FromTU = getTuDecl(R"( in TEST_P() local
1111 FromTU, templateTemplateParmDecl(hasName("TT"))); in TEST_P()
1117 Decl *FromTU = getTuDecl(R"( in TEST_P() local
1123 FromTU, templateTemplateParmDecl(hasName("TT"))); in TEST_P()
1138 Decl *FromTU = getTuDecl("template<int N> struct X {};", Lang_CXX03); in TEST_P() local
1140 FromTU, nonTypeTemplateParmDecl(hasName("N"))); in TEST_P()
1146 Decl *FromTU = getTuDecl("template<int S = 1> struct X {};", Lang_CXX03); in TEST_P() local
1148 FromTU, nonTypeTemplateParmDecl(hasName("S"))); in TEST_P()
1160 Decl *FromTU = getTuDecl("template<class X> struct S{};", Lang_CXX03); in TEST_P() local
1162 FirstDeclMatcher<ClassTemplateDecl>().match(FromTU, classTemplateDecl()); in TEST_P()
1174 Decl *FromTU = getTuDecl("template<class X> void f(){}", Lang_CXX03); in TEST_P() local
1176 FromTU, functionTemplateDecl()); in TEST_P()
1188 Decl *FromTU = getTuDecl("template<class X> struct S{};", Lang_CXX03); in TEST_P() local
1190 FirstDeclMatcher<ClassTemplateDecl>().match(FromTU, classTemplateDecl()); in TEST_P()
1204 Decl *FromTU = getTuDecl("template<class X> void f(){}", Lang_CXX03); in TEST_P() local
1206 FromTU, functionTemplateDecl()); in TEST_P()
1227 Decl *FromTU = getTuDecl(Code, Lang_CXX03); in TEST_P() local
1229 FirstDeclMatcher<NamespaceDecl>().match(FromTU, namespaceDecl()); in TEST_P()
1233 FirstDeclMatcher<ClassTemplateDecl>().match(FromTU, in TEST_P()
1610 Decl *FromTU = getTuDecl( in TEST_P() local
1616 Decl *From = LastDeclMatcher<Decl>{}.match(FromTU, functionDecl()); in TEST_P()
1644 Decl *FromTU = getTuDecl( in TEST_P() local
1651 FromTU, classTemplateDecl(hasName("B"))); in TEST_P()
1657 Decl *FromTU = getTuDecl( in TEST_P() local
1666 FromTU, functionDecl(hasName("f"))); in TEST_P()
1669 FromTU, classTemplateDecl(hasName("B"))); in TEST_P()
1694 Decl *FromTU = getTuDecl( in TEST_P() local
1703 FromTU, classTemplateDecl(hasName("B"))); in TEST_P()
1729 Decl *FromTU = getTuDecl( in TEST_P() local
1737 FromTU, cxxRecordDecl(hasName("B"))); in TEST_P()
1759 Decl *FromTU = getTuDecl( in TEST_P() local
1769 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1773 auto FromLHS = LastDeclMatcher<DeclRefExpr>().match(FromTU, declRefExpr()); in TEST_P()
1776 LastDeclMatcher<IntegerLiteral>().match(FromTU, integerLiteral()); in TEST_P()
1789 Decl *FromTU = getTuDecl( in TEST_P() local
1796 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
1827 Decl *FromTU = getTuDecl( in TEST_P() local
1837 FromTU, classTemplateSpecializationDecl(hasName("B"))); in TEST_P()
1850 Decl *FromTU = getTuDecl( in TEST_P() local
1858 FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("object0"))); in TEST_P()
1861 FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("object1"))); in TEST_P()
1936 Decl *FromTU = getTuDecl("extern int x;", Lang_CXX03, "input0.cc"); in TEST_P() local
1937 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
1942 Decl *FromTU = getTuDecl("int x;", Lang_CXX03, "input1.cc"); in TEST_P() local
1943 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
1949 Decl *FromTU = getTuDecl("extern int x; int f() { return x; }", Lang_CXX03, in TEST_P() local
1952 FromTU, functionDecl(hasName("f"))); in TEST_P()
1967 Decl *FromTU = in TEST_P() local
1970 FromTU, functionDecl(hasName("f"))); in TEST_P()
1991 Decl *FromTU = getTuDecl( in TEST_P() local
2001 FromTU, functionDecl(hasName("f"))); in TEST_P()
2002 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
2012 Decl *FromTU = getTuDecl("int x;", Lang_CXX03, "input0.cc"); in TEST_P() local
2013 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
2029 Decl *FromTU = getTuDecl("void f(); void f() { f(); }", Lang_CXX03); in TEST_P() local
2032 FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); // Proto in TEST_P()
2047 Decl *FromTU = getTuDecl("void f(); void f() { f(); }", Lang_CXX03); in TEST_P() local
2050 LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); // Def in TEST_P()
2073 Decl *FromTU = getTuDecl(Code, Lang_CXX03); in TEST_P() local
2075 FirstDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern); in TEST_P()
2090 Decl *FromTU = getTuDecl(Code, Lang_CXX03); in TEST_P() local
2092 FirstDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern); in TEST_P()
2093 CXXMethodDecl *Def = LastDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern); in TEST_P()
2114 Decl *FromTU = getTuDecl("void f() {}", Lang_CXX03, "input0.cc"); in TEST_P() local
2115 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
2172 Decl *FromTU = getTuDecl(CodeWithDef, Lang_CXX03, "input0.cc"); in TEST_P() local
2173 auto *FromD = FirstDeclMatcher<CXXMethodDecl>().match(FromTU, DFP); in TEST_P()
2177 Decl *FromTU = getTuDecl(CodeWithoutDef, Lang_CXX03, "input1.cc"); in TEST_P() local
2178 auto *FromB = FirstDeclMatcher<CXXMethodDecl>().match(FromTU, BFP); in TEST_P()
2349 Decl *FromTU = getTuDecl("namespace { void f() {} } void g0() { f(); }", in TEST_P() local
2352 FromTU, functionDecl(hasName("g0"))); in TEST_P()
2357 Decl *FromTU = in TEST_P() local
2361 FromTU, functionDecl(hasName("g1"))); in TEST_P()
2371 Decl *FromTU = getTuDecl( in TEST_P() local
2379 FromTU, functionDecl(hasName("foo"))); in TEST_P()
2392 Decl *FromTU = getTuDecl( in TEST_P() local
2405 FromTU, functionDecl(hasName("f"))); in TEST_P()
2414 Decl *FromTU = getTuDecl( in TEST_P() local
2431 FromTU, functionDecl(hasName("g"))); in TEST_P()
2492 Decl *FromTU = getTuDecl("void foo();", Lang_CXX03); in TEST_P() local
2494 FromTU, functionDecl(hasName("foo"))); in TEST_P()
2510 Decl *FromTU = getTuDecl(Code, Lang_CXX03); in TEST_P() local
2512 LastDeclMatcher<CXXConstructorDecl>().match(FromTU, cxxConstructorDecl()); in TEST_P()
2527 Decl *FromTU = getTuDecl( in TEST_P() local
2534 FromTU, functionDecl(hasOverloadedOperatorName("<"))); in TEST_P()
2544 Decl *FromTU = getTuDecl("struct X { friend void f(); };" in TEST_P() local
2547 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2562 Decl *FromTU = getTuDecl("void f();" in TEST_P() local
2565 auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2579 Decl *FromTU = getTuDecl("struct X { friend void f(){} };" in TEST_P() local
2582 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2597 Decl *FromTU = getTuDecl("struct X { friend void f(); };" in TEST_P() local
2600 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2614 Decl *FromTU = getTuDecl( in TEST_P() local
2623 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2643 Decl *FromTU = getTuDecl( in TEST_P() local
2652 auto *FromD = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2673 Decl *FromTU = in TEST_P() local
2675 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2680 Decl *FromTU = getTuDecl("void f();", Lang_CXX03, "input1.cc"); in TEST_P() local
2681 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
2696 TranslationUnitDecl *FromTU = in TEST_P() local
2698 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern); in TEST_P()
2703 auto *Class = FirstDeclMatcher<CXXRecordDecl>().match(FromTU, ClassPattern); in TEST_P()
2706 LookupRes = FromTU->noload_lookup(FromName); in TEST_P()
2730 TranslationUnitDecl *FromTU = in TEST_P() local
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()
2753 LookupRes = FromTU->noload_lookup(FromName); in TEST_P()
2780 TranslationUnitDecl *FromTU = getTuDecl("void f();" in TEST_P() local
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()
2797 LookupRes = FromTU->noload_lookup(FromName); in TEST_P()
2864 TranslationUnitDecl *FromTU = getTuDecl("struct X { friend void f(); };" in TEST_P() local
2868 FromTU, functionDecl(hasName("f"))); in TEST_P()
2871 FromTU, cxxRecordDecl(hasName("X"))); in TEST_P()
2872 auto *FromFriend = FirstDeclMatcher<FriendDecl>().match(FromTU, friendDecl()); in TEST_P()
3052 Decl *FromTU = getTuDecl(Code, Lang_CXX11, "input1.cc"); in test() local
3054 FromTU, ClassMatcher); in test()
3119 Decl *FromTU = getTuDecl("struct A { };", Lang_CXX03, "input0.cc"); in TEST_P() local
3121 FromTU, cxxRecordDecl(hasName("A"))); in TEST_P()
3128 Decl *FromTU = getTuDecl("struct A { };", Lang_CXX03, "input1.cc"); in TEST_P() local
3130 FromTU, cxxRecordDecl(hasName("A"))); in TEST_P()
3141 Decl *FromTU = getTuDecl("struct A { int x; };", Lang_CXX03, "input0.cc"); in TEST_P() local
3143 FromTU, cxxRecordDecl(hasName("A"))); in TEST_P()
3148 Decl *FromTU = in TEST_P() local
3151 FromTU, cxxRecordDecl(hasName("A"))); in TEST_P()
3160 Decl *FromTU = getTuDecl("struct A { int x; };", Lang_CXX03, "input0.cc"); in TEST_P() local
3162 FromTU, fieldDecl(hasName("x"))); in TEST_P()
3167 Decl *FromTU = getTuDecl("struct A { int x; };", Lang_CXX03, "input1.cc"); in TEST_P() local
3169 FromTU, fieldDecl(hasName("x"))); in TEST_P()
3176 Decl *FromTU = getTuDecl("struct A { unsigned x : 3; };", Lang_CXX03); in TEST_P() local
3178 FirstDeclMatcher<FieldDecl>().match(FromTU, fieldDecl(hasName("x"))); in TEST_P()
3181 ASSERT_EQ(3u, FromF->getBitWidthValue(FromTU->getASTContext())); in TEST_P()
3205 Decl *FromTU = getTuDecl(Code, Lang_CXX03); in TEST_P() local
3206 auto *FromBlock = FirstDeclMatcher<BlockDecl>().match(FromTU, blockDecl()); in TEST_P()
3225 Decl *FromTU = getTuDecl(Code, Lang_CXX11); in TEST_P() local
3227 FromTU, parmVarDecl(hasType(asString("int")))); in TEST_P()
3243 Decl *FromTU = getTuDecl("struct A { int x; };", Lang_CXX03, "input0.cc"); in TEST_P() local
3245 FromTU, fieldDecl(hasName("x"))); in TEST_P()
3250 Decl *FromTU = in TEST_P() local
3253 FromTU, fieldDecl(hasName("x"))); in TEST_P()
3262 Decl *FromTU = getTuDecl("struct A { void x(); }; void A::x() { }", in TEST_P() local
3265 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3270 Decl *FromTU = getTuDecl("struct A { void x(); }; void A::x() { }", in TEST_P() local
3273 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3282 Decl *FromTU = getTuDecl("struct A { void x(); }; void A::x() { }", in TEST_P() local
3285 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3290 Decl *FromTU = in TEST_P() local
3294 FromTU, functionDecl(hasName("x"), isDefinition())); in TEST_P()
3302 Decl *FromTU = getTuDecl( in TEST_P() local
3315 FirstDeclMatcher<RecordDecl>().match(FromTU, recordDecl(hasName("A"))); in TEST_P()
3334 Decl *FromTU = getTuDecl( in TEST_P() local
3342 FromTU, functionDecl(hasName("f"))); in TEST_P()
3392 Decl *FromTU = getTuDecl(ClassTemplate + in TEST_P() local
3400 FromTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
3431 Decl *FromTU = getTuDecl(ClassTemplate + in TEST_P() local
3439 FromTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
3443 FirstDeclMatcher<FunctionDecl>().match(FromTU, FunPattern); in TEST_P()
3466 Decl *FromTU = getTuDecl(ClassTemplate, Lang_CXX11); in TEST_P() local
3468 FromTU, classTemplateSpecializationDecl(hasName("X"), isDefinition())); in TEST_P()
3493 Decl *FromTU = getTuDecl(ClassTemplate + in TEST_P() local
3505 FromTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
3536 Decl *FromTU = getTuDecl(ClassTemplate + in TEST_P() local
3543 FromTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
3549 FirstDeclMatcher<CXXConstructorDecl>().match(FromTU, CtorPattern); in TEST_P()
3570 Decl *FromTU = getTuDecl(Code, Lang_CXX11); in TEST_P() local
3572 FromTU, classTemplateSpecializationDecl()); in TEST_P()
3595 Decl *FromTU = getTuDecl(Code, Lang_CXX11); in TEST_P() local
3598 FromTU, classTemplatePartialSpecializationDecl()); in TEST_P()
3622 Decl *FromTU = getTuDecl(Code, Lang_CXX11); in TEST_P() local
3624 FromTU, classTemplateSpecializationDecl()); in TEST_P()
3652 Decl *FromTU = getTuDecl(PrimaryTemplate + PartialSpec, Lang_CXX11); in TEST_P() local
3654 FromTU, classTemplateSpecializationDecl()); in TEST_P()
3690 Decl *FromTU = getTuDecl( in TEST_P() local
3700 FromTU, varDecl(hasName("a"))); // Decl with init in TEST_P()
3702 FromTU, varDecl(hasName("a"))); // Decl with definition in TEST_P()
3722 Decl *FromTU = getTuDecl(std::string(StructA) + "const int A::a;", Lang_CXX03, in TEST_P() local
3726 FromTU, varDecl(hasName("a"))); // Decl with init in TEST_P()
3728 FromTU, varDecl(hasName("a"))); // Decl with definition in TEST_P()
3753 Decl *FromTU = getTuDecl(std::string(StructA) + "const int A::a = 1 + 2;", in TEST_P() local
3757 FromTU, varDecl(hasName("a"))); in TEST_P()
3759 FromTU, varDecl(hasName("a"))); // Decl with definition and with init. in TEST_P()
3795 TranslationUnitDecl *FromTU = From->getTranslationUnitDecl(); in TEST_P() local
3797 FromTU, functionDecl(hasName("declToImport"))); in TEST_P()
3833 TranslationUnitDecl *FromTU = From->getTranslationUnitDecl(); in TEST_P() local
3835 FirstDeclMatcher<DecompositionDecl>().match(FromTU, decompositionDecl()); in TEST_P()
3913 Decl *FromTU = getTuDecl( in TEST_P() local
3925 FromTU, cxxRecordDecl(hasName("F"), isDefinition())); in TEST_P()
3927 FromTU, cxxRecordDecl(hasName("F"))); in TEST_P()
4036 Decl *FromTU = getTuDecl("template<class T> class X;" in TEST_P() local
4040 FromTU, Pattern); in TEST_P()
4047 Decl *FromTU = getTuDecl("template<class T> class X;" in TEST_P() local
4052 FromTU, Pattern); in TEST_P()
4118 Decl *FromTU = getTuDecl( in TEST_P() local
4125 FromTU, classTemplateDecl(hasName("F"))); in TEST_P()
4253 TranslationUnitDecl *FromTU = getTuDecl(Code, Lang_CXX03, "input.cc"); in TEST_P() local
4255 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4333 Decl *FromTU = getTuDecl( in TEST_P() local
4344 ASSERT_TRUE(MatchVerifier<Decl>{}.match(FromTU, Pattern)); in TEST_P()
4347 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4357 Decl *FromTU = getTuDecl( in TEST_P() local
4368 ASSERT_TRUE(MatchVerifier<Decl>{}.match(FromTU, Pattern)); in TEST_P()
4370 ASSERT_TRUE(Import(FirstDeclMatcher<Decl>().match(FromTU, Instantiation), in TEST_P()
4380 Decl *FromTU = getTuDecl( in TEST_P() local
4392 ASSERT_TRUE(MatchVerifier<Decl>{}.match(FromTU, Pattern)); in TEST_P()
4394 ASSERT_TRUE(Import(FirstDeclMatcher<Decl>().match(FromTU, Specialization), in TEST_P()
4404 Decl *FromTU = getTuDecl( in TEST_P() local
4414 auto *FromSpecD = FirstDeclMatcher<Decl>().match(FromTU, Spec); in TEST_P()
4416 auto *TU = FromTU; in TEST_P()
4445 Decl *FromTU = getTuDecl( in TEST_P() local
4456 FromTU, functionDecl(hasName("foo"))); in TEST_P()
4461 DeclCounter<FunctionDecl>().match(FromTU, functionDecl(hasName("f"))), in TEST_P()
4468 Decl *FromTU = getTuDecl( in TEST_P() local
4475 FromTU, classTemplateDecl(hasName("B"))); in TEST_P()
4481 Decl *FromTU = getTuDecl( in TEST_P() local
4491 FromTU, functionDecl(hasName("f"))); in TEST_P()
4494 FromTU, classTemplateDecl(hasName("B"))); in TEST_P()
4522 Decl *FromTU = getTuDecl(std::string(Code) + in TEST_P() local
4528 auto *FromD = FirstDeclMatcher<TypedefNameDecl>().match(FromTU, in TEST_P()
4545 Decl *FromTU = getTuDecl(Code, Lang_CXX03); in TEST_P() local
4546 auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, in TEST_P()
4570 Decl *FromTU = getTuDecl(Code, Lang_CXX11); in TEST_P() local
4573 FromTU, functionTemplateDecl(hasName("f"))); in TEST_P()
4594 Decl *FromTU = getTuDecl(Code, Lang_CXX11); in TEST_P() local
4597 FromTU, classTemplateDecl(hasName("S"))); in TEST_P()
4600 FromTU, classTemplatePartialSpecializationDecl(hasName("S"))); in TEST_P()
4623 Decl *FromTU = getTuDecl( in TEST_P() local
4652 FromTU, cxxDeductionGuideDecl()); in TEST_P()
4654 FromTU, cxxDeductionGuideDecl()); in TEST_P()
4704 Decl *FromTU = getTuDecl(Code, Lang_CXX14); in TEST_P() local
4707 FromTU, varTemplateDecl(hasName("X1"))); in TEST_P()
4710 FromTU, varTemplatePartialSpecializationDecl(hasName("X1"))); in TEST_P()
4712 FromTU, varTemplateDecl(hasName("X2"))); in TEST_P()
4715 FromTU, varTemplatePartialSpecializationDecl(hasName("X2"))); in TEST_P()
4769 Decl *FromTU = getTuDecl(Code, Lang_CXX11); in TEST_P() local
4772 FromTU, typeAliasTemplateDecl(hasName("S1"))); in TEST_P()
4774 FromTU, typeAliasTemplateDecl(hasName("S2"))); in TEST_P()
4807 Decl *FromTU = getTuDecl(Code, Lang_CXX11, "input.cpp"); in TEST_P() local
4809 FromTU, classTemplateSpecializationDecl()); in TEST_P()
4812 ASTContext &FromCtx = FromTU->getASTContext(); in TEST_P()
5029 Decl *FromTU = getTuDecl( in TEST_P() local
5036 FromTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
5358 Decl *FromTU = getTuDecl( in TEST_P() local
5375 FromTU, cxxRecordDecl(hasName("X"), unless(isImplicit()))); in TEST_P()
5377 FromTU, in TEST_P()
5408 Decl *FromTU = getTuDecl( in TEST_P() local
5414 FromTU, functionTemplateDecl(hasName("foo"))); in TEST_P()
5452 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
5461 FromTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
5481 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
5484 FromTU, functionDecl(hasName("foo"))); in TEST_P()
5505 TranslationUnitDecl *FromTU = getTuDecl(std::string(R"( in TEST_P() local
5511 FromTU, functionDecl(hasName("f"))); in TEST_P()
5513 LastDeclMatcher<FunctionDecl>().match(FromTU, functionDecl(hasName("f"))); in TEST_P()
5540 TranslationUnitDecl *FromTU = getTuDecl(std::string(R"( in TEST_P() local
5549 FromTU, cxxRecordDecl(hasName("X"))); in TEST_P()
5561 FromTU, cxxMethodDecl(hasName("f"))); in TEST_P()
5571 FromTU, cxxMethodDecl(hasName("ok"))); in TEST_P()
5585 Decl *FromTU = getTuDecl(std::string(R"( in TEST_P() local
5602 FromTU, cxxRecordDecl(hasName("F"), isDefinition())); in TEST_P()
5604 FromTU, cxxRecordDecl(hasName("A"), isDefinition())); in TEST_P()
5606 FromTU, cxxRecordDecl(hasName("B"), isDefinition())); in TEST_P()
5608 FromTU, namespaceDecl(hasName("NS"))); in TEST_P()
5644 FromTU, classTemplateDecl(hasName("F")))); in TEST_P()
5650 FromTU, friendDecl())); in TEST_P()
5655 FromTU, cxxRecordDecl(hasName("A"), isImplicit()))); in TEST_P()
5660 FromTU, cxxRecordDecl(hasName("X"), isImplicit()))); in TEST_P()
5665 TranslationUnitDecl *FromTU = getTuDecl(std::string(R"( in TEST_P() local
5674 FromTU, namespaceDecl(hasName("X"))); in TEST_P()
5685 FromTU, functionDecl(hasName("f"))); in TEST_P()
5695 FromTU, functionDecl(hasName("ok"))); in TEST_P()
5727 Decl *FromTU = getTuDecl(FromTUCode, Lang_CXX11); in TEST_P() local
5729 FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("z"))); in TEST_P()
5745 TranslationUnitDecl *FromTU = getTuDecl(std::string(R"( in TEST_P() local
5753 FromTU, cxxRecordDecl(hasName("X"))); in TEST_P()
5780 TranslationUnitDecl *FromTU = getTuDecl(std::string(R"( in TEST_P() local
5789 FromTU, cxxRecordDecl(hasName("X"))); in TEST_P()
5818 TranslationUnitDecl *FromTU = getTuDecl(std::string(R"( in TEST_P() local
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()
5871 Decl *FromTU = getTuDecl(FromTUCode, Lang_CXX11); in TEST_P() local
5873 FromTU, functionDecl(hasName("f"))); in TEST_P()
5909 Decl *FromTU = getTuDecl(FromTUCode, Lang_CXX11); in TEST_P() local
5911 FromTU, cxxRecordDecl(hasName("A"), hasDefinition())); in TEST_P()
5921 FromTU, namespaceDecl(hasName("ns"))); in TEST_P()
5928 Decl *FromTU = getTuDecl( in TEST_P() local
5937 FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass(); in TEST_P()
5949 Decl *FromTU = getTuDecl( in TEST_P() local
5957 FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass(); in TEST_P()
5969 Decl *FromTU = getTuDecl( in TEST_P() local
5979 FromTU, functionDecl(hasName("f"))); in TEST_P()
5998 TranslationUnitDecl *FromTU = getTuDecl(Code, Lang_CXX03, "input.cc"); in TEST_P() local
6012 FromTU, classTemplateDecl(hasName("Class"))); in TEST_P()
6014 FromTU, classTemplateDecl(hasName("Class"))); in TEST_P()
6060 Decl *FromTU = getTuDecl( in TEST_P() local
6066 FromTU, cxxRecordDecl(hasName("X"))); in TEST_P()
6093 TranslationUnitDecl *FromTU = getTuDecl("", Lang_CXX03, "input.cc"); in TEST_P() local
6100 FromTU, typedefDecl(hasName(TypeName))); in TEST_P()
6112 Decl *FromTU = getTuDecl( in TEST_P() local
6120 FromTU, cxxRecordDecl(hasName("X"), unless(isImplicit()))); in TEST_P()
6136 Decl *FromTU = getTuDecl( in TEST_P() local
6142 FromTU, cxxRecordDecl(hasName("X"))); in TEST_P()
6167 Decl *FromTU = getTuDecl( in TEST_P() local
6177 FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass(); in TEST_P()
6179 LastDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass(); in TEST_P()
6189 Decl *FromTU = getTuDecl( in TEST_P() local
6197 FirstDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern); in TEST_P()
6199 LastDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern); in TEST_P()
6209 Decl *FromTU = getTuDecl( in TEST_P() local
6218 FirstDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern); in TEST_P()
6220 LastDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern); in TEST_P()
6231 Decl *FromTU = getTuDecl( in TEST_P() local
6239 FromTU, functionDecl(hasName("f"))); in TEST_P()
6242 DeclCounter<CXXRecordDecl>().match(FromTU, cxxRecordDecl(isLambda())), in TEST_P()
6254 Decl *FromTU = getTuDecl( in TEST_P() local
6263 FromTU, functionDecl(hasName("f"))); in TEST_P()
6266 DeclCounter<CXXRecordDecl>().match(FromTU, cxxRecordDecl(isLambda())), in TEST_P()
6285 Decl *FromTU = getTuDecl( in TEST_P() local
6294 .match(FromTU, lambdaExpr()) in TEST_P()
6324 Decl *FromTU = getTuDecl( in TEST_P() local
6334 FromTU, functionDecl(hasName("foo"))); in TEST_P()
6342 Decl *FromTU = getTuDecl( in TEST_P() local
6352 FromTU, functionDecl(hasName("foo"))); in TEST_P()
6360 Decl *FromTU = getTuDecl( in TEST_P() local
6370 FromTU, functionDecl(hasName("foo"))); in TEST_P()
6378 Decl *FromTU = getTuDecl( in TEST_P() local
6389 FromTU, functionDecl(hasName("foo"))); in TEST_P()
6397 Decl *FromTU = getTuDecl( in TEST_P() local
6407 FirstDeclMatcher<CXXMethodDecl>().match(FromTU, cxxMethodDecl()); in TEST_P()
6419 FirstDeclMatcher<TypeAliasDecl>().match(FromTU, typeAliasDecl()); in TEST_P()
6432 Decl *FromTU = getTuDecl( in TEST_P() local
6441 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
6449 Decl *FromTU = getTuDecl( in TEST_P() local
6458 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
6467 Decl *FromTU = getTuDecl( in TEST_P() local
6477 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
6485 Decl *FromTU = getTuDecl( in TEST_P() local
6494 FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl()); in TEST_P()
6502 Decl *FromTU = getTuDecl( in TEST_P() local
6514 FromTU, functionDecl(hasName("f"))); in TEST_P()
6522 Decl *FromTU = getTuDecl( in TEST_P() local
6533 FromTU, functionDecl(hasName("f"))); in TEST_P()
6541 Decl *FromTU = getTuDecl( in TEST_P() local
6550 FromTU, functionDecl(hasName("f"))); in TEST_P()
6558 Decl *FromTU = getTuDecl( in TEST_P() local
6569 FromTU, functionDecl(hasName("f"))); in TEST_P()
6586 Decl *FromTU = getTuDecl("int X;", Lang_C99, "input0.c"); in TEST_P() local
6587 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
6594 Decl *FromTU = getTuDecl("int Y;", Lang_C99, "input1.c"); in TEST_P() local
6595 auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
6623 TranslationUnitDecl *FromTU = getTuDecl(Source, Lang_C99, Path); in TEST_P() local
6629 VarDecl *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
6644 TranslationUnitDecl *FromTU = getTuDecl("int X;", Lang_C99, Path); in TEST_P() local
6650 SourceManager &FromSM = FromTU->getASTContext().getSourceManager(); in TEST_P()
6663 VarDecl *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern); in TEST_P()
6710 Decl *FromTU = getTuDecl(Code, Lang_CXX11, "input.cc"); in importAttr() local
6712 FirstDeclMatcher<DT>().match(FromTU, namedDecl(hasName("test"))); in importAttr()
6756 Decl *FromTU = getTuDecl( in TEST_P() local
6763 FromTU, cxxRecordDecl(hasName("S"), unless(isImplicit()))); in TEST_P()
6788 Decl *FromTU = getTuDecl( in TEST_P() local
6795 FromTU, functionDecl(hasName("foo"))); in TEST_P()
7038 TranslationUnitDecl *FromTU = getTuDecl("", Lang_CXX03, "input.cpp"); in TEST_P() local
7044 clang::ASTContext &Context = FromTU->getASTContext(); in TEST_P()
7050 Context, TTK_Class, FromTU, SourceLocation(), SourceLocation(), &Ident); in TEST_P()
7052 FromTU->addDecl(Record); in TEST_P()
7070 Decl *FromTU = getTuDecl( in TEST_P() local
7079 FromTU, in TEST_P()
7090 Decl *FromTU = getTuDecl( in TEST_P() local
7100 FromTU, cxxDeductionGuideDecl(unless(isImplicit()))); in TEST_P()
7130 Decl *FromTU = getTuDecl(FromTUCode, Lang_CXX11); in TEST_P() local
7132 FromTU, functionDecl(hasName("f"))); in TEST_P()
7232 Decl *FromTU = getTuDecl( in TEST_P() local
7253 FromTU, in TEST_P()
7259 FromTU, in TEST_P()
7266 Decl *FromTU = getTuDecl( in TEST_P() local
7274 auto *FromFD = FirstDeclMatcher<FieldDecl>().match(FromTU, fieldDecl()); in TEST_P()
7285 Decl *FromTU = getTuDecl( in TEST_P() local
7294 FromTU, enumDecl(hasName("tagname"), in TEST_P()
7307 Decl *FromTU = getTuDecl( in TEST_P() local
7321 FromTU, cxxConstructorDecl(isInheritingConstructor())); in TEST_P()
7331 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
7376 FromTU, cxxRecordDecl(hasName("C"))); in TEST_P()
7381 CheckAST(FromTU, FromC); in TEST_P()
7392 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
7500 FromTU, cxxRecordDecl(hasName("D2"))); in TEST_P()
7505 CheckAST(FromTU, FromD2); in TEST_P()
7510 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
7523 FromTU, cxxRecordDecl(hasName("B"))); in TEST_P()
7549 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
7562 FromTU, functionTemplateDecl(templateParameterCountIs(3))); in TEST_P()
7565 FromTU, functionTemplateDecl(templateParameterCountIs(1), isImplicit())); in TEST_P()
7568 FromTU, cxxDeductionGuideDecl(unless(isImplicit()))); in TEST_P()
7615 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
7628 FromTU, functionTemplateDecl(templateParameterCountIs(3))); in TEST_P()
7631 FromTU, functionTemplateDecl(templateParameterCountIs(1), isImplicit())); in TEST_P()
7634 FromTU, cxxDeductionGuideDecl(unless(isImplicit()))); in TEST_P()
7683 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
7695 FromTU, cxxRecordDecl(hasName("A"))); in TEST_P()
7706 TranslationUnitDecl *FromTU = getTuDecl( in TEST_P() local
7722 FromTU, cxxRecordDecl(hasName("A"))); in TEST_P()
7754 Decl *FromTU = getTuDecl( in TEST_P() local
7764 FromTU, in TEST_P()
7792 Decl *FromTU = getTuDecl( in TEST_P() local
7812 FromTU, functionDecl(hasName("f"), isDefinition())); in TEST_P()
7819 Decl *FromTU = getTuDecl( in TEST_P() local
7837 FromTU, functionDecl(hasName("other"))); in TEST_P()