diff options
author | Kim Grasman <kim.grasman@gmail.com> | 2016-03-27 21:06:13 +0200 |
---|---|---|
committer | Kim Grasman <kim.grasman@gmail.com> | 2016-03-27 21:06:13 +0200 |
commit | e2244f9c58628e54575e0286d2b635b11b285d88 (patch) | |
tree | cb2bfbd5a7dc5bdbb699f188cab2217d658e9fab | |
parent | 0f76ccbf0a487cd00ae216e21cad2933474f12bd (diff) |
Fix naming in VisitCXXNewExpr
-rw-r--r-- | iwyu.cc | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2440,12 +2440,12 @@ class IwyuBaseAstVisitor : public BaseAstVisitor<Derived> { // We also need to do a varargs check, like for other function calls. if (CanIgnoreCurrentASTNode()) return true; // ... only if this NewExpr involves a constructor call. - const Expr* Init = expr->getInitializer(); - if (const CXXConstructExpr* CCE = - dyn_cast_or_null<CXXConstructExpr>(Init)){ - ReportIfReferenceVararg(CCE->getArgs(), - CCE->getNumArgs(), - CCE->getConstructor()); + const Expr* initializer = expr->getInitializer(); + if (const CXXConstructExpr* cce = + dyn_cast_or_null<CXXConstructExpr>(initializer)) { + ReportIfReferenceVararg(cce->getArgs(), + cce->getNumArgs(), + cce->getConstructor()); } return true; } |