Lines Matching refs:OldD
1424 bool NamedDecl::declarationReplaces(NamedDecl *OldD) const { in declarationReplaces()
1425 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch"); in declarationReplaces()
1432 cast<UsingDirectiveDecl>(OldD)->getNominatedNamespace() in declarationReplaces()
1438 return FD->getPreviousDecl() == OldD; in declarationReplaces()
1444 = dyn_cast<FunctionTemplateDecl>(OldD)) in declarationReplaces()
1453 if (isa<ObjCInterfaceDecl>(this) && isa<ObjCCompatibleAliasDecl>(OldD)) in declarationReplaces()
1456 if (isa<UsingShadowDecl>(this) && isa<UsingShadowDecl>(OldD)) in declarationReplaces()
1458 cast<UsingShadowDecl>(OldD)->getTargetDecl(); in declarationReplaces()
1460 if (isa<UsingDecl>(this) && isa<UsingDecl>(OldD)) { in declarationReplaces()
1465 cast<UsingDecl>(OldD)->getQualifier()); in declarationReplaces()
1469 isa<UnresolvedUsingValueDecl>(OldD)) { in declarationReplaces()
1474 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier()); in declarationReplaces()
1480 if ((isa<TypedefNameDecl>(this) && isa<ObjCInterfaceDecl>(OldD)) || in declarationReplaces()
1481 (isa<ObjCInterfaceDecl>(this) && isa<TypedefNameDecl>(OldD))) in declarationReplaces()
1489 return this->getKind() == OldD->getKind() && in declarationReplaces()
1491 OldD->getDeclContext()->getRedeclContext()); in declarationReplaces()