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

/external/clang/include/clang/AST/
H A DDeclContextInternals.h90 if (NamedDecl *OldD = getAsDecl())
91 VT->push_back(OldD);
168 if (NamedDecl *OldD = getAsDecl()) {
169 if (!D->declarationReplaces(OldD))
179 NamedDecl *OldD = *OD; local
180 if (D->declarationReplaces(OldD)) {
197 if (NamedDecl *OldD = getAsDecl()) {
199 VT->push_back(OldD);
H A DDecl.h180 /// declaration OldD if introduced into scope. A declaration will
185 bool declarationReplaces(NamedDecl *OldD) const;
/external/clang/lib/AST/
H A DDecl.cpp1424 bool NamedDecl::declarationReplaces(NamedDecl *OldD) const {
1425 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch");
1432 cast<UsingDirectiveDecl>(OldD)->getNominatedNamespace()
1438 return FD->getPreviousDecl() == OldD;
1444 = dyn_cast<FunctionTemplateDecl>(OldD))
1453 if (isa<ObjCInterfaceDecl>(this) && isa<ObjCCompatibleAliasDecl>(OldD))
1456 if (isa<UsingShadowDecl>(this) && isa<UsingShadowDecl>(OldD))
1458 cast<UsingShadowDecl>(OldD)->getTargetDecl();
1460 if (isa<UsingDecl>(this) && isa<UsingDecl>(OldD)) {
1465 cast<UsingDecl>(OldD)
[all...]
/external/clang/lib/Sema/
H A DSemaOverload.cpp913 NamedDecl *OldD = *I; local
916 if (isa<UsingShadowDecl>(OldD)) {
923 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl();
935 if (FunctionDecl *OldF = OldD->getAsFunction()) {
942 if (!isa<FunctionTemplateDecl>(OldD) &&
949 } else if (isa<UsingDecl>(OldD)) {
953 } else if (isa<TagDecl>(OldD)) {
955 } else if (isa<UnresolvedUsingValueDecl>(OldD)) {
H A DSemaDecl.cpp1821 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); local
1822 if (OldD->getLocation().isValid())
1823 Diag(OldD->getLocation(), diag::note_previous_definition);
2390 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, argument
2393 FunctionDecl *Old = OldD->getAsFunction();
2395 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) {
2426 OldD = Old;
2430 Diag(OldD->getLocation(), diag::note_previous_definition);
H A DSemaDeclCXX.cpp8123 NamedDecl *OldD = Previous.getRepresentativeDecl(); local
8124 if (OldD->getLocation().isValid())
8125 Diag(OldD->getLocation(), diag::note_previous_definition);

Completed in 285 milliseconds