diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/compile/compile-internal.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/compile/compile-internal.h')
-rw-r--r-- | gdb/compile/compile-internal.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/compile/compile-internal.h b/gdb/compile/compile-internal.h index ecf7c11..625f665 100644 --- a/gdb/compile/compile-internal.h +++ b/gdb/compile/compile-internal.h @@ -60,21 +60,23 @@ extern int compile_register_name_demangle (struct gdbarch *gdbarch, class compile_file_names { public: + compile_file_names (std::string source_file, std::string object_file) - : m_source_file (source_file), m_object_file (object_file) - {} + : m_source_file (source_file), + m_object_file (object_file) + { + } /* Provide read-only views only. Return 'const char *' instead of std::string to avoid having to use c_str() everywhere in client code. */ - const char *source_file () const - { return m_source_file.c_str (); } + const char *source_file () const { return m_source_file.c_str (); } - const char *object_file () const - { return m_object_file.c_str (); } + const char *object_file () const { return m_object_file.c_str (); } private: + /* Storage for the file names. */ std::string m_source_file; std::string m_object_file; |