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*()
428 void mergeRedeclarable(Redeclarable<T> *D, T *Existing,
437 RedeclarableTemplateDecl *Existing,
898 FunctionDecl *Existing = nullptr; in VisitFunctionDecl() local
988 Existing = ExistingInfo->getFunction(); in VisitFunctionDecl()
1084 if (Existing) in VisitFunctionDecl()
1085 mergeRedeclarable(FD, Existing, Redecl); in VisitFunctionDecl()
1092 auto *Existing = cast_or_null<FunctionDecl>(Redecl.getKnownMergeTarget()); in VisitFunctionDecl() local
1093 RedeclarableResult NewRedecl(Existing ? F(Existing) : nullptr, in VisitFunctionDecl()
1526 if (MSGuidDecl *Existing = Reader.getContext().MSGuidDecls.GetOrInsertNode(D)) in VisitMSGuidDecl() local
1527 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitMSGuidDecl()
1536 if (UnnamedGlobalConstantDecl *Existing = in VisitUnnamedGlobalConstantDecl() local
1538 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitUnnamedGlobalConstantDecl()
1547 if (TemplateParamObjectDecl *Existing = in VisitTemplateParamObjectDecl() local
1549 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl()); in VisitTemplateParamObjectDecl()
2736 if (auto *Existing = Redecl.getKnownMergeTarget()) in mergeRedeclarable() local
2738 mergeRedeclarable(D, cast<T>(Existing), Redecl); in mergeRedeclarable()
2740 if (T *Existing = ExistingRes) in mergeRedeclarable() local
2741 mergeRedeclarable(D, Existing, Redecl); in mergeRedeclarable()
2764 RedeclarableTemplateDecl *Existing, in mergeTemplatePattern() argument
2767 auto *ExistingPattern = Existing->getTemplatedDecl(); in mergeTemplatePattern()
2806 void ASTDeclReader::mergeRedeclarable(Redeclarable<T> *DBase, T *Existing, in mergeRedeclarable() argument
2809 T *ExistingCanon = Existing->getCanonicalDecl(); in mergeRedeclarable()
2891 if (T *Existing = ExistingRes) in mergeMergeable() local
2893 Existing->getCanonicalDecl()); in mergeMergeable()
3163 if (!AddResult || Existing) in ~FindExistingResult()
3303 if (auto *Existing = getAnonymousDeclForMerging( in findExisting() local
3305 if (C.isSameEntity(Existing, D)) in findExisting()
3306 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
3336 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage)) in findExisting() local
3337 if (C.isSameEntity(Existing, D)) in findExisting()
3338 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
3344 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage)) in findExisting() local
3345 if (C.isSameEntity(Existing, D)) in findExisting()
3346 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
4183 ObjCCategoryDecl *&Existing = NameCategoryMap[Cat->getDeclName()]; in add() local
4184 if (Existing && in add()
4185 Reader.getOwningModuleFile(Existing) in add()
4200 Reader.Diag(Existing->getLocation(), diag::note_previous_definition); in add()
4201 } else if (!Existing) { in add()
4203 Existing = Cat; in add()