Lines Matching refs:VD
203 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val,
207 if (!VD->hasLocalStorage())
211 if (VD->getType()->getAs<ReferenceType>())
214 if (!isLive(Live, VD) &&
215 !(VD->getAttr<UnusedAttr>() || VD->getAttr<BlocksAttr>())) {
219 Report(VD, dsk, ExLoc, Val->getSourceRange());
225 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
226 CheckVarDecl(VD, DR, Val, dsk, Live);
229 bool isIncrement(VarDecl *VD, const BinaryOperator* B) {
242 if (DR->getDecl() == VD)
246 if (DR->getDecl() == VD)
267 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
272 QualType T = VD->getType();
282 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl()))
288 : (isIncrement(VD,B) ? DeadIncrement : Standard);
290 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live);
353 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
360 if (VD->hasGlobalStorage() &&
361 VD->getType().isConstQualified())
368 if (isa<ParmVarDecl>(VD) && VD->getType()->isScalarType())
404 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
405 Escaped.insert(VD);