Lines Matching refs:VD
202 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, in CheckVarDecl() argument
206 if (!VD->hasLocalStorage()) in CheckVarDecl()
210 if (VD->getType()->getAs<ReferenceType>()) in CheckVarDecl()
213 if (!isLive(Live, VD) && in CheckVarDecl()
214 !(VD->getAttr<UnusedAttr>() || VD->getAttr<BlocksAttr>())) { in CheckVarDecl()
218 Report(VD, dsk, ExLoc, Val->getSourceRange()); in CheckVarDecl()
224 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef() local
225 CheckVarDecl(VD, DR, Val, dsk, Live); in CheckDeclRef()
228 bool isIncrement(VarDecl *VD, const BinaryOperator* B) { in isIncrement() argument
241 if (DR->getDecl() == VD) in isIncrement()
245 if (DR->getDecl() == VD) in isIncrement()
266 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt() local
271 QualType T = VD->getType(); in observeStmt()
281 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
287 : (isIncrement(VD,B) ? DeadIncrement : Standard); in observeStmt()
289 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live); in observeStmt()
352 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt() local
359 if (VD->hasGlobalStorage() && in observeStmt()
360 VD->getType().isConstQualified()) in observeStmt()
367 if (isa<ParmVarDecl>(VD) && VD->getType()->isScalarType()) in observeStmt()
403 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in VisitUnaryOperator() local
404 Escaped.insert(VD); in VisitUnaryOperator()