Searched refs:OldD (Results 1 – 7 of 7) sorted by relevance
/external/clang/include/clang/AST/ |
D | DeclContextInternals.h | 90 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()
|
D | Decl.h | 296 bool declarationReplaces(NamedDecl *OldD, bool IsKnownNewer = true) const;
|
/external/clang/lib/Sema/ |
D | SemaCUDA.cpp | 457 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs() local 458 return OldD && OldD->hasAttr<CUDADeviceAttr>() && in maybeAddCUDAHostDeviceAttrs() 459 !OldD->hasAttr<CUDAHostAttr>() && in maybeAddCUDAHostDeviceAttrs() 460 !IsOverload(NewD, OldD, /* UseMemberUsingDeclRules = */ false, in maybeAddCUDAHostDeviceAttrs()
|
D | SemaOverload.cpp | 931 NamedDecl *OldD = *I; in CheckOverload() local 934 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload() 941 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload() 958 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload() 965 if (!isa<FunctionTemplateDecl>(OldD) && in CheckOverload() 972 } else if (isa<UsingDecl>(OldD)) { in CheckOverload() 976 } else if (isa<TagDecl>(OldD)) { in CheckOverload() 978 } else if (isa<UnresolvedUsingValueDecl>(OldD)) { in CheckOverload()
|
D | SemaDecl.cpp | 1990 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local 1991 if (OldD->getLocation().isValid()) in MergeTypedefNameDecl() 1992 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl() 2739 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, in MergeFunctionDecl() argument 2742 FunctionDecl *Old = OldD->getAsFunction(); in MergeFunctionDecl() 2744 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) { in MergeFunctionDecl() 2757 OldD = Old = cast<FunctionDecl>(Shadow->getTargetDecl()); in MergeFunctionDecl() 2761 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
|
D | SemaDeclCXX.cpp | 8828 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local 8829 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration() 8830 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()
|
/external/clang/lib/AST/ |
D | Decl.cpp | 1514 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()
|