Lines Matching refs:Existing

221       NamedDecl *Existing = nullptr;  member in clang::ASTDeclReader::FindExistingResult
229 FindExistingResult(ASTReader &Reader, NamedDecl *New, NamedDecl *Existing, in FindExistingResult() argument
232 : Reader(Reader), New(New), Existing(Existing), AddResult(true), in FindExistingResult()
237 : Reader(Other.Reader), New(Other.New), Existing(Other.Existing), in FindExistingResult()
251 operator NamedDecl*() const { return Existing; } in operator NamedDecl*()
254 operator T*() const { return dyn_cast_or_null<T>(Existing); } in operator T*()
442 void mergeRedeclarable(Redeclarable<T> *D, T *Existing,
451 RedeclarableTemplateDecl *Existing,
944 FunctionDecl *Existing = nullptr; in VisitFunctionDecl() local
1023 Existing = ExistingInfo->getFunction(); in VisitFunctionDecl()
1125 if (Existing) in VisitFunctionDecl()
1126 mergeRedeclarable(FD, Existing, Redecl); in VisitFunctionDecl()
1133 auto *Existing = cast_or_null<FunctionDecl>(Redecl.getKnownMergeTarget()); in VisitFunctionDecl() local
1134 RedeclarableResult NewRedecl(Existing ? F(Existing) : nullptr, in VisitFunctionDecl()
1566 if (MSGuidDecl *Existing = Reader.getContext().MSGuidDecls.GetOrInsertNode(D)) in VisitMSGuidDecl() local
1567 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitMSGuidDecl()
1576 if (UnnamedGlobalConstantDecl *Existing = in VisitUnnamedGlobalConstantDecl() local
1578 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitUnnamedGlobalConstantDecl()
1587 if (TemplateParamObjectDecl *Existing = in VisitTemplateParamObjectDecl() local
1589 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitTemplateParamObjectDecl()
2854 if (auto *Existing = Redecl.getKnownMergeTarget()) in mergeRedeclarable() local
2856 mergeRedeclarable(D, cast<T>(Existing), Redecl); in mergeRedeclarable()
2858 if (T *Existing = ExistingRes) in mergeRedeclarable() local
2859 mergeRedeclarable(D, Existing, Redecl); in mergeRedeclarable()
2883 if (auto *Existing = Redecl.getKnownMergeTarget()) in mergeLambda() local
2885 mergeRedeclarable(D, cast<TagDecl>(Existing), Redecl); in mergeLambda()
2917 RedeclarableTemplateDecl *Existing, in mergeTemplatePattern() argument
2920 auto *ExistingPattern = Existing->getTemplatedDecl(); in mergeTemplatePattern()
2959 void ASTDeclReader::mergeRedeclarable(Redeclarable<T> *DBase, T *Existing, in mergeRedeclarable() argument
2962 T *ExistingCanon = Existing->getCanonicalDecl(); in mergeRedeclarable()
3044 if (T *Existing = ExistingRes) in mergeMergeable() local
3046 Existing->getCanonicalDecl()); in mergeMergeable()
3328 if (!AddResult || Existing) in ~FindExistingResult()
3468 if (auto *Existing = getAnonymousDeclForMerging( in findExisting() local
3470 if (C.isSameEntity(Existing, D)) in findExisting()
3471 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
3501 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage)) in findExisting() local
3502 if (C.isSameEntity(Existing, D)) in findExisting()
3503 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
3509 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage)) in findExisting() local
3510 if (C.isSameEntity(Existing, D)) in findExisting()
3511 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
4348 ObjCCategoryDecl *&Existing = NameCategoryMap[Cat->getDeclName()]; in add() local
4349 if (Existing && Reader.getOwningModuleFile(Existing) != in add()
4353 Cat->getASTContext(), Existing->getASTContext(), in add()
4358 if (!Ctx.IsEquivalent(Cat, Existing)) { in add()
4362 Reader.Diag(Existing->getLocation(), in add()
4365 } else if (!Existing) { in add()
4367 Existing = Cat; in add()