Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclContextInternals.h230 if (NamedDecl *OldD = getAsDecl()) { in addOrReplaceDecl() local
231 if (D->declarationReplaces(OldD, IsKnownNewer)) { in addOrReplaceDecl()
238 DeclListNode *Node = C.AllocateDeclListNode(OldD); in addOrReplaceDecl()
H A DDecl.h386 bool declarationReplaces(const NamedDecl *OldD,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp795 FunctionDecl *OldD = D->getAsFunction(); in maybeAddHostDeviceAttrs() local
796 return OldD && OldD->hasAttr<CUDADeviceAttr>() && in maybeAddHostDeviceAttrs()
797 !OldD->hasAttr<CUDAHostAttr>() && in maybeAddHostDeviceAttrs()
798 !SemaRef.IsOverload(NewD, OldD, in maybeAddHostDeviceAttrs()
H A DSemaDeclObjC.cpp118 static bool diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, in diagnoseNoescape() argument
120 if (OldD->hasAttr<NoEscapeAttr>() && !NewD->hasAttr<NoEscapeAttr>()) { in diagnoseNoescape()
122 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape); in diagnoseNoescape()
131 static void diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, in diagnoseNoescape() argument
134 if (!diagnoseNoescape(NewD, OldD, S)) in diagnoseNoescape()
H A DSemaDecl.cpp2538 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local
2539 if (OldD->getLocation().isValid()) in MergeTypedefNameDecl()
2540 notePreviousDefinition(OldD, New->getLocation()); in MergeTypedefNameDecl()
3565 DeclaratorDecl *OldD) { in adjustDeclContextForDeclaratorDecl() argument
3581 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3586 NewD->isInvalidDecl() || OldD->isInvalidDecl()) && in adjustDeclContextForDeclaratorDecl()
3604 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, in MergeFunctionDecl() argument
3607 FunctionDecl *Old = OldD->getAsFunction(); in MergeFunctionDecl()
3609 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) { in MergeFunctionDecl()
3626 OldD = Old = cast<FunctionTemplateDecl>(Shadow->getTargetDecl()) in MergeFunctionDecl()
[all …]
H A DSemaOverload.cpp1210 NamedDecl *OldD = *I; in CheckOverload() local
1213 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload()
1220 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload()
1237 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload()
1244 if (!isa<FunctionTemplateDecl>(OldD) && in CheckOverload()
1258 } else if (isa<UsingDecl>(OldD) || isa<UsingPackDecl>(OldD)) { in CheckOverload()
1262 } else if (isa<TagDecl>(OldD)) { in CheckOverload()
1264 } else if (auto *UUD = dyn_cast<UnresolvedUsingValueDecl>(OldD)) { in CheckOverload()
H A DTreeTransform.h14701 for (auto *OldD : Old->decls()) { in TransformOverloadExprDecls()
14702 Decl *InstD = getDerived().TransformDecl(Old->getNameLoc(), OldD); in TransformOverloadExprDecls()
14706 if (isa<UsingShadowDecl>(OldD)) in TransformOverloadExprDecls()
H A DSemaDeclCXX.cpp13744 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local
13745 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration()
13746 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp1852 bool NamedDecl::declarationReplaces(const NamedDecl *OldD, in declarationReplaces() argument
1854 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch"); in declarationReplaces()
1858 if (OldD->isFromASTFile() && isFromASTFile()) in declarationReplaces()
1862 if (OldD->getKind() != getKind()) in declarationReplaces()
1878 OldD->getDeclContext()->getRedeclContext())) in declarationReplaces()
1887 cast<UsingDecl>(OldD)->getQualifier()); in declarationReplaces()
1893 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier()); in declarationReplaces()
1897 if (getCanonicalDecl() != OldD->getCanonicalDecl()) in declarationReplaces()
1907 if (D == OldD) in declarationReplaces()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h4015 bool canFullyTypeCheckRedeclaration(ValueDecl *NewD, ValueDecl *OldD,