Lines Matching refs:VarDecl

44 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) {  in isTrackedVar()
61 llvm::DenseMap<const VarDecl *, unsigned> map;
73 Optional<unsigned> getValueIndex(const VarDecl *d) const;
80 DeclContext::specific_decl_iterator<VarDecl> I(dc.decls_begin()), in computeMap()
83 const VarDecl *vd = *I; in computeMap()
89 Optional<unsigned> DeclToIndex::getValueIndex(const VarDecl *d) const { in getValueIndex()
90 llvm::DenseMap<const VarDecl *, unsigned>::const_iterator I = map.find(d); in getValueIndex()
146 ValueVector::reference operator[](const VarDecl *vd);
149 const VarDecl *vd) { in getValue()
210 ValueVector::reference CFGBlockValues::operator[](const VarDecl *vd) { in operator []()
285 const VarDecl *vd;
289 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {} in FindVarResult()
292 const VarDecl *getDecl() const { return vd; } in getDecl()
316 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
340 bool isTrackedVar(const VarDecl *VD) const { in isTrackedVar()
363 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
373 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr()
405 if (const auto *VD = dyn_cast<VarDecl>(ME->getMemberDecl())) { in classify()
433 auto *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt()
527 void reportUse(const Expr *ex, const VarDecl *vd);
537 bool isTrackedVar(const VarDecl *vd) { in isTrackedVar()
545 UninitUse getUninitUse(const Expr *ex, const VarDecl *vd, Value v) { in getUninitUse()
696 void TransferFunctions::reportUse(const Expr *ex, const VarDecl *vd) { in reportUse()
705 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
714 const VarDecl *vd = I.getVariable(); in VisitBlockExpr()
753 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
756 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr()
759 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
767 if (const VarDecl *VD = Var.getDecl()) in VisitBinaryOperator()
774 auto *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt()
868 void handleUseOfUninitVariable(const VarDecl *vd, in handleUseOfUninitVariable()
877 void handleSelfInit(const VarDecl *vd) override { in handleSelfInit()