Lines Matching defs:DR
54 bool VisitDeclRefExpr(DeclRefExpr *DR) {
56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
225 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk,
227 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
228 CheckVarDecl(VD, DR, Val, dsk, Live);
241 const DeclRefExpr *DR;
243 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
244 if (DR->getDecl() == VD)
247 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
248 if (DR->getDecl() == VD)
268 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
269 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
293 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live);
306 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex))
307 CheckDeclRef(DR, U, DeadIncrement, Live);
407 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
408 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))