Lines Matching refs:ToTU

125   auto *ToTU = Imported->getTranslationUnitDecl();  in TEST_P()  local
128 DeclCounterWithPredicate<CXXRecordDecl>().match(ToTU, Pattern); in TEST_P()
142 auto *ToTU = To->getTranslationUnitDecl(); in TEST_P() local
145 DeclCounterWithPredicate<CXXRecordDecl>().match(ToTU, Pattern); in TEST_P()
1196 auto ToTU = ToTemplated->getTranslationUnitDecl(); in TEST_P() local
1198 FirstDeclMatcher<ClassTemplateDecl>().match(ToTU, classTemplateDecl()); in TEST_P()
1212 auto ToTU = ToTemplated->getTranslationUnitDecl(); in TEST_P() local
1214 ToTU, functionTemplateDecl()); in TEST_P()
1677 Decl *ToTU = getToTuDecl( in TEST_P() local
1692 .match(ToTU, classTemplateDecl())); in TEST_P()
1712 .match(ToTU, classTemplateDecl())); in TEST_P()
1717 Decl *ToTU = getToTuDecl( in TEST_P() local
1727 ToTU, cxxRecordDecl(unless(isImplicit())))); in TEST_P()
1742 ToTU, cxxRecordDecl(unless(isImplicit())))); in TEST_P()
1808 Decl *ToTU = getToTuDecl( in TEST_P() local
1825 .match(ToTU, classTemplateSpecializationDecl())); in TEST_P()
1846 .match(ToTU, classTemplateSpecializationDecl())); in TEST_P()
1892 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
1894 EXPECT_EQ(0u, ToTU->getASTContext().getDiagnostics().getNumWarnings()); in TEST_P()
1896 DeclCounter<RecordDecl>().match(ToTU, recordDecl(hasName("X")))); in TEST_P()
1925 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
1927 EXPECT_EQ(1u, ToTU->getASTContext().getDiagnostics().getNumWarnings()); in TEST_P()
1929 DeclCounter<RecordDecl>().match(ToTU, recordDecl(hasName("X")))); in TEST_P()
1962 Decl *ToTU = getToTuDecl("int x = 1;", Lang_CXX03); in TEST_P() local
1963 ExistingD = FirstDeclMatcher<VarDecl>().match(ToTU, Pattern); in TEST_P()
1980 Decl *ToTU = getToTuDecl( in TEST_P() local
1987 ExistingD = FirstDeclMatcher<VarDecl>().match(ToTU, Pattern); in TEST_P()
2035 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TEST_P() local
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()
2053 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TEST_P() local
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()
2103 Decl *ToTU = getToTuDecl( in TEST_P() local
2112 }).match(ToTU, functionDecl())); in TEST_P()
2122 }).match(ToTU, functionDecl())); in TEST_P()
2144 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2146 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFP), 1u); in TEST_P()
2147 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, DFP), 1u); in TEST_P()
2182 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
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()
2214 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2216 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFP), 1u); in TEST_P()
2217 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, BFDefP), 0u); in TEST_P()
2220 ToTU, cxxRecordDecl(hasName("B"))); in TEST_P()
2221 auto *ToBFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, BFP); in TEST_P()
2223 ToTU, cxxMethodDecl(hasName("f"), isDefinition())); in TEST_P()
2230 EXPECT_EQ(ToBFOutOfClass->getLexicalDeclContext(), ToTU); in TEST_P()
2274 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
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()
2282 ToTU, cxxRecordDecl(hasName("B"))); in TEST_P()
2284 ToTU, cxxRecordDecl(hasName("D"))); in TEST_P()
2285 auto *ToBFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, BFP); in TEST_P()
2287 ToTU, cxxMethodDecl(hasName("f"), isDefinition())); in TEST_P()
2288 auto *ToDFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, DFP); in TEST_P()
2290 ToTU, cxxMethodDecl(hasName("f"), isDefinition())); in TEST_P()
2297 EXPECT_EQ(ToBFOutOfClass->getLexicalDeclContext(), ToTU); in TEST_P()
2303 EXPECT_EQ(ToDFOutOfClass->getLexicalDeclContext(), ToTU); in TEST_P()
2365 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2366 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))), in TEST_P()
2434 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2436 ToTU, translationUnitDecl(hasDescendant( in TEST_P()
2550 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2551 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2553 auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2568 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2569 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2571 auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2585 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2586 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2588 auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2603 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2604 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2606 auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern); in TEST_P()
2626 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2627 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2630 .match(ToTU, friendDecl()) in TEST_P()
2655 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2656 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2659 ToTU, functionDecl(unless(hasParent(friendDecl())))); in TEST_P()
2685 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2686 ASSERT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2713 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2714 auto *Class = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern); in TEST_P()
2717 LookupRes = ToTU->noload_lookup(ToName); 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()
2759 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2760 auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern); in TEST_P()
2763 LookupRes = ToTU->noload_lookup(ToName); 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()
2802 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2804 auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern); in TEST_P()
2807 LookupRes = ToTU->noload_lookup(ToName); 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()
2843 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2847 LookupRes = ToTU->noload_lookup(ToName); in TEST_P()
2849 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 1u); in TEST_P()
2852 LookupRes = ToTU->noload_lookup(ToName); in TEST_P()
2854 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, Pattern), 2u); in TEST_P()
2882 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
2884 ToTU, cxxRecordDecl(hasName("X"))); in TEST_P()
2885 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl()); in TEST_P()
3035 Decl *ToTU = getToTuDecl(Code, Lang_CXX11); in test() local
3037 ToTU, ClassMatcher); in test()
3183 auto *ToTU = ToField->getTranslationUnitDecl(); in TEST_P() local
3186 EXPECT_EQ(3u, ToField->getBitWidthValue(ToTU->getASTContext())); in TEST_P()
3319 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
3321 FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry0"))); in TEST_P()
3323 FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry1"))); in TEST_P()
3379 Decl *ToTU = getToTuDecl(ClassTemplate + in TEST_P() local
3387 ToTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
3424 Decl *ToTU = getToTuDecl(ClassTemplate + in TEST_P() local
3445 FirstDeclMatcher<FunctionDecl>().match(ToTU, FunPattern); in TEST_P()
3451 ToTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
3482 Decl *ToTU = getToTuDecl(ClassTemplate + in TEST_P() local
3509 EXPECT_EQ(1u, ToTU->getASTContext().getDiagnostics().getNumWarnings()); in TEST_P()
3517 ToTU, classTemplateSpecializationDecl(hasName("X")))); in TEST_P()
3530 Decl *ToTU = getToTuDecl(ClassTemplate + in TEST_P() local
3551 FirstDeclMatcher<CXXConstructorDecl>().match(ToTU, CtorPattern); in TEST_P()
3557 ToTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
3569 Decl *ToTU = getToTuDecl(Code, Lang_CXX11); in TEST_P() local
3574 ToTU, classTemplateSpecializationDecl()); in TEST_P()
3579 ToTU, classTemplateSpecializationDecl())); in TEST_P()
3594 Decl *ToTU = getToTuDecl(Code, Lang_CXX11); in TEST_P() local
3601 ToTU, classTemplatePartialSpecializationDecl()); in TEST_P()
3606 ToTU, classTemplatePartialSpecializationDecl())); in TEST_P()
3621 Decl *ToTU = getToTuDecl(Code, Lang_CXX11); in TEST_P() local
3626 ToTU, classTemplateSpecializationDecl()); in TEST_P()
3631 ToTU, classTemplateSpecializationDecl())); in TEST_P()
3651 Decl *ToTU = getToTuDecl(PrimaryTemplate + FullSpec, Lang_CXX11); in TEST_P() local
3660 ToTU, classTemplatePartialSpecializationDecl())); in TEST_P()
3663 ToTU, classTemplateSpecializationDecl( in TEST_P()
3721 Decl *ToTU = getToTuDecl(StructA, Lang_CXX03); in TEST_P() local
3736 ToTU, varDecl(hasName("a"))); // Decl with init in TEST_P()
3752 Decl *ToTU = getToTuDecl(StructA, Lang_CXX03); in TEST_P() local
3767 ToTU, varDecl(hasName("a"))); in TEST_P()
3851 Decl *ToTU = getToTuDecl("struct A { struct X *Xp; };", Lang_C99); in TEST_P() local
3854 auto ToProto = FirstDeclMatcher<RecordDecl>().match(ToTU, 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()
3869 Decl *ToTU = getToTuDecl("struct A { struct X *Xp; };", Lang_CXX03); in TEST_P() local
3872 auto ToProto = FirstDeclMatcher<RecordDecl>().match(ToTU, 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()
3896 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TEST_P() local
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()
4058 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
4059 EXPECT_EQ(DeclCounter<ClassTemplateSpecializationDecl>().match(ToTU, Pattern), in TEST_P()
4105 Decl *ToTU = getToTuDecl( in TEST_P() local
4117 ToTU, classTemplateDecl(hasName("F"))); in TEST_P()
4249 TranslationUnitDecl *ToTU = getToTuDecl(Code, Lang_CXX03); in TEST_P() local
4251 ToTU, functionDecl(hasName("foo"))); in TEST_P()
4350 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
4351 EXPECT_TRUE(MatchVerifier<Decl>{}.match(ToTU, Pattern)); in TEST_P()
4373 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
4374 EXPECT_TRUE(MatchVerifier<Decl>{}.match(ToTU, Pattern)); in TEST_P()
4397 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
4398 EXPECT_TRUE(MatchVerifier<Decl>{}.match(ToTU, Pattern)); in TEST_P()
4459 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
4462 DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f")))); in TEST_P()
4499 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
4500 EXPECT_EQ(0u, ToTU->getASTContext().getDiagnostics().getNumWarnings()); in TEST_P()
4515 Decl *ToTU = getToTuDecl(Code, Lang_CXX11); in TEST_P() local
4516 auto *ToD = FirstDeclMatcher<TypedefNameDecl>().match(ToTU, in TEST_P()
4848 auto *ToTU = getToTuDecl("int a;", Lang_CXX03); in TEST_P() local
4849 auto *D = FirstDeclMatcher<VarDecl>().match(ToTU, varDecl(hasName("a"))); in TEST_P()
4850 ASTImporterLookupTable LT(*ToTU); in TEST_P()
4851 auto Res = LT.lookup(ToTU, D->getDeclName()); in TEST_P()
4873 TranslationUnitDecl *ToTU = getToTuDecl(Code, Lang_CXX03); in TEST_P() local
4875 ToTU, classTemplateDecl(hasName("X"))); in TEST_P()
4877 ToTU, functionDecl(hasName("foo"))); in TEST_P()
4881 ASSERT_EQ(cast<Decl>(FooDC), ToTU); in TEST_P()
4900 ASTImporterLookupTable LT(*ToTU); in TEST_P()
4908 TranslationUnitDecl *ToTU = in TEST_P() local
4911 FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("Foo"))); in TEST_P()
4913 FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("A"))); in TEST_P()
4917 ASSERT_EQ(cast<Decl>(FooDC), ToTU); in TEST_P()
4936 ASTImporterLookupTable LT(*ToTU); in TEST_P()
4943 TranslationUnitDecl *ToTU = in TEST_P() local
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()
4953 ASTImporterLookupTable LT(*ToTU); in TEST_P()
4958 ToTU, fieldDecl(hasName("V"), in TEST_P()
4963 ToTU, fieldDecl(hasName("V"), in TEST_P()
4965 Res = LT.lookup(ToTU, VName); in TEST_P()
4968 ToTU, varDecl(hasName("V"), in TEST_P()
4973 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
4981 ASTImporterLookupTable LT(*ToTU); 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()
4985 auto Res = LT.lookup(ToTU, Name); in TEST_P()
4993 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5001 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5003 ToTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
5005 ToTU, functionDecl(hasOverloadedOperatorName("-"))); in TEST_P()
5007 auto ResPlus = LT.lookup(ToTU, NamePlus); in TEST_P()
5012 auto ResMinus = LT.lookup(ToTU, NameMinus); in TEST_P()
5020 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5027 ToTU, functionDecl(hasOverloadedOperatorName("+"))); in TEST_P()
5041 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5042 auto Res = LT.lookup(ToTU, ToPlus->getDeclName()); in TEST_P()
5047 Res = LT.lookup(ToTU, FromPlus->getDeclName()); in TEST_P()
5053 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5061 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5062 auto *FriendD = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl()); in TEST_P()
5065 ToTU, cxxRecordDecl(hasName("Y"))); in TEST_P()
5068 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5078 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5087 ASTImporterLookupTable LT(*ToTU); 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()
5093 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5103 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5113 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5116 ToTU, typeAliasDecl(hasName("alias_of_f"))); in TEST_P()
5118 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5123 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5129 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5131 ToTU, classTemplateDecl(hasName("F"))); in TEST_P()
5133 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5140 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5152 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5154 ToTU, classTemplateDecl(hasName("F"))); in TEST_P()
5156 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5163 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5174 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5176 ToTU, classTemplateDecl(hasName("F"))); in TEST_P()
5178 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5186 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5192 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5194 FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("F"))); in TEST_P()
5196 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5203 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5215 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5218 ToTU, classTemplateDecl(hasName("X"))); in TEST_P()
5220 ToTU, in TEST_P()
5224 ToTU, classTemplateSpecializationDecl(hasName("X"))); in TEST_P()
5251 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5257 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5259 ToTU, functionTemplateDecl(hasName("F"))); in TEST_P()
5261 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5268 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5280 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5282 ToTU, cxxRecordDecl(hasName("X"))); 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()
5291 auto Res = LT.lookup(ToTU, Name); in TEST_P()
5297 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5306 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5307 auto *E = FirstDeclMatcher<EnumDecl>().match(ToTU, enumDecl(hasName("E"))); in TEST_P()
5309 ToTU, enumConstantDecl(hasName("A"))); in TEST_P()
5313 ASSERT_EQ(E->getRedeclContext(), ToTU); in TEST_P()
5321 ToTU->localUncachedLookup(Name, FoundDecls); in TEST_P()
5330 Res = LT.lookup(ToTU, Name); in TEST_P()
5336 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5346 LastDeclMatcher<NamespaceDecl>().match(ToTU, namespaceDecl(hasName("N"))); in TEST_P()
5347 auto *A = FirstDeclMatcher<VarDecl>().match(ToTU, varDecl(hasName("A"))); in TEST_P()
5350 ASTImporterLookupTable LT(*ToTU); in TEST_P()
5390 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
5392 EXPECT_EQ(0u, ToTU->getASTContext().getDiagnostics().getNumWarnings()); in TEST_P()
5398 Decl *ToTU = getToTuDecl( in TEST_P() local
5406 ToTU, functionTemplateDecl(hasName("foo"))); in TEST_P()
5444 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
5467 ToTU, classTemplateSpecializationDecl(hasName("X"))), in TEST_P()
5489 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
5492 DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("foo"))), in TEST_P()
5519 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
5520 EXPECT_EQ(DeclCounter<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))), in TEST_P()
5524 FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("f"))); in TEST_P()
5725 Decl *ToTU = getToTuDecl(ToTUCode, Lang_CXX11); in TEST_P() local
5726 static_cast<void>(ToTU); in TEST_P()
5742 TranslationUnitDecl *ToTU = getToTuDecl("class X;", Lang_CXX03); in TEST_P() local
5765 ToTU, cxxRecordDecl(hasName("X"), isDefinition())); in TEST_P()
5773 ToTU, cxxRecordDecl(hasName("X"), unless(isDefinition()))); in TEST_P()
5869 Decl *ToTU = getToTuDecl(ToTUCode, Lang_CXX11); in TEST_P() local
5870 static_cast<void>(ToTU); in TEST_P()
5907 Decl *ToTU = getToTuDecl(ToTUCode, Lang_CXX11); in TEST_P() local
5908 static_cast<void>(ToTU); in TEST_P()
5997 TranslationUnitDecl *ToTU = getToTuDecl(Code, Lang_CXX03); in TEST_P() local
6001 ToTU, classTemplateDecl(hasName("Class"))); in TEST_P()
6003 ToTU, classTemplateDecl(hasName("Class"))); in TEST_P()
6043 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() local
6051 ToTU, cxxRecordDecl(hasName("X"))); in TEST_P()
6054 ToTU->setHasExternalLexicalStorage(true); in TEST_P()
6056 ToTU->setMustBuildLookupTable(); in TEST_P()
6058 ToTU->getASTContext().setExternalSource(new TestExternalASTSource()); in TEST_P()
6092 TranslationUnitDecl *ToTU = getToTuDecl("", Lang_CXX03); in TEST_P() local
6096 ToTU, typedefDecl(hasName(TypeName))); in TEST_P()
6247 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
6249 EXPECT_EQ(DeclCounter<CXXRecordDecl>().match(ToTU, cxxRecordDecl(isLambda())), in TEST_P()
6271 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P() local
6273 EXPECT_EQ(DeclCounter<CXXRecordDecl>().match(ToTU, cxxRecordDecl(isLambda())), in TEST_P()
7379 TranslationUnitDecl *ToTU = ToC->getTranslationUnitDecl(); in TEST_P() local
7382 CheckAST(ToTU, ToC); in TEST_P()
7503 TranslationUnitDecl *ToTU = ToD2->getTranslationUnitDecl(); in TEST_P() local
7506 CheckAST(ToTU, ToD2); in TEST_P()
7526 TranslationUnitDecl *ToTU = ToB->getTranslationUnitDecl(); in TEST_P() local
7529 ToTU, usingDecl(hasParent(equalsNode(ToB)))); in TEST_P()
7531 ToTU, usingShadowDecl(hasTargetDecl( in TEST_P()
7534 ToTU, usingShadowDecl(hasTargetDecl( in TEST_P()
7741 Decl *ToTU = getToTuDecl( in TEST_P() local
7749 ToTU, in TEST_P()
7776 Decl *ToTU = getToTuDecl( in TEST_P() local
7787 ToTU, in TEST_P()
7829 Decl *ToTU = getToTuDecl( in TEST_P() local
7844 ToTU, functionDecl(hasName("bar"))); in TEST_P()