diff libinterp/parse-tree/pt-cmd.h @ 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-cmd.h	Tue Mar 06 13:28:41 2018 -0500
+++ b/libinterp/parse-tree/pt-cmd.h	Wed Mar 07 14:56:03 2018 -0500
@@ -60,7 +60,7 @@
 
     tree_no_op_command (const std::string& cmd = "no_op", bool e = false,
                         int l = -1, int c = -1)
-      : tree_command (l, c), eof (e), orig_cmd (cmd) { }
+      : tree_command (l, c), m_eof (e), m_orig_cmd (cmd) { }
 
     // No copying!
 
@@ -77,18 +77,18 @@
 
     bool is_end_of_fcn_or_script (void) const
     {
-      return (orig_cmd == "endfunction" || orig_cmd == "endscript");
+      return (m_orig_cmd == "endfunction" || m_orig_cmd == "endscript");
     }
 
-    bool is_end_of_file (void) const { return eof; }
+    bool is_end_of_file (void) const { return m_eof; }
 
-    std::string original_command (void) { return orig_cmd; }
+    std::string original_command (void) { return m_orig_cmd; }
 
   private:
 
-    bool eof;
+    bool m_eof;
 
-    std::string orig_cmd;
+    std::string m_orig_cmd;
   };
 
   // Function definition.
@@ -98,7 +98,7 @@
   public:
 
     tree_function_def (octave_function *f, int l = -1, int c = -1)
-      : tree_command (l, c), fcn (f) { }
+      : tree_command (l, c), m_fcn (f) { }
 
     // No copying!
 
@@ -113,14 +113,14 @@
       tw.visit_function_def (*this);
     }
 
-    octave_value function (void) { return fcn; }
+    octave_value function (void) { return m_fcn; }
 
   private:
 
-    octave_value fcn;
+    octave_value m_fcn;
 
     tree_function_def (const octave_value& v, int l = -1, int c = -1)
-      : tree_command (l, c), fcn (v) { }
+      : tree_command (l, c), m_fcn (v) { }
   };
 }