Lines Matching refs:Redecl

428     void mergeRedeclarable(Redeclarable<T> *D, RedeclarableResult &Redecl);
430 void mergeLambda(CXXRecordDecl *D, RedeclarableResult &Redecl,
434 RedeclarableResult &Redecl);
438 RedeclarableResult &Redecl);
719 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTypedefNameDecl() local
732 return Redecl; in VisitTypedefNameDecl()
736 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypedefDecl() local
737 mergeRedeclarable(TD, Redecl); in VisitTypedefDecl()
741 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypeAliasDecl() local
746 mergeRedeclarable(TD, Redecl); in VisitTypeAliasDecl()
750 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTagDecl() local
782 mergeRedeclarable(TD, Redecl); in VisitTagDecl()
783 return Redecl; in VisitTagDecl()
842 RedeclarableResult Redecl = VisitTagDecl(RD); in VisitRecordDeclImpl() local
859 return Redecl; in VisitRecordDeclImpl()
928 RedeclarableResult Redecl = VisitRedeclarable(FD); in VisitFunctionDecl() local
1119 mergeRedeclarable(FD, Existing, Redecl); in VisitFunctionDecl()
1125 auto merge = [this, &Redecl, FD](auto &&F) { in VisitFunctionDecl()
1126 auto *Existing = cast_or_null<FunctionDecl>(Redecl.getKnownMergeTarget()); in VisitFunctionDecl()
1128 Redecl.getFirstID(), Redecl.isKeyDecl()); in VisitFunctionDecl()
1139 mergeRedeclarable(FD, Redecl); in VisitFunctionDecl()
1286 RedeclarableResult Redecl = VisitRedeclarable(ID); in VisitObjCInterfaceDecl() local
1289 mergeRedeclarable(ID, Redecl); in VisitObjCInterfaceDecl()
1397 RedeclarableResult Redecl = VisitRedeclarable(PD); in VisitObjCProtocolDecl() local
1399 mergeRedeclarable(PD, Redecl); in VisitObjCProtocolDecl()
1598 RedeclarableResult Redecl = VisitRedeclarable(VD); in VisitVarDeclImpl() local
1668 mergeRedeclarable(VD, Redecl); in VisitVarDeclImpl()
1679 mergeRedeclarable(VD, Redecl); in VisitVarDeclImpl()
1684 return Redecl; in VisitVarDeclImpl()
1827 RedeclarableResult Redecl = VisitRedeclarable(D); in VisitNamespaceDecl() local
1841 if (Redecl.getFirstID() == ThisDeclID) in VisitNamespaceDecl()
1844 mergeRedeclarable(D, Redecl); in VisitNamespaceDecl()
1866 RedeclarableResult Redecl = VisitRedeclarable(D); in VisitNamespaceAliasDecl() local
1872 mergeRedeclarable(D, Redecl); in VisitNamespaceAliasDecl()
1908 RedeclarableResult Redecl = VisitRedeclarable(D); in VisitUsingShadowDecl() local
1916 mergeRedeclarable(D, Redecl); in VisitUsingShadowDecl()
2195 RedeclarableResult Redecl = VisitRecordDeclImpl(D); in VisitCXXRecordDeclImpl() local
2213 mergeRedeclarable(D, Redecl); in VisitCXXRecordDeclImpl()
2237 mergeRedeclarable(D, Redecl); in VisitCXXRecordDeclImpl()
2244 mergeLambda(D, Redecl, LambdaContext, IndexInLambdaContext); in VisitCXXRecordDeclImpl()
2268 return Redecl; in VisitCXXRecordDeclImpl()
2403 RedeclarableResult Redecl = VisitRedeclarable(D); in VisitRedeclarableTemplateDecl() local
2416 if (ThisDeclID == Redecl.getFirstID()) { in VisitRedeclarableTemplateDecl()
2429 return Redecl; in VisitRedeclarableTemplateDecl()
2433 RedeclarableResult Redecl = VisitRedeclarableTemplateDecl(D); in VisitClassTemplateDecl() local
2434 mergeRedeclarableTemplate(D, Redecl); in VisitClassTemplateDecl()
2436 if (ThisDeclID == Redecl.getFirstID()) { in VisitClassTemplateDecl()
2461 RedeclarableResult Redecl = VisitRedeclarableTemplateDecl(D); in VisitVarTemplateDecl() local
2462 mergeRedeclarableTemplate(D, Redecl); in VisitVarTemplateDecl()
2464 if (ThisDeclID == Redecl.getFirstID()) { in VisitVarTemplateDecl()
2476 RedeclarableResult Redecl = VisitCXXRecordDeclImpl(D); in VisitClassTemplateSpecializationDeclImpl() local
2518 mergeRedeclarable<TagDecl>(D, CanonSpec, Redecl); in VisitClassTemplateSpecializationDeclImpl()
2544 return Redecl; in VisitClassTemplateSpecializationDeclImpl()
2554 RedeclarableResult Redecl = VisitClassTemplateSpecializationDeclImpl(D); in VisitClassTemplatePartialSpecializationDecl() local
2557 if (ThisDeclID == Redecl.getFirstID()) { in VisitClassTemplatePartialSpecializationDecl()
2565 RedeclarableResult Redecl = VisitRedeclarableTemplateDecl(D); in VisitFunctionTemplateDecl() local
2567 if (ThisDeclID == Redecl.getFirstID()) { in VisitFunctionTemplateDecl()
2620 RedeclarableResult Redecl = VisitVarDeclImpl(D); in VisitVarTemplateSpecializationDeclImpl() local
2636 mergeRedeclarable<VarDecl>(D, CanonSpec, Redecl); in VisitVarTemplateSpecializationDeclImpl()
2640 return Redecl; in VisitVarTemplateSpecializationDeclImpl()
2653 RedeclarableResult Redecl = VisitVarTemplateSpecializationDeclImpl(D); in VisitVarTemplatePartialSpecializationDecl() local
2656 if (ThisDeclID == Redecl.getFirstID()) { in VisitVarTemplatePartialSpecializationDecl()
2729 RedeclarableResult Redecl = VisitRedeclarableTemplateDecl(D); in VisitTypeAliasTemplateDecl() local
2730 mergeRedeclarableTemplate(D, Redecl); in VisitTypeAliasTemplateDecl()
2829 RedeclarableResult &Redecl) { in mergeRedeclarable() argument
2840 if (auto *Existing = Redecl.getKnownMergeTarget()) in mergeRedeclarable()
2842 mergeRedeclarable(D, cast<T>(Existing), Redecl); in mergeRedeclarable()
2845 mergeRedeclarable(D, Existing, Redecl); in mergeRedeclarable()
2854 void ASTDeclReader::mergeLambda(CXXRecordDecl *D, RedeclarableResult &Redecl, in mergeLambda() argument
2859 return mergeRedeclarable(D, Redecl); in mergeLambda()
2869 if (auto *Existing = Redecl.getKnownMergeTarget()) in mergeLambda()
2871 mergeRedeclarable(D, cast<TagDecl>(Existing), Redecl); in mergeLambda()
2878 mergeRedeclarable(D, cast<TagDecl>(Slot), Redecl); in mergeLambda()
2884 RedeclarableResult &Redecl) { in mergeRedeclarableTemplate() argument
2885 mergeRedeclarable(D, Redecl); in mergeRedeclarableTemplate()
2946 RedeclarableResult &Redecl) { in mergeRedeclarable() argument
2963 Redecl.isKeyDecl()); in mergeRedeclarable()
2966 if (Redecl.isKeyDecl()) in mergeRedeclarable()
2967 Reader.KeyDecls[ExistingCanon].push_back(Redecl.getFirstID()); in mergeRedeclarable()
4517 for (auto *Redecl = MostRecent; Redecl && !Found; in forAllLaterRedecls() local
4518 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
4519 Found = (Redecl == D); in forAllLaterRedecls()
4523 for (auto *Redecl = MostRecent; Redecl != D; in forAllLaterRedecls() local
4524 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
4525 F(Redecl); in forAllLaterRedecls()