Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp215 ParmVarDecl *newDecl = (*ni); in CheckObjCMethodOverride() local
216 if (newDecl->hasAttr<NSConsumedAttr>() != in CheckObjCMethodOverride()
218 Diag(newDecl->getLocation(), in CheckObjCMethodOverride()
225 diagnoseNoescape(newDecl, oldDecl, SemaRef); in CheckObjCMethodOverride()
H A DSemaDecl.cpp3226 static void mergeParamDeclAttributes(ParmVarDecl *newDecl, in mergeParamDeclAttributes() argument
3233 const CarriesDependencyAttr *CDA = newDecl->getAttr<CarriesDependencyAttr>(); in mergeParamDeclAttributes()
3252 const auto *NDAttr = newDecl->getAttr<HLSLParamModifierAttr>(); in mergeParamDeclAttributes()
3260 S.Diag(newDecl->getLocation(), diag::err_hlsl_param_qualifier_mismatch) in mergeParamDeclAttributes()
3261 << NDAttr << newDecl; in mergeParamDeclAttributes()
3270 bool foundAny = newDecl->hasAttrs(); in mergeParamDeclAttributes()
3274 if (!foundAny) newDecl->setAttrs(AttrVec()); in mergeParamDeclAttributes()
3277 if (!DeclHasAttr(newDecl, I)) { in mergeParamDeclAttributes()
3281 newDecl->addAttr(newAttr); in mergeParamDeclAttributes()
3286 if (!foundAny) newDecl->dropAttrs(); in mergeParamDeclAttributes()