Lines Matching defs:OldD
1696 bool NamedDecl::declarationReplaces(NamedDecl *OldD, bool IsKnownNewer) const {
1697 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch");
1701 if (OldD->isFromASTFile() && isFromASTFile())
1705 if (OldD->getKind() != getKind())
1721 OldD->getDeclContext()->getRedeclContext()))
1730 cast<UsingDecl>(OldD)->getQualifier());
1736 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier());
1740 if (getCanonicalDecl() != OldD->getCanonicalDecl())
1746 // Check whether this is actually newer than OldD. We want to keep the
1748 // OldD is usually the previous declaration.
1750 if (D == OldD)
1753 // If we reach the canonical declaration, then OldD is not actually older