Home
last modified time | relevance | path

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

/openbsd/src/gnu/llvm/clang/include/clang/AST/
DDeclContextInternals.h224 if (NamedDecl *OldD = getAsDecl()) { in addOrReplaceDecl() local
225 if (D->declarationReplaces(OldD, IsKnownNewer)) { in addOrReplaceDecl()
232 DeclListNode *Node = C.AllocateDeclListNode(OldD); in addOrReplaceDecl()
DDecl.h360 bool declarationReplaces(NamedDecl *OldD, bool IsKnownNewer = true) const;
/openbsd/src/gnu/llvm/clang/lib/Sema/
DSemaCUDA.cpp681 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs() local
682 return OldD && OldD->hasAttr<CUDADeviceAttr>() && in maybeAddCUDAHostDeviceAttrs()
683 !OldD->hasAttr<CUDAHostAttr>() && in maybeAddCUDAHostDeviceAttrs()
684 !IsOverload(NewD, OldD, /* UseMemberUsingDeclRules = */ false, in maybeAddCUDAHostDeviceAttrs()
DSemaDeclObjC.cpp114 static bool diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, in diagnoseNoescape() argument
116 if (OldD->hasAttr<NoEscapeAttr>() && !NewD->hasAttr<NoEscapeAttr>()) { in diagnoseNoescape()
118 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape); in diagnoseNoescape()
127 static void diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, in diagnoseNoescape() argument
130 if (!diagnoseNoescape(NewD, OldD, S)) in diagnoseNoescape()
DSemaDecl.cpp2613 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local
2614 if (OldD->getLocation().isValid()) in MergeTypedefNameDecl()
2615 notePreviousDefinition(OldD, New->getLocation()); in MergeTypedefNameDecl()
3567 DeclaratorDecl *OldD) { in adjustDeclContextForDeclaratorDecl() argument
3583 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3588 NewD->isInvalidDecl() || OldD->isInvalidDecl()) && in adjustDeclContextForDeclaratorDecl()
3617 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, in MergeFunctionDecl() argument
3620 FunctionDecl *Old = OldD->getAsFunction(); in MergeFunctionDecl()
3622 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) { in MergeFunctionDecl()
3639 OldD = Old = cast<FunctionTemplateDecl>(Shadow->getTargetDecl()) in MergeFunctionDecl()
[all …]
DSemaOverload.cpp1120 NamedDecl *OldD = *I; in CheckOverload() local
1123 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload()
1130 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload()
1147 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload()
1154 if (!isa<FunctionTemplateDecl>(OldD) && in CheckOverload()
1177 } else if (isa<UsingDecl>(OldD) || isa<UsingPackDecl>(OldD)) { in CheckOverload()
1181 } else if (isa<TagDecl>(OldD)) { in CheckOverload()
1183 } else if (auto *UUD = dyn_cast<UnresolvedUsingValueDecl>(OldD)) { in CheckOverload()
DTreeTransform.h12479 for (auto *OldD : Old->decls()) { in TransformOverloadExprDecls()
12480 Decl *InstD = getDerived().TransformDecl(Old->getNameLoc(), OldD); in TransformOverloadExprDecls()
12484 if (isa<UsingShadowDecl>(OldD)) in TransformOverloadExprDecls()
DSemaDeclCXX.cpp13146 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local
13147 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration()
13148 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()
/openbsd/src/gnu/llvm/clang/lib/AST/
DDecl.cpp1804 bool NamedDecl::declarationReplaces(NamedDecl *OldD, bool IsKnownNewer) const { in declarationReplaces() argument
1805 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch"); in declarationReplaces()
1809 if (OldD->isFromASTFile() && isFromASTFile()) in declarationReplaces()
1813 if (OldD->getKind() != getKind()) in declarationReplaces()
1829 OldD->getDeclContext()->getRedeclContext())) in declarationReplaces()
1838 cast<UsingDecl>(OldD)->getQualifier()); in declarationReplaces()
1844 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier()); in declarationReplaces()
1848 if (getCanonicalDecl() != OldD->getCanonicalDecl()) in declarationReplaces()
1858 if (D == OldD) in declarationReplaces()
/openbsd/src/gnu/llvm/clang/include/clang/Sema/
DSema.h2959 bool canFullyTypeCheckRedeclaration(ValueDecl *NewD, ValueDecl *OldD,