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 []()
223 const VarDecl *vd;
227 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {} in FindVarResult()
230 const VarDecl *getDecl() const { return vd; } in getDecl()
254 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
279 bool isTrackedVar(const VarDecl *VD) const { in isTrackedVar()
303 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
313 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr()
345 if (const auto *VD = dyn_cast<VarDecl>(ME->getMemberDecl())) { in classify()
373 auto *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt()
483 void reportUse(const Expr *ex, const VarDecl *vd);
484 void reportConstRefUse(const Expr *ex, const VarDecl *vd);
496 bool isTrackedVar(const VarDecl *vd) { in isTrackedVar()
504 UninitUse getUninitUse(const Expr *ex, const VarDecl *vd, Value v) { in getUninitUse()
677 void TransferFunctions::reportUse(const Expr *ex, const VarDecl *vd) { in reportUse()
683 void TransferFunctions::reportConstRefUse(const Expr *ex, const VarDecl *vd) { in reportConstRefUse()
692 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
711 const VarDecl *vd = I.getVariable(); in VisitBlockExpr()
750 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
753 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr()
756 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
759 reportConstRefUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
767 if (const VarDecl *VD = Var.getDecl()) in VisitBinaryOperator()
774 auto *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt()
814 if (const VarDecl *VD = findVar(o).getDecl()) in VisitGCCAsmStmt()
886 void handleUseOfUninitVariable(const VarDecl *vd, in handleUseOfUninitVariable()
892 void handleConstRefUseOfUninitVariable(const VarDecl *vd, in handleConstRefUseOfUninitVariable()
901 void handleSelfInit(const VarDecl *vd) override { in handleSelfInit()