Lines Matching defs:VD
265 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val,
269 if (!VD->hasLocalStorage())
273 if (VD->getType()->getAs<ReferenceType>())
276 if (!isLive(Live, VD) &&
277 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() ||
278 VD->hasAttr<ObjCPreciseLifetimeAttr>())) {
282 Report(VD, dsk, ExLoc, Val->getSourceRange());
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
289 CheckVarDecl(VD, DR, Val, dsk, Live);
292 bool isIncrement(VarDecl *VD, const BinaryOperator* B) {
305 if (DR->getDecl() == VD)
309 if (DR->getDecl() == VD)
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
336 QualType T = VD->getType();
347 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl()))
353 : (isIncrement(VD,B) ? DeadIncrement : Standard);
355 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live);
418 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
425 if (VD->hasGlobalStorage() &&
426 VD->getType().isConstQualified())
433 if (isa<ParmVarDecl>(VD) && VD->getType()->isScalarType())
499 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
500 Escaped.insert(VD);
514 ValueDecl *VD = C.getCapturedVar();
515 const FieldDecl *FD = CaptureFields[VD];
516 if (!FD || !isa<VarDecl>(VD))
521 Escaped.insert(cast<VarDecl>(VD));