Lines Matching refs:VD
265 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, in CheckVarDecl() argument
269 if (!VD->hasLocalStorage()) in CheckVarDecl()
273 if (VD->getType()->getAs<ReferenceType>()) in CheckVarDecl()
276 if (!isLive(Live, VD) && in CheckVarDecl()
277 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() || in CheckVarDecl()
278 VD->hasAttr<ObjCPreciseLifetimeAttr>())) { in CheckVarDecl()
282 Report(VD, dsk, ExLoc, Val->getSourceRange()); in CheckVarDecl()
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef() local
289 CheckVarDecl(VD, DR, Val, dsk, Live); in CheckDeclRef()
292 bool isIncrement(VarDecl *VD, const BinaryOperator* B) { in isIncrement() argument
305 if (DR->getDecl() == VD) in isIncrement()
309 if (DR->getDecl() == VD) in isIncrement()
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt() local
337 QualType T = VD->getType(); in observeStmt()
348 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
354 : (isIncrement(VD,B) ? DeadIncrement : Standard); in observeStmt()
356 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live); in observeStmt()
420 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt() local
427 if (VD->hasGlobalStorage() && in observeStmt()
428 VD->getType().isConstQualified()) in observeStmt()
435 if (isa<ParmVarDecl>(VD) && VD->getType()->isScalarType()) in observeStmt()
500 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()() local
501 Escaped.insert(VD); in operator ()()
515 VarDecl *VD = C.getCapturedVar(); in findLambdaReferenceCaptures() local
516 const FieldDecl *FD = CaptureFields[VD]; in findLambdaReferenceCaptures()
522 Escaped.insert(VD); in findLambdaReferenceCaptures()