Home | History | Annotate | Download | only in Serialization

Lines Matching refs:Existing

200     /// Class used to capture the result of searching for an existing
208 NamedDecl *Existing = nullptr;
216 FindExistingResult(ASTReader &Reader, NamedDecl *New, NamedDecl *Existing,
219 : Reader(Reader), New(New), Existing(Existing), AddResult(true),
224 : Reader(Other.Reader), New(Other.New), Existing(Other.Existing),
238 operator NamedDecl*() const { return Existing; }
241 operator T*() const { return dyn_cast_or_null<T>(Existing); }
418 void mergeRedeclarable(Redeclarable<T> *D, T *Existing,
428 RedeclarableTemplateDecl *Existing,
1383 if (MSGuidDecl *Existing = Reader.getContext().MSGuidDecls.GetOrInsertNode(D))
1384 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl());
1393 if (TemplateParamObjectDecl *Existing =
1395 Reader.getContext().setPrimaryMergedDecl(D, Existing->getCanonicalDecl());
2200 // This declaration might be a definition. Merge with any existing
2523 if (auto *Existing = Redecl.getKnownMergeTarget())
2524 // We already know of an existing declaration we should merge with.
2525 mergeRedeclarable(D, cast<T>(Existing), Redecl, TemplatePatternID);
2527 if (T *Existing = ExistingRes)
2528 mergeRedeclarable(D, Existing, Redecl, TemplatePatternID);
2542 RedeclarableTemplateDecl *Existing,
2545 auto *ExistingPattern = Existing->getTemplatedDecl();
2551 // Merge with any existing definition.
2584 void ASTDeclReader::mergeRedeclarable(Redeclarable<T> *DBase, T *Existing,
2588 T *ExistingCanon = Existing->getCanonicalDecl();
2595 // of the existing declaration, so that this declaration has the
2673 if (T *Existing = ExistingRes)
2675 Existing->getCanonicalDecl());
3313 if (!AddResult || Existing)
3426 FindExistingResult Result(Reader, D, /*Existing=*/nullptr,
3440 // Go on to check in other places in case an existing typedef name
3447 if (auto *Existing = getAnonymousDeclForMerging(
3449 if (isSameEntity(Existing, D))
3450 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
3480 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage))
3481 if (isSameEntity(Existing, D))
3482 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
3488 if (NamedDecl *Existing = getDeclForMerging(*I, TypedefNameForLinkage))
3489 if (isSameEntity(Existing, D))
3490 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber,
3508 return FindExistingResult(Reader, D, /*Existing=*/nullptr,
4302 ObjCCategoryDecl *&Existing = NameCategoryMap[Cat->getDeclName()];
4303 if (Existing &&
4304 Reader.getOwningModuleFile(Existing)
4319 Reader.Diag(Existing->getLocation(), diag::note_previous_definition);
4320 } else if (!Existing) {
4322 Existing = Cat;