Lines Matching refs:VarDecl
36 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { in isTrackedVar()
52 llvm::DenseMap<const VarDecl *, unsigned> map;
63 Optional<unsigned> getValueIndex(const VarDecl *d) const;
69 DeclContext::specific_decl_iterator<VarDecl> I(dc.decls_begin()), in computeMap()
72 const VarDecl *vd = *I; in computeMap()
78 Optional<unsigned> DeclToIndex::getValueIndex(const VarDecl *d) const { in getValueIndex()
79 llvm::DenseMap<const VarDecl *, unsigned>::const_iterator I = map.find(d); in getValueIndex()
132 ValueVector::reference operator[](const VarDecl *vd);
135 const VarDecl *vd) { in getValue()
196 ValueVector::reference CFGBlockValues::operator[](const VarDecl *vd) { in operator []()
268 const VarDecl *vd;
271 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {} in FindVarResult()
274 const VarDecl *getDecl() const { return vd; } in getDecl()
296 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
318 bool isTrackedVar(const VarDecl *VD) const { in isTrackedVar()
341 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
350 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr()
382 if (VarDecl *VD = dyn_cast<VarDecl>(ME->getMemberDecl())) { in classify()
410 VarDecl *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt()
508 void reportUse(const Expr *ex, const VarDecl *vd);
518 bool isTrackedVar(const VarDecl *vd) { in isTrackedVar()
526 UninitUse getUninitUse(const Expr *ex, const VarDecl *vd, Value v) { in getUninitUse()
677 void TransferFunctions::reportUse(const Expr *ex, const VarDecl *vd) { in reportUse()
686 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
695 const VarDecl *vd = I.getVariable(); in VisitBlockExpr()
734 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
737 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr()
740 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
748 if (const VarDecl *VD = Var.getDecl()) in VisitBinaryOperator()
755 VarDecl *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt()
851 void handleUseOfUninitVariable(const VarDecl *vd, in handleUseOfUninitVariable()
860 void handleSelfInit(const VarDecl *vd) override { in handleSelfInit()