Lines Matching refs:VarDecl
60 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { in isTrackedVar()
79 llvm::DenseMap<const VarDecl *, unsigned> map;
91 std::optional<unsigned> getValueIndex(const VarDecl *d) const;
98 DeclContext::specific_decl_iterator<VarDecl> I(dc.decls_begin()), in computeMap()
101 const VarDecl *vd = *I; in computeMap()
107 std::optional<unsigned> DeclToIndex::getValueIndex(const VarDecl *d) const { in getValueIndex()
108 llvm::DenseMap<const VarDecl *, unsigned>::const_iterator I = map.find(d); in getValueIndex()
164 ValueVector::reference operator[](const VarDecl *vd);
167 const VarDecl *vd) { in getValue()
227 ValueVector::reference CFGBlockValues::operator[](const VarDecl *vd) { in operator []()
238 const VarDecl *vd;
242 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {} in FindVarResult()
245 const VarDecl *getDecl() const { return vd; } in getDecl()
269 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
294 bool isTrackedVar(const VarDecl *VD) const { in isTrackedVar()
318 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
328 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr()
360 if (const auto *VD = dyn_cast<VarDecl>(ME->getMemberDecl())) { in classify()
388 auto *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt()
498 void reportUse(const Expr *ex, const VarDecl *vd);
499 void reportConstRefUse(const Expr *ex, const VarDecl *vd);
511 bool isTrackedVar(const VarDecl *vd) { in isTrackedVar()
519 UninitUse getUninitUse(const Expr *ex, const VarDecl *vd, Value v) { in getUninitUse()
670 void TransferFunctions::reportUse(const Expr *ex, const VarDecl *vd) { in reportUse()
676 void TransferFunctions::reportConstRefUse(const Expr *ex, const VarDecl *vd) { in reportConstRefUse()
685 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
704 const VarDecl *vd = I.getVariable(); in VisitBlockExpr()
743 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
746 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr()
749 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
752 reportConstRefUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
760 if (const VarDecl *VD = Var.getDecl()) in VisitBinaryOperator()
767 auto *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt()
818 if (const VarDecl *VD = findVar(Ex).getDecl()) in VisitGCCAsmStmt()
888 void handleUseOfUninitVariable(const VarDecl *vd, in handleUseOfUninitVariable()
894 void handleConstRefUseOfUninitVariable(const VarDecl *vd, in handleConstRefUseOfUninitVariable()
903 void handleSelfInit(const VarDecl *vd) override { in handleSelfInit()