diff libinterp/parse-tree/pt-assign.cc @ 24846:7620f1f5290d

use m_ prefix for member variables in parse tree classes * pt-arg-list.cc, pt-arg-list.h, pt-assign.cc, pt-assign.h, pt-binop.cc, pt-binop.h, pt-bp.cc, pt-bp.h, pt-cbinop.cc, pt-cbinop.h, pt-check.cc, pt-check.h, pt-classdef.cc, pt-classdef.h, pt-cmd.h, pt-colon.cc, pt-colon.h, pt-const.cc, pt-const.h, pt-decl.cc, pt-decl.h, pt-except.cc, pt-except.h, pt-fcn-handle.cc, pt-fcn-handle.h, pt-funcall.cc, pt-funcall.h, pt-id.cc, pt-id.h, pt-idx.cc, pt-idx.h, pt-jit.cc, pt-jit.h, pt-loop.cc, pt-loop.h, pt-misc.h, pt-pr-code.cc, pt-pr-code.h, pt-select.cc, pt-select.h, pt-stmt.cc, pt-stmt.h, pt-tm-const.cc, pt-tm-const.h, pt.cc, pt.h: Use m_ prefix for member variables in parse tree classes. Style fixes.
author John W. Eaton <jwe@octave.org>
date Wed, 07 Mar 2018 14:56:03 -0500
parents 194eb4bd202b
children 6652d3823428
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-assign.cc	Tue Mar 06 13:28:41 2018 -0500
+++ b/libinterp/parse-tree/pt-assign.cc	Wed Mar 07 14:56:03 2018 -0500
@@ -36,33 +36,35 @@
 {
   // Simple assignment expressions.
 
-  tree_simple_assignment::tree_simple_assignment
-  (tree_expression *le, tree_expression *re,
-   bool plhs, int l, int c, octave_value::assign_op t)
-    : tree_expression (l, c), lhs (le), rhs (re), preserve (plhs), etype (t)
+  tree_simple_assignment::tree_simple_assignment (tree_expression *le,
+                                                  tree_expression *re,
+                                                  bool plhs, int l, int c,
+                                                  octave_value::assign_op t)
+    : tree_expression (l, c), m_lhs (le), m_rhs (re), m_preserve (plhs),
+      m_etype (t)
   { }
 
   tree_simple_assignment::~tree_simple_assignment (void)
   {
-    if (! preserve)
-      delete lhs;
+    if (! m_preserve)
+      delete m_lhs;
 
-    delete rhs;
+    delete m_rhs;
   }
 
   std::string
   tree_simple_assignment::oper (void) const
   {
-    return octave_value::assign_op_as_string (etype);
+    return octave_value::assign_op_as_string (m_etype);
   }
 
   tree_expression *
   tree_simple_assignment::dup (symbol_scope& scope) const
   {
     tree_simple_assignment *new_sa
-      = new tree_simple_assignment (lhs ? lhs->dup (scope) : nullptr,
-                                    rhs ? rhs->dup (scope) : nullptr,
-                                    preserve, etype);
+      = new tree_simple_assignment (m_lhs ? m_lhs->dup (scope) : nullptr,
+                                    m_rhs ? m_rhs->dup (scope) : nullptr,
+                                    m_preserve, m_etype);
 
     new_sa->copy_base (*this);
 
@@ -71,18 +73,18 @@
 
   // Multi-valued assignment expressions.
 
-  tree_multi_assignment::tree_multi_assignment
-  (tree_argument_list *lst, tree_expression *r,
-   bool plhs, int l, int c)
-    : tree_expression (l, c), lhs (lst), rhs (r), preserve (plhs)
+  tree_multi_assignment::tree_multi_assignment (tree_argument_list *lst,
+                                                tree_expression *r,
+                                                bool plhs, int l, int c)
+    : tree_expression (l, c), m_lhs (lst), m_rhs (r), m_preserve (plhs)
   { }
 
   tree_multi_assignment::~tree_multi_assignment (void)
   {
-    if (! preserve)
-      delete lhs;
+    if (! m_preserve)
+      delete m_lhs;
 
-    delete rhs;
+    delete m_rhs;
   }
 
   std::string