Lines Matching refs:VD
296 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() local
297 if (isTrackedVar(VD, DC)) in findVar()
298 return FindVarResult(VD, DRE); in findVar()
318 bool isTrackedVar(const VarDecl *VD) const { in isTrackedVar()
319 return ::isTrackedVar(VD, DC); in isTrackedVar()
341 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() local
342 if (!VD || !isTrackedVar(VD)) in get()
350 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr() argument
351 if (VD->getType()->isRecordType()) return nullptr; in getSelfInitExpr()
352 if (Expr *Init = VD->getInit()) { in getSelfInitExpr()
354 = dyn_cast<DeclRefExpr>(stripCasts(VD->getASTContext(), Init)); in getSelfInitExpr()
355 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr()
382 if (VarDecl *VD = dyn_cast<VarDecl>(ME->getMemberDecl())) { in classify() local
383 if (!VD->isStaticDataMember()) in classify()
410 VarDecl *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt() local
411 if (VD && isTrackedVar(VD)) in VisitDeclStmt()
412 if (const DeclRefExpr *DRE = getSelfInitExpr(VD)) in VisitDeclStmt()
686 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt() local
687 if (isTrackedVar(VD)) in VisitObjCForCollectionStmt()
688 vals[VD] = Initialized; in VisitObjCForCollectionStmt()
748 if (const VarDecl *VD = Var.getDecl()) in VisitBinaryOperator() local
749 vals[VD] = Initialized; in VisitBinaryOperator()
755 VarDecl *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt() local
756 if (VD && isTrackedVar(VD)) { in VisitDeclStmt()
757 if (getSelfInitExpr(VD)) { in VisitDeclStmt()
768 vals[VD] = Uninitialized; in VisitDeclStmt()
769 } else if (VD->getInit()) { in VisitDeclStmt()
771 vals[VD] = Initialized; in VisitDeclStmt()
783 vals[VD] = Uninitialized; in VisitDeclStmt()