Lines Matching refs:DR
171 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, in CheckDeclRef() argument
173 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
174 CheckVarDecl(VD, DR, Val, dsk, Live); in CheckDeclRef()
187 const DeclRefExpr *DR; in isIncrement() local
189 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
190 if (DR->getDecl() == VD) in isIncrement()
193 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
194 if (DR->getDecl() == VD) in isIncrement()
214 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt() local
215 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt()
238 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live); in observeStmt()
251 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt() local
252 CheckDeclRef(DR, U, DeadIncrement, Live); in observeStmt()
351 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in VisitUnaryOperator() local
352 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in VisitUnaryOperator()