Searched refs:OldD (Results 1 – 6 of 6) sorted by relevance
90 if (NamedDecl *OldD = getAsDecl()) in setHasExternalDecls() local91 VT->push_back(OldD); in setHasExternalDecls()166 if (NamedDecl *OldD = getAsDecl()) { in HandleRedeclaration() local167 if (!D->declarationReplaces(OldD, IsKnownNewer)) in HandleRedeclaration()177 NamedDecl *OldD = *OD; in HandleRedeclaration() local178 if (D->declarationReplaces(OldD, IsKnownNewer)) { in HandleRedeclaration()195 if (NamedDecl *OldD = getAsDecl()) { in AddSubsequentDecl() local197 VT->push_back(OldD); in AddSubsequentDecl()
228 bool declarationReplaces(NamedDecl *OldD, bool IsKnownNewer = true) const;
1514 bool NamedDecl::declarationReplaces(NamedDecl *OldD, bool IsKnownNewer) const { in declarationReplaces() argument1515 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch"); in declarationReplaces()1519 if (OldD->isFromASTFile() && isFromASTFile()) in declarationReplaces()1523 if (OldD->getKind() != getKind()) in declarationReplaces()1539 OldD->getDeclContext()->getRedeclContext())) in declarationReplaces()1548 cast<UsingDecl>(OldD)->getQualifier()); in declarationReplaces()1554 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier()); in declarationReplaces()1562 cast<UsingDirectiveDecl>(OldD)->getNominatedNamespace() in declarationReplaces()1566 if (getCanonicalDecl() != OldD->getCanonicalDecl()) in declarationReplaces()1576 if (D == OldD) in declarationReplaces()
893 NamedDecl *OldD = *I; in CheckOverload() local896 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload()903 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload()920 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload()927 if (!isa<FunctionTemplateDecl>(OldD) && in CheckOverload()934 } else if (isa<UsingDecl>(OldD)) { in CheckOverload()938 } else if (isa<TagDecl>(OldD)) { in CheckOverload()940 } else if (isa<UnresolvedUsingValueDecl>(OldD)) { in CheckOverload()
1935 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local1936 if (OldD->getLocation().isValid()) in MergeTypedefNameDecl()1937 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()2665 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, in MergeFunctionDecl() argument2668 FunctionDecl *Old = OldD->getAsFunction(); in MergeFunctionDecl()2670 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) { in MergeFunctionDecl()2683 OldD = Old = cast<FunctionDecl>(Shadow->getTargetDecl()); in MergeFunctionDecl()2687 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
8583 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local8584 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration()8585 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()