diff options
author | Kim Grasman <kim.grasman@gmail.com> | 2016-03-27 21:06:29 +0200 |
---|---|---|
committer | Kim Grasman <kim.grasman@gmail.com> | 2016-03-27 21:06:29 +0200 |
commit | 3527466f10cdb81e7a7612a42bee04a5b4be2d4f (patch) | |
tree | 68b3b39bd30af12d654ebd29281099b68127ee0d | |
parent | e2244f9c58628e54575e0286d2b635b11b285d88 (diff) |
Fix naming in TraverseCXXRecordDecl
-rw-r--r-- | iwyu.cc | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -700,9 +700,10 @@ class BaseAstVisitor : public RecursiveASTVisitor<Derived> { } // Check the (single) destructor. - bool hasImplicitDeclaredDestructor = (!decl->needsImplicitDestructor() && - !decl->hasUserDeclaredDestructor()); - if (hasImplicitDeclaredDestructor) { + bool has_implicit_declared_destructor = + (!decl->needsImplicitDestructor() && + !decl->hasUserDeclaredDestructor()); + if (has_implicit_declared_destructor) { if (!TraverseImplicitDeclHelper(decl->getDestructor())) return false; } @@ -710,9 +711,9 @@ class BaseAstVisitor : public RecursiveASTVisitor<Derived> { // Check copy and move assignment operators. for (CXXRecordDecl::method_iterator it = decl->method_begin(); it != decl->method_end(); ++it) { - bool isAssignmentOperator = it->isCopyAssignmentOperator() || - it->isMoveAssignmentOperator(); - if (isAssignmentOperator && it->isImplicit()) { + bool is_assignment_operator = + it->isCopyAssignmentOperator() || it->isMoveAssignmentOperator(); + if (is_assignment_operator && it->isImplicit()) { if (!TraverseImplicitDeclHelper(*it)) return false; } |