reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/AST/ASTImporterGenericRedeclTest.cpp
  145         auto *TemplateD = FirstDeclMatcher<FunctionTemplateDecl>().match(
  160     auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern());
  167     auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
  177     auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern());
  184     auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
  193     auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern());
  194     auto *From1 = LastDeclMatcher<DeclTy>().match(FromTU, getPattern());
  203     auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  204     auto *To1 = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
  215     auto *FromProto = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern());
  216     auto *FromDef = LastDeclMatcher<DeclTy>().match(FromTU, getPattern());
  225     auto *ToProto = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  226     auto *ToDef = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
  237     auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern());
  238     auto *FromProto = LastDeclMatcher<DeclTy>().match(FromTU, getPattern());
  247     auto *ToDef = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  248     auto *ToProto = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
  260     auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU0, getPattern());
  261     auto *From1 = FirstDeclMatcher<DeclTy>().match(FromTU1, getPattern());
  270     auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  271     auto *To1 = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
  283     auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU0, getPattern());
  284     auto *From1 = FirstDeclMatcher<DeclTy>().match(FromTU1, getPattern());
  294     auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  305     auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTUDef, getPattern());
  307         FirstDeclMatcher<DeclTy>().match(FromTUProto, getPattern());
  317     auto *ToDef = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  318     auto *ToProto = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
  331         FirstDeclMatcher<DeclTy>().match(FromTUProto, getPattern());
  332     auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTUDef, getPattern());
  342     auto *ToProto = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  343     auto *ToDef = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
  355         LastDeclMatcher<DeclTy>().match(FromTU, getPattern());
  369       auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern());
  375       auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern());
  382     DeclTy *ProtoD = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  385     DeclTy *DefinitionD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern());
tools/clang/unittests/AST/ASTImporterODRStrategiesTest.cpp
  253     auto *ToD = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern());
  256     auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern());
