Searched refs:OldD (Results 1 – 10 of 10) sorted by relevance
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclContextInternals.h | 231 if (NamedDecl *OldD = getAsDecl()) { in addOrReplaceDecl() local 232 if (D->declarationReplaces(OldD, IsKnownNewer)) { in addOrReplaceDecl() 239 DeclListNode *Node = C.AllocateDeclListNode(OldD); in addOrReplaceDecl()
|
H A D | Decl.h | 362 bool declarationReplaces(const NamedDecl *OldD,
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCUDA.cpp | 774 FunctionDecl *OldD = D->getAsFunction(); in maybeAddHostDeviceAttrs() local 775 return OldD && OldD->hasAttr<CUDADeviceAttr>() && in maybeAddHostDeviceAttrs() 776 !OldD->hasAttr<CUDAHostAttr>() && in maybeAddHostDeviceAttrs() 777 !SemaRef.IsOverload(NewD, OldD, in maybeAddHostDeviceAttrs()
|
H A D | SemaDeclObjC.cpp | 119 static bool diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, in diagnoseNoescape() argument 121 if (OldD->hasAttr<NoEscapeAttr>() && !NewD->hasAttr<NoEscapeAttr>()) { in diagnoseNoescape() 123 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape); in diagnoseNoescape() 132 static void diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, in diagnoseNoescape() argument 135 if (!diagnoseNoescape(NewD, OldD, S)) in diagnoseNoescape()
|
H A D | SemaDecl.cpp | 2520 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); in MergeTypedefNameDecl() local 2521 if (OldD->getLocation().isValid()) in MergeTypedefNameDecl() 2522 notePreviousDefinition(OldD, New->getLocation()); in MergeTypedefNameDecl() 3496 DeclaratorDecl *OldD) { in adjustDeclContextForDeclaratorDecl() argument 3512 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl() 3517 NewD->isInvalidDecl() || OldD->isInvalidDecl()) && in adjustDeclContextForDeclaratorDecl() 3535 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, in MergeFunctionDecl() argument 3538 FunctionDecl *Old = OldD->getAsFunction(); in MergeFunctionDecl() 3540 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) { in MergeFunctionDecl() 3557 OldD = Old = cast<FunctionTemplateDecl>(Shadow->getTargetDecl()) in MergeFunctionDecl() [all …]
|
H A D | SemaOverload.cpp | 1177 NamedDecl *OldD = *I; in CheckOverload() local 1180 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload() 1187 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload() 1204 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload() 1211 if (!isa<FunctionTemplateDecl>(OldD) && in CheckOverload() 1225 } else if (isa<UsingDecl>(OldD) || isa<UsingPackDecl>(OldD)) { in CheckOverload() 1229 } else if (isa<TagDecl>(OldD)) { in CheckOverload() 1231 } else if (auto *UUD = dyn_cast<UnresolvedUsingValueDecl>(OldD)) { in CheckOverload()
|
H A D | SemaDeclCXX.cpp | 13452 NamedDecl *OldD = Previous.getRepresentativeDecl(); in ActOnAliasDeclaration() local 13453 if (OldD->getLocation().isValid()) in ActOnAliasDeclaration() 13454 Diag(OldD->getLocation(), diag::note_previous_definition); in ActOnAliasDeclaration()
|
H A D | TreeTransform.h | 13581 for (auto *OldD : Old->decls()) { in TransformOverloadExprDecls() 13582 Decl *InstD = getDerived().TransformDecl(Old->getNameLoc(), OldD); in TransformOverloadExprDecls() 13586 if (isa<UsingShadowDecl>(OldD)) in TransformOverloadExprDecls()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Decl.cpp | 1835 bool NamedDecl::declarationReplaces(const NamedDecl *OldD, in declarationReplaces() argument 1837 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch"); in declarationReplaces() 1841 if (OldD->isFromASTFile() && isFromASTFile()) in declarationReplaces() 1845 if (OldD->getKind() != getKind()) in declarationReplaces() 1861 OldD->getDeclContext()->getRedeclContext())) in declarationReplaces() 1870 cast<UsingDecl>(OldD)->getQualifier()); in declarationReplaces() 1876 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier()); in declarationReplaces() 1880 if (getCanonicalDecl() != OldD->getCanonicalDecl()) in declarationReplaces() 1890 if (D == OldD) in declarationReplaces()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 3585 bool canFullyTypeCheckRedeclaration(ValueDecl *NewD, ValueDecl *OldD,
|