Home
last modified time | relevance | path

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

/external/clang/include/clang/AST/
DDeclContextInternals.h127 if (NamedDecl *OldD = getAsDecl()) { in HandleRedeclaration() local
128 if (!D->declarationReplaces(OldD)) in HandleRedeclaration()
138 NamedDecl *OldD = *OD; in HandleRedeclaration() local
139 if (D->declarationReplaces(OldD)) { in HandleRedeclaration()
154 if (NamedDecl *OldD = getAsDecl()) { in AddSubsequentDecl() local
156 VT->push_back(OldD); in AddSubsequentDecl()
DDecl.h178 bool declarationReplaces(NamedDecl *OldD) const;
/external/clang/lib/AST/
DDecl.cpp891 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 …]
/external/clang/lib/Sema/
DSemaOverload.cpp581 NamedDecl *OldD = *I; in CheckOverload() local
584 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()
DSemaDecl.cpp1344 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local
1345 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() argument
1569 = 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()
DSemaDeclCXX.cpp5738 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local
5739 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration()
5740 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()