Lines Matching refs:VD

208   void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val,  in CheckVarDecl()  argument
212 if (!VD->hasLocalStorage()) in CheckVarDecl()
216 if (VD->getType()->getAs<ReferenceType>()) in CheckVarDecl()
219 if (!isLive(Live, VD) && in CheckVarDecl()
220 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() || in CheckVarDecl()
221 VD->hasAttr<ObjCPreciseLifetimeAttr>())) { in CheckVarDecl()
225 Report(VD, dsk, ExLoc, Val->getSourceRange()); in CheckVarDecl()
231 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef() local
232 CheckVarDecl(VD, DR, Val, dsk, Live); in CheckDeclRef()
235 bool isIncrement(VarDecl *VD, const BinaryOperator* B) { in isIncrement() argument
248 if (DR->getDecl() == VD) in isIncrement()
252 if (DR->getDecl() == VD) in isIncrement()
273 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt() local
280 QualType T = VD->getType(); in observeStmt()
291 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
297 : (isIncrement(VD,B) ? DeadIncrement : Standard); in observeStmt()
299 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live); in observeStmt()
362 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt() local
369 if (VD->hasGlobalStorage() && in observeStmt()
370 VD->getType().isConstQualified()) in observeStmt()
377 if (isa<ParmVarDecl>(VD) && VD->getType()->isScalarType()) in observeStmt()
419 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()() local
420 Escaped.insert(VD); in operator ()()
434 VarDecl *VD = C.getCapturedVar(); in findLambdaReferenceCaptures() local
435 const FieldDecl *FD = CaptureFields[VD]; in findLambdaReferenceCaptures()
441 Escaped.insert(VD); in findLambdaReferenceCaptures()