Lines Matching refs:Existing

209       NamedDecl *Existing = nullptr;  member in clang::ASTDeclReader::FindExistingResult
217 FindExistingResult(ASTReader &Reader, NamedDecl *New, NamedDecl *Existing, in FindExistingResult() argument
220 : Reader(Reader), New(New), Existing(Existing), AddResult(true), in FindExistingResult()
225 : Reader(Other.Reader), New(Other.New), Existing(Other.Existing), in FindExistingResult()
239 operator NamedDecl*() const { return Existing; } in operator NamedDecl*()
242 operator T*() const { return dyn_cast_or_null<T>(Existing); } in operator T*()
422 void mergeRedeclarable(Redeclarable<T> *D, T *Existing,
432 RedeclarableTemplateDecl *Existing,
1478 if (MSGuidDecl *Existing = Reader.getContext().MSGuidDecls.GetOrInsertNode(D)) in VisitMSGuidDecl() local
1479 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitMSGuidDecl()
1488 if (UnnamedGlobalConstantDecl *Existing = in VisitUnnamedGlobalConstantDecl() local
1490 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitUnnamedGlobalConstantDecl()
1499 if (TemplateParamObjectDecl *Existing = in VisitTemplateParamObjectDecl() local
1501 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitTemplateParamObjectDecl()
2649 if (auto *Existing = Redecl.getKnownMergeTarget()) in mergeRedeclarable() local
2651 mergeRedeclarable(D, cast<T>(Existing), Redecl, TemplatePatternID); in mergeRedeclarable()
2653 if (T *Existing = ExistingRes) in mergeRedeclarable() local
2654 mergeRedeclarable(D, Existing, Redecl, TemplatePatternID); in mergeRedeclarable()
2668 RedeclarableTemplateDecl *Existing, in mergeTemplatePattern() argument
2671 auto *ExistingPattern = Existing->getTemplatedDecl(); in mergeTemplatePattern()
2710 void ASTDeclReader::mergeRedeclarable(Redeclarable<T> *DBase, T *Existing, in mergeRedeclarable() argument
2714 T *ExistingCanon = Existing->getCanonicalDecl(); in mergeRedeclarable()
2799 if (T *Existing = ExistingRes) in mergeMergeable() local
2801 Existing->getCanonicalDecl()); in mergeMergeable()
3074 if (!AddResult || Existing) in ~FindExistingResult()
3214 if (auto *Existing = getAnonymousDeclForMerging( in findExisting() local
3216 if (C.isSameEntity(Existing, D)) in findExisting()
3217 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
3247 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage)) in findExisting() local
3248 if (C.isSameEntity(Existing, D)) in findExisting()
3249 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
3255 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage)) in findExisting() local
3256 if (C.isSameEntity(Existing, D)) in findExisting()
3257 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
4085 ObjCCategoryDecl *&Existing = NameCategoryMap[Cat->getDeclName()]; in add() local
4086 if (Existing && in add()
4087 Reader.getOwningModuleFile(Existing) in add()
4102 Reader.Diag(Existing->getLocation(), diag::note_previous_definition); in add()
4103 } else if (!Existing) { in add()
4105 Existing = Cat; in add()