[v2,44/48] Make struct value data members private

Message ID 20230209-submit-value-fixups-2023-v2-44-b0b27fd97177@tromey.com
State New
Headers
Series Use methods for struct value |

Commit Message

Tom Tromey Feb. 10, 2023, 9:53 p.m. UTC
  This hoists the 'private' in struct value to also encompass the data
members.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
---
 gdb/value.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Patch

diff --git a/gdb/value.h b/gdb/value.h
index 0085de0d349..cef027d9c4c 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -604,6 +604,7 @@  struct value
 					LONGEST bit_offset,
 					LONGEST bit_length);
 
+private:
 
   /* Type of value; either not an lval, or one of the various
      different possible kinds of lval.  */
@@ -770,8 +771,6 @@  struct value
      different string representation and related error strings.  */
   std::vector<range> m_optimized_out;
 
-private:
-
   /* Allocate the contents of this value if it has not been allocated
      yet.  */
   void allocate_contents ();