Lines Matching defs:Existing
218 NamedDecl *Existing = nullptr;
226 FindExistingResult(ASTReader &Reader, NamedDecl *New, NamedDecl *Existing,
229 : Reader(Reader), New(New), Existing(Existing), AddResult(true),
234 : Reader(Other.Reader), New(Other.New), Existing(Other.Existing),
248 operator NamedDecl*() const { return Existing; }
251 operator T*() const { return dyn_cast_or_null<T>(Existing); }
437 void mergeRedeclarable(Redeclarable<T> *D, T *Existing,
446 RedeclarableTemplateDecl *Existing,
930 FunctionDecl *Existing = nullptr;
1009 Existing = ExistingInfo->getFunction();
1118 if (Existing)
1119 mergeRedeclarable(FD, Existing, Redecl);
1126 auto *Existing = cast_or_null<FunctionDecl>(Redecl.getKnownMergeTarget());
1127 RedeclarableResult NewRedecl(Existing ? F(Existing) : nullptr,
1558 if (MSGuidDecl *Existing = Reader.getContext().MSGuidDecls.GetOrInsertNode(D))
1559 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl());
1568 if (UnnamedGlobalConstantDecl *Existing =
1570 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl());
1579 if (TemplateParamObjectDecl *Existing =
1581 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl());
2840 if (auto *Existing = Redecl.getKnownMergeTarget())
2842 mergeRedeclarable(D, cast<T>(Existing), Redecl);
2844 if (T *Existing = ExistingRes)
2845 mergeRedeclarable(D, Existing, Redecl);
2869 if (auto *Existing = Redecl.getKnownMergeTarget())
2871 mergeRedeclarable(D, cast<TagDecl>(Existing), Redecl);
2903 RedeclarableTemplateDecl *Existing,
2906 auto *ExistingPattern = Existing->getTemplatedDecl();
2945 void ASTDeclReader::mergeRedeclarable(Redeclarable<T> *DBase, T *Existing,
2948 T *ExistingCanon = Existing->getCanonicalDecl();
3023 if (T *Existing = ExistingRes)
3025 Existing->getCanonicalDecl());
3303 if (!AddResult || Existing)
3421 FindExistingResult Result(Reader, D, /*Existing=*/nullptr,
3443 if (auto *Existing = getAnonymousDeclForMerging(
3445 if (C.isSameEntity(Existing, D))
3446 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
3476 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage))
3477 if (C.isSameEntity(Existing, D))
3478 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
3484 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage))
3485 if (C.isSameEntity(Existing, D))
3486 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
3507 return FindExistingResult(Reader, D, /*Existing=*/nullptr,
4412 ObjCCategoryDecl *&Existing = NameCategoryMap[Cat->getDeclName()];
4413 if (Existing && Reader.getOwningModuleFile(Existing) !=
4417 Cat->getASTContext(), Existing->getASTContext(),
4422 if (!Ctx.IsEquivalent(Cat, Existing)) {
4426 Reader.Diag(Existing->getLocation(),
4429 } else if (!Existing) {
4431 Existing = Cat;