summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Grasman <kim.grasman@gmail.com>2016-03-27 21:06:38 +0200
committerVolodymyr Sapsai <vsapsai@gmail.com>2016-04-17 18:28:25 -0700
commitf09b88aaa0b7bb88a7b36da2ba1cab233659df6e (patch)
tree077fc85549d9947bb6960a71c3042914d9e6528a
parent71bacb9e097291fb59423853976eb4250d7ab635 (diff)
Fix naming in TraverseCXXConstructExprclang_3.8clang_3.8
-rw-r--r--iwyu.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/iwyu.cc b/iwyu.cc
index bf72aaf..f2b29b3 100644
--- a/iwyu.cc
+++ b/iwyu.cc
@@ -839,10 +839,10 @@ class BaseAstVisitor : public RecursiveASTVisitor<Derived> {
// implicitly when the variable goes out of scope). Only when initializing
// a field of a class does the constructor not have to worry
// about destruction. It turns out it's easier to check for that.
- bool willCallImplicitDestructorOnLeavingScope =
+ bool will_call_implicit_destructor_on_leaving_scope =
!IsCXXConstructExprInInitializer(current_ast_node()) &&
!IsCXXConstructExprInNewExpr(current_ast_node());
- if (willCallImplicitDestructorOnLeavingScope) {
+ if (will_call_implicit_destructor_on_leaving_scope) {
// Create the destructor if it hasn't been lazily created yet.
InstantiateImplicitMethods(expr->getConstructor()->getParent());
if (const CXXDestructorDecl* dtor_decl = GetSiblingDestructorFor(expr)) {