Lines Matching full:existing
196 // Add the new declaration before the existing declaration. in InsertDeclAfter()
202 // Add new declaration after the existing declaration. in InsertDeclAfter()
275 /// existing declaration.
276 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations() argument
278 if (Existing == New) in compareDeclarations()
282 if (Existing->getKind() != New->getKind()) in compareDeclarations()
286 if (Existing->getCanonicalDecl() == New->getCanonicalDecl()) { in compareDeclarations()
289 if (Existing->isFromASTFile() && New->isFromASTFile()) in compareDeclarations()
293 Decl *MostRecent = Existing->getMostRecentDecl(); in compareDeclarations()
294 if (Existing == MostRecent) in compareDeclarations()
300 // If the existing declaration is somewhere in the previous declaration in compareDeclarations()
303 if (RD == Existing) in compareDeclarations()
347 // If the existing declaration is not visible in translation unit scope, in tryAddTopLevelDecl()
361 // See whether this declaration is identical to any existing declarations. in tryAddTopLevelDecl()