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

/freebsd-11-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-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp578 FunctionDecl *OldD = D->getAsFunction();
579 return OldD && OldD->hasAttr<CUDADeviceAttr>() &&
580 !OldD->hasAttr<CUDAHostAttr>() &&
581 !IsOverload(NewD, OldD, /* UseMemberUsingDeclRules = */ false,
H A DSemaDeclObjC.cpp113 static bool diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, argument
115 if (OldD->hasAttr<NoEscapeAttr>() && !NewD->hasAttr<NoEscapeAttr>()) {
117 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape);
126 static void diagnoseNoescape(const ParmVarDecl *NewD, const ParmVarDecl *OldD, argument
129 if (!diagnoseNoescape(NewD, OldD, S))
H A DSemaDecl.cpp2275 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); local
2276 if (OldD->getLocation().isValid())
2277 notePreviousDefinition(OldD, New->getLocation());
3126 DeclaratorDecl *OldD) {
3142 auto *SemaDC = OldD->getDeclContext()->getRedeclContext();
3147 NewD->isInvalidDecl() || OldD->isInvalidDecl()) &&
3176 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, argument
3179 FunctionDecl *Old = OldD->getAsFunction();
3181 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) {
3194 OldD
3125 adjustDeclContextForDeclaratorDecl(DeclaratorDecl *NewD, DeclaratorDecl *OldD) argument
9734 canFullyTypeCheckRedeclaration(ValueDecl *NewD, ValueDecl *OldD, QualType NewT, QualType OldT) argument
[all...]
H A DSemaOverload.cpp1031 NamedDecl *OldD = *I;
1034 if (isa<UsingShadowDecl>(OldD)) {
1041 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl();
1058 if (FunctionDecl *OldF = OldD->getAsFunction()) {
1065 if (!isa<FunctionTemplateDecl>(OldD) &&
1079 } else if (isa<UsingDecl>(OldD) || isa<UsingPackDecl>(OldD)) {
1083 } else if (isa<TagDecl>(OldD)) {
1085 } else if (auto *UUD = dyn_cast<UnresolvedUsingValueDecl>(OldD)) {
[all...]
H A DSemaDeclCXX.cpp12251 NamedDecl *OldD = Previous.getRepresentativeDecl();
12252 if (OldD->getLocation().isValid())
12253 Diag(OldD->getLocation(), diag::note_previous_definition);
H A DTreeTransform.h11017 for (auto *OldD : Old->decls()) {
11018 Decl *InstD = getDerived().TransformDecl(Old->getNameLoc(), OldD);
11022 if (isa<UsingShadowDecl>(OldD))
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp1696 bool NamedDecl::declarationReplaces(NamedDecl *OldD, bool IsKnownNewer) const { argument
1697 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch");
1701 if (OldD->isFromASTFile() && isFromASTFile())
1705 if (OldD->getKind() != getKind())
1721 OldD->getDeclContext()->getRedeclContext()))
1730 cast<UsingDecl>(OldD)->getQualifier());
1736 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier());
1740 if (getCanonicalDecl() != OldD->getCanonicalDecl())
1746 // Check whether this is actually newer than OldD. We want to keep the
1748 // OldD i
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h2267 bool canFullyTypeCheckRedeclaration(ValueDecl *NewD, ValueDecl *OldD,

Completed in 271 milliseconds