tools/clang/unittests/AST/ASTImporterTest.cpp
  257   auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
  267   auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
  268   auto *D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
  281   auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
  282   auto *D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
  368     D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
  369     D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
  963       FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("d")));
  975   auto *From = FirstDeclMatcher<FunctionDecl>().match(
  987   auto *From = FirstDeclMatcher<FunctionDecl>().match(
 1004   auto *From = FirstDeclMatcher<FunctionDecl>().match(
 1153   auto From = FirstDeclMatcher<FunctionDecl>().match(
 1174       FirstDeclMatcher<ClassTemplateDecl>().match(FromTU, classTemplateDecl());
 1187   auto From = FirstDeclMatcher<FunctionTemplateDecl>().match(
 1202       FirstDeclMatcher<ClassTemplateDecl>().match(FromTU, classTemplateDecl());
 1210       FirstDeclMatcher<ClassTemplateDecl>().match(ToTU, classTemplateDecl());
 1217   auto FromFT = FirstDeclMatcher<FunctionTemplateDecl>().match(
 1225   auto ToFT = FirstDeclMatcher<FunctionTemplateDecl>().match(
 1241       FirstDeclMatcher<NamespaceDecl>().match(FromTU, namespaceDecl());
 1245       FirstDeclMatcher<ClassTemplateDecl>().match(FromTU,
 1249       FirstDeclMatcher<ClassTemplateDecl>().match(ToNs,
 1598   Decl *From = LastDeclMatcher<Decl>{}.match(FromTU, functionDecl());
 1632     auto *FromD = FirstDeclMatcher<ClassTemplateDecl>().match(
 1647     FunctionDecl *FromD = FirstDeclMatcher<FunctionDecl>().match(
 1650     auto *FromCTD = FirstDeclMatcher<ClassTemplateDecl>().match(
 1684   ClassTemplateDecl *FromD = FirstDeclMatcher<ClassTemplateDecl>().match(
 1718   auto *FromD = FirstDeclMatcher<CXXRecordDecl>().match(
 1751   auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl());
 1754   auto ToLHS = LastDeclMatcher<DeclRefExpr>().match(ToD, declRefExpr());
 1755   auto FromLHS = LastDeclMatcher<DeclRefExpr>().match(FromTU, declRefExpr());
 1756   auto ToRHS = LastDeclMatcher<IntegerLiteral>().match(ToD, integerLiteral());
 1758       LastDeclMatcher<IntegerLiteral>().match(FromTU, integerLiteral());
 1778   auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl());
 1818   auto *FromD = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 1840       FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("object0")));
 1843       FirstDeclMatcher<VarDecl>().match(FromTU, varDecl(hasName("object1")));
 1868       FirstDeclMatcher<RecordDecl>().match(FromTU0, recordDecl(hasName("X")));
 1870       FirstDeclMatcher<RecordDecl>().match(FromTU1, recordDecl(hasName("X")));
 1901       FirstDeclMatcher<RecordDecl>().match(FromTU0, recordDecl(hasName("X")));
 1903       FirstDeclMatcher<RecordDecl>().match(FromTU1, recordDecl(hasName("X")));
 1919     auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern);
 1925     auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern);
 1933     auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 1945     ExistingD = FirstDeclMatcher<VarDecl>().match(ToTU, Pattern);
 1951     auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 1968     ExistingD = FirstDeclMatcher<VarDecl>().match(ToTU, Pattern);
 1980     auto *FromFunD = FirstDeclMatcher<FunctionDecl>().match(
 1982     auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern);
 1993   auto *FromD = FirstDeclMatcher<VarDecl>().match(FromTU, Pattern);
 2012       FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); // Proto
 2018   auto *To0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, Pattern);
 2019   auto *To1 = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern);
 2030       LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); // Def
 2036   auto *To0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, Pattern);
 2037   auto *To1 = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern);
 2055       FirstDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern);
 2072       FirstDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern);
 2073   CXXMethodDecl *Def = LastDeclMatcher<CXXMethodDecl>().match(FromTU, Pattern);
 2095   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, functionDecl());
 2117   auto *DF = FirstDeclMatcher<CXXMethodDecl>().match(FromTU0, DFP);
 2121   auto *BF = FirstDeclMatcher<CXXMethodDecl>().match(FromTU1, BFP);
 2153     auto *FromD = FirstDeclMatcher<CXXMethodDecl>().match(FromTU, DFP);
 2158     auto *FromB = FirstDeclMatcher<CXXMethodDecl>().match(FromTU, BFP);
 2187   auto *D = FirstDeclMatcher<CXXMethodDecl>().match(FromTU0, DFP);
 2191   auto *B = FirstDeclMatcher<CXXMethodDecl>().match(FromTU1, BFP);
 2199   auto *ToB = FirstDeclMatcher<CXXRecordDecl>().match(
 2201   auto *ToBFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, BFP);
 2202   auto *ToBFOutOfClass = FirstDeclMatcher<CXXMethodDecl>().match(
 2244     auto *D = FirstDeclMatcher<CXXMethodDecl>().match(FromTU0, DFP);
 2250     auto *Foo = FirstDeclMatcher<FunctionDecl>().match(FromTU1, FooDef);
 2261   auto *ToB = FirstDeclMatcher<CXXRecordDecl>().match(
 2263   auto *ToD = FirstDeclMatcher<CXXRecordDecl>().match(
 2265   auto *ToBFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, BFP);
 2266   auto *ToBFOutOfClass = FirstDeclMatcher<CXXMethodDecl>().match(
 2268   auto *ToDFInClass = FirstDeclMatcher<CXXMethodDecl>().match(ToTU, DFP);
 2269   auto *ToDFOutOfClass = LastDeclMatcher<CXXMethodDecl>().match(
 2296     auto *From0 = FirstDeclMatcher<VarDecl>().match(FromTu, Pattern);
 2297     auto *From1 = LastDeclMatcher<VarDecl>().match(FromTu, Pattern);
 2315   auto *FromF0 = FirstDeclMatcher<FunctionDecl>().match(FromTu, Pattern);
 2316   auto *FromF1 = LastDeclMatcher<FunctionDecl>().match(FromTu, Pattern);
 2331     auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 2340     auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 2358   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 2384   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 2410   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 2431   auto *FromD1 = FirstDeclMatcher<FunctionTemplateDecl>().match(
 2435   auto *FromD2 = FirstDeclMatcher<FunctionTemplateDecl>().match(
 2453   auto *FromD1 = FirstDeclMatcher<FunctionTemplateDecl>().match(
 2457   auto *FromD2 = FirstDeclMatcher<FunctionTemplateDecl>().match(
 2473   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 2492       LastDeclMatcher<CXXConstructorDecl>().match(FromTU, cxxConstructorDecl());
 2513   auto *FromD = LastDeclMatcher<FunctionDecl>().match(
 2528   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
 2534   auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern);
 2546   auto FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
 2552   auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern);
 2564   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
 2570   auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern);
 2582   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
 2588   auto *ToFD = LastDeclMatcher<FunctionDecl>().match(ToTU, Pattern);
 2605   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
 2612                                               .match(ToTU, friendDecl())
 2634   auto *FromD = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
 2640   auto *OutOfClassFD = FirstDeclMatcher<FunctionDecl>().match(
 2657     auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
 2663     auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern);
 2680   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern);
 2685     auto *Class = FirstDeclMatcher<CXXRecordDecl>().match(FromTU, ClassPattern);
 2696   auto *Class = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern);
 2703   auto *To0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern);
 2722       FirstDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern);
 2724       LastDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern);
 2732       FirstDeclMatcher<CXXRecordDecl>().match(FromTU, ClassPattern);
 2742   auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern);
 2750   ToFriend = FirstDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern);
 2751   auto *ToNormal = LastDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern);
 2767       FirstDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern);
 2769       LastDeclMatcher<FunctionDecl>().match(FromTU, FunctionPattern);
 2777       FirstDeclMatcher<CXXRecordDecl>().match(FromTU, ClassPattern);
 2787   auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, ClassPattern);
 2794   ToNormal = FirstDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern);
 2795   auto *ToFriend = LastDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern);
 2808       FirstDeclMatcher<FunctionDecl>().match(FromNormalTU, Pattern);
 2812       FirstDeclMatcher<FunctionDecl>().match(FromFriendTU, Pattern);
 2851   auto *FromFriendF = FirstDeclMatcher<FunctionDecl>().match(
 2854   auto *FromClass = FirstDeclMatcher<CXXRecordDecl>().match(
 2856   auto *FromFriend = FirstDeclMatcher<FriendDecl>().match(FromTU, friendDecl());
 2867   auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(
 2869   auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 3020     auto *ToClass = FirstDeclMatcher<CXXRecordDecl>().match(
 3027           FirstDeclMatcher<CXXMethodDecl>().match(ToClass, MethodMatcher);
 3037       auto *FromClass = FirstDeclMatcher<CXXRecordDecl>().match(
 3105     auto *FromR = FirstDeclMatcher<CXXRecordDecl>().match(
 3115     auto *FromR = FirstDeclMatcher<CXXRecordDecl>().match(
 3129     auto *FromR = FirstDeclMatcher<CXXRecordDecl>().match(
 3137     auto *FromR = FirstDeclMatcher<CXXRecordDecl>().match(
 3149     auto *FromF = FirstDeclMatcher<FieldDecl>().match(
 3157     auto *FromF = FirstDeclMatcher<FieldDecl>().match(
 3169     auto *FromF = FirstDeclMatcher<FieldDecl>().match(
 3177     auto *FromF = FirstDeclMatcher<FieldDecl>().match(
 3189     auto *FromM = FirstDeclMatcher<FunctionDecl>().match(
 3197     auto *FromM = FirstDeclMatcher<FunctionDecl>().match(
 3210     auto *FromM = FirstDeclMatcher<FunctionDecl>().match(
 3219     auto *FromM = FirstDeclMatcher<FunctionDecl>().match(
 3241       FirstDeclMatcher<RecordDecl>().match(FromTU, recordDecl(hasName("A")));
 3247       FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry0")));
 3249       FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry1")));
 3267   auto *FromF = FirstDeclMatcher<FunctionDecl>().match(
 3312   auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3325   auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3364   auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3369       FirstDeclMatcher<FunctionDecl>().match(FromTU, FunPattern);
 3371       FirstDeclMatcher<FunctionDecl>().match(ToTU, FunPattern);
 3376   auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3411   auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3449   auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3456       FirstDeclMatcher<CXXConstructorDecl>().match(FromTU, CtorPattern);
 3458       FirstDeclMatcher<CXXConstructorDecl>().match(ToTU, CtorPattern);
 3463   auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3484       FirstDeclMatcher<ClassTemplatePartialSpecializationDecl>().match(
 3487       FirstDeclMatcher<ClassTemplatePartialSpecializationDecl>().match(
 3510   auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3512   auto *ToSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3540   auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3561   auto *FromD = FirstDeclMatcher<VarDecl>().match(TU, varDecl(hasName("a")));
 3585   auto *FromDWithInit = FirstDeclMatcher<VarDecl>().match(
 3587   auto *FromDWithDef = LastDeclMatcher<VarDecl>().match(
 3611   auto *FromDWithInit = FirstDeclMatcher<VarDecl>().match(
 3613   auto *FromDWithDef = LastDeclMatcher<VarDecl>().match(
 3621   auto *ToD = FirstDeclMatcher<VarDecl>().match(
 3642   auto *FromDDeclarationOnly = FirstDeclMatcher<VarDecl>().match(
 3644   auto *FromDWithDef = LastDeclMatcher<VarDecl>().match(
 3652   auto *ToD = FirstDeclMatcher<VarDecl>().match(
 3668   auto ToProto = FirstDeclMatcher<RecordDecl>().match(ToTU, Pattern);
 3669   auto FromDef = FirstDeclMatcher<RecordDecl>().match(FromTU1, Pattern);
 3675   auto ToDef = LastDeclMatcher<RecordDecl>().match(ToTU, Pattern);
 3686   auto ToProto = FirstDeclMatcher<RecordDecl>().match(ToTU, Pattern);
 3687   auto FromDef = FirstDeclMatcher<RecordDecl>().match(FromTU1, Pattern);
 3693   auto ToDef = LastDeclMatcher<RecordDecl>().match(ToTU, Pattern);
 3704   auto FromProto = FirstDeclMatcher<RecordDecl>().match(FromTU0, Pattern);
 3705   auto FromDef = FirstDeclMatcher<RecordDecl>().match(FromTU1, Pattern);
 3713   auto ToProto = FirstDeclMatcher<RecordDecl>().match(ToTU, Pattern);
 3714   auto ToDef = LastDeclMatcher<RecordDecl>().match(ToTU, Pattern);
 3737   auto *FromClass = FirstDeclMatcher<CXXRecordDecl>().match(
 3739   auto *FromFriendClass = LastDeclMatcher<CXXRecordDecl>().match(
 3771   auto *FromD = FirstDeclMatcher<CXXRecordDecl>().match(
 3789       FirstDeclMatcher<ClassTemplateDecl>().match(FromTu, classTemplateDecl());
 3798       FirstDeclMatcher<ClassTemplateDecl>().match(ToD, classTemplateDecl());
 3799   auto *Friend = FirstDeclMatcher<FriendDecl>().match(ToD, friendDecl());
 3812     auto *FromD = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3823     auto *FromD = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 3848   auto *Fwd = FirstDeclMatcher<ClassTemplateDecl>().match(
 3857   auto *Definition = FirstDeclMatcher<ClassTemplateDecl>().match(
 3887   auto *ToDecl = FirstDeclMatcher<ClassTemplateDecl>().match(
 3895   auto *Definition = FirstDeclMatcher<ClassTemplateDecl>().match(
 3917   auto *Fwd = FirstDeclMatcher<ClassTemplateDecl>().match(
 3926   auto *Definition = FirstDeclMatcher<ClassTemplateDecl>().match(
 3946   auto *Friend = FirstDeclMatcher<FriendDecl>().match(FromTU0, friendDecl());
 3956   auto *Definition = FirstDeclMatcher<CXXRecordDecl>().match(
 3971   auto *ToFoo = FirstDeclMatcher<FunctionDecl>().match(
 3975   auto *FromFoo = FirstDeclMatcher<FunctionDecl>().match(
 4000   auto *NS = FirstDeclMatcher<NamespaceDecl>().match(
 4002   auto *Spec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 4013   auto *A0 = FirstDeclMatcher<VarDecl>().match(TU, varDecl(hasName("A")));
 4014   auto *A1 = LastDeclMatcher<VarDecl>().match(TU, varDecl(hasName("A")));
 4063   auto *Foo = FirstDeclMatcher<FunctionDecl>().match(
 4088       Import(FirstDeclMatcher<Decl>().match(FromTU, Instantiation), Lang_CXX));
 4112       Import(FirstDeclMatcher<Decl>().match(FromTU, Specialization), Lang_CXX));
 4131   auto *FromSpecD = FirstDeclMatcher<Decl>().match(FromTU, Spec);
 4135     auto *TemplateD = FirstDeclMatcher<FunctionTemplateDecl>().match(
 4148     auto *SpecD = FirstDeclMatcher<Decl>().match(TU, Spec);
 4149     auto *TemplateD = FirstDeclMatcher<FunctionTemplateDecl>().match(
 4172   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(
 4191     auto *FromD = FirstDeclMatcher<ClassTemplateDecl>().match(
 4207     FunctionDecl *FromD = FirstDeclMatcher<FunctionDecl>().match(
 4210     auto *FromCTD = FirstDeclMatcher<ClassTemplateDecl>().match(
 4233   auto *ToD = FirstDeclMatcher<TypedefNameDecl>().match(ToTU,
 4245   auto *FromD = FirstDeclMatcher<TypedefNameDecl>().match(FromTU,
 4263   auto *FromD = FirstDeclMatcher<FunctionDecl>().match(FromTU,
 4276   auto *D = FirstDeclMatcher<VarDecl>().match(ToTU, varDecl(hasName("a")));
 4301   auto *X = FirstDeclMatcher<ClassTemplateDecl>().match(
 4303   auto *Foo = FirstDeclMatcher<FunctionDecl>().match(
 4338       FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("Foo")));
 4340       FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("A")));
 4373                               .match(ToTU, varDecl(hasName("V")))
 4376       FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("A")));
 4378       FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("B")));
 4384   EXPECT_EQ(*Res.begin(), FirstDeclMatcher<FieldDecl>().match(
 4389   EXPECT_EQ(*Res.begin(), FirstDeclMatcher<FieldDecl>().match(
 4394   EXPECT_EQ(*Res.begin(), FirstDeclMatcher<VarDecl>().match(
 4409   auto *F0 = FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl());
 4410   auto *F2 = LastDeclMatcher<FunctionDecl>().match(ToTU, functionDecl());
 4429   auto *FPlus = FirstDeclMatcher<FunctionDecl>().match(
 4431   auto *FMinus = FirstDeclMatcher<FunctionDecl>().match(
 4453   auto *ToPlus = FirstDeclMatcher<FunctionDecl>().match(
 4462   auto *FromPlus = FirstDeclMatcher<FunctionDecl>().match(
 4494   auto *FriendD = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 4496   auto *Y = FirstDeclMatcher<CXXRecordDecl>().match(
 4520   auto *FriendD = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 4522   auto *Y = FirstDeclMatcher<CXXRecordDecl>().match(ToTU, cxxRecordDecl(hasName("Y")));
 4547   auto *Alias = FirstDeclMatcher<TypeAliasDecl>().match(
 4562   auto *F = FirstDeclMatcher<ClassTemplateDecl>().match(
 4585   auto *F = FirstDeclMatcher<ClassTemplateDecl>().match(
 4607   auto *F = FirstDeclMatcher<ClassTemplateDecl>().match(
 4626       FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("F")));
 4649   auto *Template = FirstDeclMatcher<ClassTemplateDecl>().match(
 4651   auto *FieldInTemplate = FirstDeclMatcher<FieldDecl>().match(
 4655   auto *Spec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 4690   auto *F = FirstDeclMatcher<FunctionTemplateDecl>().match(
 4713   auto *X = FirstDeclMatcher<CXXRecordDecl>().match(
 4715   auto *FriendD0 = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 4716   auto *FriendD1 = LastDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 4739   auto *E = FirstDeclMatcher<EnumDecl>().match(ToTU, enumDecl(hasName("E")));
 4740   auto *A = FirstDeclMatcher<EnumConstantDecl>().match(
 4778       LastDeclMatcher<NamespaceDecl>().match(ToTU, namespaceDecl(hasName("N")));
 4779   auto *A = FirstDeclMatcher<VarDecl>().match(ToTU, varDecl(hasName("A")));
 4806   auto *FromFwd = FirstDeclMatcher<CXXRecordDecl>().match(
 4808   auto *FromDef = LastDeclMatcher<CXXRecordDecl>().match(
 4837   auto *Friend = FirstDeclMatcher<FunctionTemplateDecl>().match(
 4845   auto *FromFoo = FirstDeclMatcher<FunctionTemplateDecl>().match(
 4892   auto *FromSpec = FirstDeclMatcher<ClassTemplateSpecializationDecl>().match(
 4916   auto *FromFoo = FirstDeclMatcher<FunctionDecl>().match(
 4944   auto *FromProto = FirstDeclMatcher<FunctionDecl>().match(
 4947       LastDeclMatcher<FunctionDecl>().match(FromTU, functionDecl(hasName("f")));
 4958       FirstDeclMatcher<FunctionDecl>().match(ToTU, functionDecl(hasName("f")));
 4982   auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match(
 4994   auto *FromF = FirstDeclMatcher<CXXMethodDecl>().match(
 5004   auto *FromOK = FirstDeclMatcher<CXXMethodDecl>().match(
 5035   auto *FromFRD = FirstDeclMatcher<CXXRecordDecl>().match(
 5037   auto *FromA = FirstDeclMatcher<CXXRecordDecl>().match(
 5039   auto *FromB = FirstDeclMatcher<CXXRecordDecl>().match(
 5041   auto *FromNS = FirstDeclMatcher<NamespaceDecl>().match(
 5077       FirstDeclMatcher<ClassTemplateDecl>().match(
 5083       FirstDeclMatcher<FriendDecl>().match(
 5088       Importer->getImportDeclErrorIfAny(FirstDeclMatcher<CXXRecordDecl>().match(
 5093       Importer->getImportDeclErrorIfAny(FirstDeclMatcher<CXXRecordDecl>().match(
 5108   auto *FromX = FirstDeclMatcher<NamespaceDecl>().match(
 5119   auto *FromF = FirstDeclMatcher<FunctionDecl>().match(
 5129   auto *FromOK = FirstDeclMatcher<FunctionDecl>().match(
 5154     auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match(
 5166   auto *ToXDef = FirstDeclMatcher<CXXRecordDecl>().match(
 5174   auto *ToXFwd = FirstDeclMatcher<CXXRecordDecl>().match(
 5190     auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match(
 5237   auto *FromFooA = FirstDeclMatcher<FunctionDecl>().match(FromTU, MatchFooA);
 5238   auto *FromFooB = FirstDeclMatcher<FunctionDecl>().match(FromTU, MatchFooB);
 5239   auto *FromFooC = FirstDeclMatcher<FunctionDecl>().match(FromTU, MatchFooC);
 5265       FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass();
 5284       FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass();
 5304   FunctionDecl *FromF = FirstDeclMatcher<FunctionDecl>().match(
 5326   auto *ToClassProto = FirstDeclMatcher<ClassTemplateDecl>().match(
 5328   auto *ToClassDef = LastDeclMatcher<ClassTemplateDecl>().match(
 5337   auto *FromClassProto = FirstDeclMatcher<ClassTemplateDecl>().match(
 5339   auto *FromClassDef = LastDeclMatcher<ClassTemplateDecl>().match(
 5376   auto *ToX = FirstDeclMatcher<CXXRecordDecl>().match(
 5391   auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match(
 5420     auto *ToTypedef = FirstDeclMatcher<TypedefDecl>().match(
 5424     auto *FromTypedef = FirstDeclMatcher<TypedefDecl>().match(
 5444     auto *FromD = FirstDeclMatcher<CXXRecordDecl>().match(
 5466   auto *FromX = FirstDeclMatcher<CXXRecordDecl>().match(
 5469   auto *Constr1 = FirstDeclMatcher<CXXConstructorDecl>().match(
 5471   auto *Constr2 = LastDeclMatcher<CXXConstructorDecl>().match(
 5502       FirstDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass();
 5504       LastDeclMatcher<LambdaExpr>().match(FromTU, Pattern)->getLambdaClass();
 5522       FirstDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern);
 5524       LastDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern);
 5543       FirstDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern);
 5545       LastDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern);
 5563   auto FromF = FirstDeclMatcher<FunctionDecl>().match(
 5587   auto FromF = FirstDeclMatcher<FunctionDecl>().match(
tools/clang/unittests/AST/ASTImporterVisibilityTest.cpp
  104     auto *FromD0 = FirstDeclMatcher<DeclTy>().match(FromTu, Pattern);
  105     auto *FromD1 = LastDeclMatcher<DeclTy>().match(FromTu, Pattern);
  195     auto *ToD0 = FirstDeclMatcher<DeclTy>().match(ToTu, getPattern());
  196     auto *FromD1 = FirstDeclMatcher<DeclTy>().match(FromTu, getPattern());
  215     auto *FromD0 = FirstDeclMatcher<DeclTy>().match(FromTu0, getPattern());
  216     auto *FromD1 = FirstDeclMatcher<DeclTy>().match(FromTu1, getPattern());
  233     auto *ToF0 = FirstDeclMatcher<DeclTy>().match(ToTu, getPattern());
  234     auto *FromF1 = FirstDeclMatcher<DeclTy>().match(FromTu, getPattern());
  255     auto *FromF0 = FirstDeclMatcher<DeclTy>().match(FromTu0, getPattern());
  256     auto *FromF1 = FirstDeclMatcher<DeclTy>().match(FromTu1, getPattern());
tools/clang/unittests/AST/StructuralEquivalenceTest.cpp
   37     NodeType *D0 = FirstDeclMatcher<NodeType>().match(
   39     NodeType *D1 = FirstDeclMatcher<NodeType>().match(
  195       LastDeclMatcher<NamespaceDecl>().match(get<1>(Decls), namespaceDecl());
  196   ClassTemplateDecl *TD = LastDeclMatcher<ClassTemplateDecl>().match(
  210   CXXRecordDecl *RD = FirstDeclMatcher<CXXRecordDecl>().match(
  213       FirstDeclMatcher<FieldDecl>().match(get<1>(Decls), fieldDecl(hasName("a")));
  646       FirstDeclMatcher<FieldDecl>().match(TU, fieldDecl(hasName("entry0")));
  648       FirstDeclMatcher<FieldDecl>().match(TU, fieldDecl(hasName("entry1")));
  672   auto *A = FirstDeclMatcher<IndirectFieldDecl>().match(
  676   auto *B = FirstDeclMatcher<IndirectFieldDecl>().match(
  705   auto *A = FirstDeclMatcher<IndirectFieldDecl>().match(
  711   auto *A1 = FirstDeclMatcher<IndirectFieldDecl>().match(
  717       FirstDeclMatcher<RecordDecl>().match(TU, recordDecl(hasName("X")));
  719       FirstDeclMatcher<RecordDecl>().match(TU1, recordDecl(hasName("X")));
  746       FirstDeclMatcher<FieldDecl>().match(FromTU, fieldDecl(hasName("entry1")));
  750       FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry0")));
  752       FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("A")));
  863   CXXConstructorDecl *First = FirstDeclMatcher<CXXConstructorDecl>().match(
  865   CXXConstructorDecl *Second = FirstDeclMatcher<CXXConstructorDecl>().match(
  873   CXXConstructorDecl *First = FirstDeclMatcher<CXXConstructorDecl>().match(
  875   CXXConstructorDecl *Second = FirstDeclMatcher<CXXConstructorDecl>().match(
  930   CXXConstructorDecl *First = FirstDeclMatcher<CXXConstructorDecl>().match(
  932   CXXConstructorDecl *Second = FirstDeclMatcher<CXXConstructorDecl>().match(
  940   CXXConstructorDecl *First = FirstDeclMatcher<CXXConstructorDecl>().match(
  942   CXXConstructorDecl *Second = FirstDeclMatcher<CXXConstructorDecl>().match(
 1283     NodeType *D0 = FirstDeclMatcher<NodeType>().match(get<0>(TU), M);
 1284     NodeType *D1 = FirstDeclMatcher<NodeType>().match(get<1>(TU), M);