Lines Matching refs:DR
54 bool VisitDeclRefExpr(DeclRefExpr *DR) {
56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
288 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk,
290 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
291 CheckVarDecl(VD, DR, Val, dsk, Live);
304 const DeclRefExpr *DR;
306 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
307 if (DR->getDecl() == VD)
310 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
311 if (DR->getDecl() == VD)
331 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
332 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
358 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live);
371 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex))
372 CheckDeclRef(DR, U, DeadIncrement, Live);
476 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
477 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))