Home
last modified time | relevance | path

Searched refs:OldD (Results 1 – 6 of 6) sorted by relevance

/external/clang/include/clang/AST/
DDeclContextInternals.h90 if (NamedDecl *OldD = getAsDecl()) in setHasExternalDecls() local
91 VT->push_back(OldD); in setHasExternalDecls()
166 if (NamedDecl *OldD = getAsDecl()) { in HandleRedeclaration() local
167 if (!D->declarationReplaces(OldD, IsKnownNewer)) in HandleRedeclaration()
177 NamedDecl *OldD = *OD; in HandleRedeclaration() local
178 if (D->declarationReplaces(OldD, IsKnownNewer)) { in HandleRedeclaration()
195 if (NamedDecl *OldD = getAsDecl()) { in AddSubsequentDecl() local
197 VT->push_back(OldD); in AddSubsequentDecl()
DDecl.h228 bool declarationReplaces(NamedDecl *OldD, bool IsKnownNewer = true) const;
/external/clang/lib/AST/
DDecl.cpp1514 bool NamedDecl::declarationReplaces(NamedDecl *OldD, bool IsKnownNewer) const { in declarationReplaces() argument
1515 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()
/external/clang/lib/Sema/
DSemaOverload.cpp893 NamedDecl *OldD = *I; in CheckOverload() local
896 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()
DSemaDecl.cpp1935 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local
1936 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() argument
2668 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()
DSemaDeclCXX.cpp8583 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local
8584 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration()
8585 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()