Lines Matching refs:vd

36 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) {
37 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() &&
38 !vd->isExceptionVariable() && !vd->isInitCapture() &&
39 !vd->isImplicit() && vd->getDeclContext() == dc) {
40 QualType ty = vd->getType();
72 const VarDecl *vd = *I;
73 if (isTrackedVar(vd, &dc))
74 map[vd] = count++;
132 ValueVector::reference operator[](const VarDecl *vd);
135 const VarDecl *vd) {
136 const Optional<unsigned> &idx = declToIndex.getValueIndex(vd);
196 ValueVector::reference CFGBlockValues::operator[](const VarDecl *vd) {
197 const Optional<unsigned> &idx = declToIndex.getValueIndex(vd);
268 const VarDecl *vd;
271 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {}
274 const VarDecl *getDecl() const { return vd; }
508 void reportUse(const Expr *ex, const VarDecl *vd);
518 bool isTrackedVar(const VarDecl *vd) {
519 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl()));
526 UninitUse getUninitUse(const Expr *ex, const VarDecl *vd, Value v) {
599 Value AtPredExit = vals.getValue(Pred, B, vd);
604 vals.getValue(B, nullptr, vd) == Uninitialized) {
647 vals.getValue(Block, Succ, vd) == Uninitialized) {
677 void TransferFunctions::reportUse(const Expr *ex, const VarDecl *vd) {
678 Value v = vals[vd];
680 handler.handleUseOfUninitVariable(vd, getUninitUse(ex, vd, v));
695 const VarDecl *vd = I.getVariable();
696 if (!isTrackedVar(vd))
699 vals[vd] = Initialized;
702 reportUse(be, vd);
851 void handleUseOfUninitVariable(const VarDecl *vd,
860 void handleSelfInit(const VarDecl *vd) override {