Lines Matching refs:V
52 bool isRefcountedStringsHack(const VarDecl *V) { in isRefcountedStringsHack() argument
53 assert(V); in isRefcountedStringsHack()
58 QualType QT = V->getType(); in isRefcountedStringsHack()
154 bool VisitVarDecl(VarDecl *V) { in checkASTDecl()
155 Checker->visitVarDecl(V); in checkASTDecl()
164 void visitVarDecl(const VarDecl *V) const { in visitVarDecl()
165 if (shouldSkipVarDecl(V)) in visitVarDecl()
168 const auto *ArgType = V->getType().getTypePtr(); in visitVarDecl()
174 const Expr *const InitExpr = V->getInit(); in visitVarDecl()
202 isGuardedScopeEmbeddedInGuardianScope(V, MaybeGuardian)) { in visitVarDecl()
213 reportBug(V); in visitVarDecl()
217 bool shouldSkipVarDecl(const VarDecl *V) const { in shouldSkipVarDecl()
218 assert(V); in shouldSkipVarDecl()
219 if (!V->isLocalVarDecl()) in shouldSkipVarDecl()
222 if (isDeclaredInForOrIf(V)) in shouldSkipVarDecl()
228 void reportBug(const VarDecl *V) const { in reportBug()
229 assert(V); in reportBug()
234 printQuotedQualifiedName(Os, V); in reportBug()
237 PathDiagnosticLocation BSLoc(V->getLocation(), BR->getSourceManager()); in reportBug()
239 Report->addRange(V->getSourceRange()); in reportBug()