Home
last modified time | relevance | path

Searched refs:newDecl (Results 1 – 2 of 2) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp209 ParmVarDecl *newDecl = (*ni); in CheckObjCMethodOverride() local
210 if (newDecl->hasAttr<NSConsumedAttr>() != in CheckObjCMethodOverride()
212 Diag(newDecl->getLocation(), in CheckObjCMethodOverride()
219 diagnoseNoescape(newDecl, oldDecl, *this); in CheckObjCMethodOverride()
H A DSemaDecl.cpp3369 static void mergeParamDeclAttributes(ParmVarDecl *newDecl, in mergeParamDeclAttributes() argument
3376 const CarriesDependencyAttr *CDA = newDecl->getAttr<CarriesDependencyAttr>(); in mergeParamDeclAttributes()
3395 const auto *NDAttr = newDecl->getAttr<HLSLParamModifierAttr>(); in mergeParamDeclAttributes()
3403 S.Diag(newDecl->getLocation(), diag::err_hlsl_param_qualifier_mismatch) in mergeParamDeclAttributes()
3404 << NDAttr << newDecl; in mergeParamDeclAttributes()
3413 bool foundAny = newDecl->hasAttrs(); in mergeParamDeclAttributes()
3417 if (!foundAny) newDecl->setAttrs(AttrVec()); in mergeParamDeclAttributes()
3420 if (!DeclHasAttr(newDecl, I)) { in mergeParamDeclAttributes()
3424 newDecl->addAttr(newAttr); in mergeParamDeclAttributes()
3429 if (!foundAny) newDecl->dropAttrs(); in mergeParamDeclAttributes()