Lines Matching defs:DR
55 bool VisitDeclRefExpr(DeclRefExpr *DR) override {
57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
286 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk,
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
289 CheckVarDecl(VD, DR, Val, dsk, Live);
302 const DeclRefExpr *DR;
304 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
305 if (DR->getDecl() == VD)
308 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
309 if (DR->getDecl() == VD)
329 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
355 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live);
368 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex))
369 CheckDeclRef(DR, U, DeadIncrement, Live);
498 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
499 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))