Home | History | Annotate | Download | only in Serialization

Lines Matching defs:Existing

151     /// \brief Class used to capture the result of searching for an existing
159 NamedDecl *Existing;
166 : Reader(Reader), New(nullptr), Existing(nullptr), AddResult(false) {}
168 FindExistingResult(ASTReader &Reader, NamedDecl *New, NamedDecl *Existing)
169 : Reader(Reader), New(New), Existing(Existing), AddResult(true) { }
172 : Reader(Other.Reader), New(Other.New), Existing(Other.Existing),
184 operator NamedDecl*() const { return Existing; }
187 operator T*() const { return dyn_cast_or_null<T>(Existing); }
311 void mergeRedeclarable(Redeclarable<T> *D, T *Existing,
319 RedeclarableTemplateDecl *Existing,
1411 // definition is no longer really a definition. Note that the pre-existing
1749 // This declaration might be a definition. Merge with any existing
2017 if (T *Existing = ExistingRes)
2018 mergeRedeclarable(D, Existing, Redecl, TemplatePatternID);
2032 RedeclarableTemplateDecl *Existing,
2035 auto *ExistingPattern = Existing->getTemplatedDecl();
2052 void ASTDeclReader::mergeRedeclarable(Redeclarable<T> *DBase, T *Existing,
2056 T *ExistingCanon = Existing->getCanonicalDecl();
2060 // of the existing declaration, so that this declaration has the
2124 if (T *Existing = ExistingRes)
2126 Existing->getCanonicalDecl());
2387 if (!AddResult || Existing)
2404 FindExistingResult Result(Reader, D, /*Existing=*/nullptr);
2464 return FindExistingResult(Reader, D, /*Existing=*/nullptr);
3049 ObjCCategoryDecl *&Existing = NameCategoryMap[Cat->getDeclName()];
3050 if (Existing &&
3051 Reader.getOwningModuleFile(Existing)
3066 Reader.Diag(Existing->getLocation(), diag::note_previous_definition);
3067 } else if (!Existing) {
3069 Existing = Cat;