Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DDeclContextInternals.h225 if (NamedDecl *OldD = getAsDecl()) { in addOrReplaceDecl() local
226 if (D->declarationReplaces(OldD, IsKnownNewer)) { in addOrReplaceDecl()
233 DeclListNode *Node = C.AllocateDeclListNode(OldD); in addOrReplaceDecl()
DDecl.h360 bool declarationReplaces(NamedDecl *OldD, bool IsKnownNewer = true) const;
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DSemaCUDA.cpp682 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs() local
683 return OldD && OldD->hasAttr<CUDADeviceAttr>() && in maybeAddCUDAHostDeviceAttrs()
684 !OldD->hasAttr<CUDAHostAttr>() && in maybeAddCUDAHostDeviceAttrs()
685 !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.cpp2338 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local
2339 if (OldD->getLocation().isValid()) in MergeTypedefNameDecl()
2340 notePreviousDefinition(OldD, New->getLocation()); in MergeTypedefNameDecl()
3228 DeclaratorDecl *OldD) { in adjustDeclContextForDeclaratorDecl() argument
3244 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3249 NewD->isInvalidDecl() || OldD->isInvalidDecl()) && in adjustDeclContextForDeclaratorDecl()
3278 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, in MergeFunctionDecl() argument
3281 FunctionDecl *Old = OldD->getAsFunction(); in MergeFunctionDecl()
3283 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) { in MergeFunctionDecl()
3300 OldD = Old = cast<FunctionTemplateDecl>(Shadow->getTargetDecl()) in MergeFunctionDecl()
[all …]
DSemaOverload.cpp1035 NamedDecl *OldD = *I; in CheckOverload() local
1038 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload()
1045 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload()
1062 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload()
1069 if (!isa<FunctionTemplateDecl>(OldD) && in CheckOverload()
1083 } else if (isa<UsingDecl>(OldD) || isa<UsingPackDecl>(OldD)) { in CheckOverload()
1087 } else if (isa<TagDecl>(OldD)) { in CheckOverload()
1089 } else if (auto *UUD = dyn_cast<UnresolvedUsingValueDecl>(OldD)) { in CheckOverload()
DTreeTransform.h12023 for (auto *OldD : Old->decls()) { in TransformOverloadExprDecls()
12024 Decl *InstD = getDerived().TransformDecl(Old->getNameLoc(), OldD); in TransformOverloadExprDecls()
12028 if (isa<UsingShadowDecl>(OldD)) in TransformOverloadExprDecls()
DSemaDeclCXX.cpp12837 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local
12838 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration()
12839 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DDecl.cpp1734 bool NamedDecl::declarationReplaces(NamedDecl *OldD, bool IsKnownNewer) const { in declarationReplaces() argument
1735 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch"); in declarationReplaces()
1739 if (OldD->isFromASTFile() && isFromASTFile()) in declarationReplaces()
1743 if (OldD->getKind() != getKind()) in declarationReplaces()
1759 OldD->getDeclContext()->getRedeclContext())) in declarationReplaces()
1768 cast<UsingDecl>(OldD)->getQualifier()); in declarationReplaces()
1774 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier()); in declarationReplaces()
1778 if (getCanonicalDecl() != OldD->getCanonicalDecl()) in declarationReplaces()
1788 if (D == OldD) in declarationReplaces()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
DSema.h2734 bool canFullyTypeCheckRedeclaration(ValueDecl *NewD, ValueDecl *OldD,