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

/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DDeclContextInternals.h91 if (NamedDecl *OldD = getAsDecl())
92 VT->push_back(OldD);
166 if (NamedDecl *OldD = getAsDecl()) {
167 if (!D->declarationReplaces(OldD, IsKnownNewer))
177 NamedDecl *OldD = *OD; local
178 if (D->declarationReplaces(OldD, IsKnownNewer)) {
194 if (NamedDecl *OldD = getAsDecl()) {
196 VT->push_back(OldD);
H A DDecl.h310 /// its context, will replace the declaration OldD if introduced into scope.
318 /// than \p OldD (for instance, if this declaration is newly-created).
319 bool declarationReplaces(NamedDecl *OldD, bool IsKnownNewer = true) const;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp608 FunctionDecl *OldD = D->getAsFunction();
609 return OldD && OldD->hasAttr<CUDADeviceAttr>() &&
610 !OldD->hasAttr<CUDAHostAttr>() &&
611 !IsOverload(NewD, OldD, /* UseMemberUsingDeclRules = */ false,
H A DSemaDeclObjC.cpp114 static bool diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, argument
116 if (OldD->hasAttr<NoEscapeAttr>() && !NewD->hasAttr<NoEscapeAttr>()) {
118 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape);
127 static void diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, argument
130 if (!diagnoseNoescape(NewD, OldD, S))
H A DSemaDecl.cpp2292 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); local
2293 if (OldD->getLocation().isValid())
2294 notePreviousDefinition(OldD, New->getLocation());
3162 DeclaratorDecl *OldD) {
3178 auto *SemaDC = OldD->getDeclContext()->getRedeclContext();
3183 NewD->isInvalidDecl() || OldD->isInvalidDecl()) &&
3212 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, argument
3215 FunctionDecl *Old = OldD->getAsFunction();
3217 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) {
3230 OldD
3161 adjustDeclContextForDeclaratorDecl(DeclaratorDecl *NewD, DeclaratorDecl *OldD) argument
9922 canFullyTypeCheckRedeclaration(ValueDecl *NewD, ValueDecl *OldD, QualType NewT, QualType OldT) argument
[all...]
H A DSemaOverload.cpp1032 NamedDecl *OldD = *I;
1035 if (isa<UsingShadowDecl>(OldD)) {
1042 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl();
1059 if (FunctionDecl *OldF = OldD->getAsFunction()) {
1066 if (!isa<FunctionTemplateDecl>(OldD) &&
1080 } else if (isa<UsingDecl>(OldD) || isa<UsingPackDecl>(OldD)) {
1084 } else if (isa<TagDecl>(OldD)) {
1086 } else if (auto *UUD = dyn_cast<UnresolvedUsingValueDecl>(OldD)) {
[all...]
H A DSemaDeclCXX.cpp12547 NamedDecl *OldD = Previous.getRepresentativeDecl();
12548 if (OldD->getLocation().isValid())
12549 Diag(OldD->getLocation(), diag::note_previous_definition);
H A DTreeTransform.h11672 for (auto *OldD : Old->decls()) {
11673 Decl *InstD = getDerived().TransformDecl(Old->getNameLoc(), OldD);
11677 if (isa<UsingShadowDecl>(OldD))
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp1683 bool NamedDecl::declarationReplaces(NamedDecl *OldD, bool IsKnownNewer) const { argument
1684 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch");
1688 if (OldD->isFromASTFile() && isFromASTFile())
1692 if (OldD->getKind() != getKind())
1708 OldD->getDeclContext()->getRedeclContext()))
1717 cast<UsingDecl>(OldD)->getQualifier());
1723 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier());
1727 if (getCanonicalDecl() != OldD->getCanonicalDecl())
1733 // Check whether this is actually newer than OldD. We want to keep the
1735 // OldD i
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h2418 bool canFullyTypeCheckRedeclaration(ValueDecl *NewD, ValueDecl *OldD,

Completed in 308 milliseconds