Lines Matching refs:DR
55 bool VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr() argument
57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
286 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, in CheckDeclRef() argument
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
289 CheckVarDecl(VD, DR, Val, dsk, Live); in CheckDeclRef()
302 const DeclRefExpr *DR; in isIncrement() local
304 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
305 if (DR->getDecl() == VD) in isIncrement()
308 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
309 if (DR->getDecl() == VD) in isIncrement()
329 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt() local
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt()
356 CheckVarDecl(VD, DR, B->getRHS(), dsk, Live); in observeStmt()
369 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt() local
370 CheckDeclRef(DR, U, DeadIncrement, Live); in observeStmt()
499 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in operator ()() local
500 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()()