Searched refs:OldD (Results 1 – 6 of 6) sorted by relevance
127 if (NamedDecl *OldD = getAsDecl()) { in HandleRedeclaration() local128 if (!D->declarationReplaces(OldD)) in HandleRedeclaration()138 NamedDecl *OldD = *OD; in HandleRedeclaration() local139 if (D->declarationReplaces(OldD)) { in HandleRedeclaration()154 if (NamedDecl *OldD = getAsDecl()) { in AddSubsequentDecl() local156 VT->push_back(OldD); in AddSubsequentDecl()
178 bool declarationReplaces(NamedDecl *OldD) const;
891 bool NamedDecl::declarationReplaces(NamedDecl *OldD) const { in declarationReplaces()892 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch"); in declarationReplaces()899 cast<UsingDirectiveDecl>(OldD)->getNominatedNamespace() in declarationReplaces()905 return FD->getPreviousDeclaration() == OldD; in declarationReplaces()911 = dyn_cast<FunctionTemplateDecl>(OldD)) in declarationReplaces()919 if (isa<ObjCInterfaceDecl>(this) && isa<ObjCCompatibleAliasDecl>(OldD)) in declarationReplaces()922 if (isa<UsingShadowDecl>(this) && isa<UsingShadowDecl>(OldD)) in declarationReplaces()924 cast<UsingShadowDecl>(OldD)->getTargetDecl(); in declarationReplaces()926 if (isa<UsingDecl>(this) && isa<UsingDecl>(OldD)) { in declarationReplaces()931 cast<UsingDecl>(OldD)->getQualifier()); in declarationReplaces()[all …]
581 NamedDecl *OldD = *I; in CheckOverload() local584 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload()591 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload()602 if (FunctionTemplateDecl *OldT = dyn_cast<FunctionTemplateDecl>(OldD)) { in CheckOverload()612 } else if (FunctionDecl *OldF = dyn_cast<FunctionDecl>(OldD)) { in CheckOverload()622 } else if (isa<UsingDecl>(OldD)) { in CheckOverload()626 } else if (isa<TagDecl>(OldD)) { in CheckOverload()628 } else if (isa<UnresolvedUsingValueDecl>(OldD)) { in CheckOverload()
1344 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local1345 if (OldD->getLocation().isValid()) in MergeTypedefNameDecl()1346 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()1565 bool Sema::MergeFunctionDecl(FunctionDecl *New, Decl *OldD) { in MergeFunctionDecl() argument1569 = dyn_cast<FunctionTemplateDecl>(OldD)) in MergeFunctionDecl()1572 Old = dyn_cast<FunctionDecl>(OldD); in MergeFunctionDecl()1574 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) { in MergeFunctionDecl()1585 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
5738 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local5739 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration()5740 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()