Lines Matching refs:VD
39 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) { in isPseudoConstant() argument
41 if (!VD->hasLocalStorage() && !VD->isStaticLocal()) in isPseudoConstant()
51 return !NonConstants->count(VD); in isPseudoConstant()
55 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) { in wasReferenced() argument
63 return UsedVars->count(VD); in wasReferenced()
122 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl); in RunAnalysis() local
124 if (VD) in RunAnalysis()
125 NonConstants->insert(VD); in RunAnalysis()
156 const VarDecl *VD = dyn_cast<VarDecl>(D); in RunAnalysis() local
157 if (VD) in RunAnalysis()
158 NonConstants->insert(VD); in RunAnalysis()
174 const VarDecl *VD = dyn_cast<VarDecl>(I); in RunAnalysis() local
175 if (!VD) in RunAnalysis()
179 if (!VD->getType().getTypePtr()->isReferenceType()) in RunAnalysis()
183 const Decl *D = getDecl(VD->getInit()->IgnoreParenCasts()); in RunAnalysis()
200 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in RunAnalysis() local
202 UsedVars->insert(VD); in RunAnalysis()