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/go-lang.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-gdb-users/simark/clang-format.tar.gz |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/go-lang.h')
-rw-r--r-- | gdb/go-lang.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/gdb/go-lang.h b/gdb/go-lang.h index 1820b4c9658..c16afa63d20 100644 --- a/gdb/go-lang.h +++ b/gdb/go-lang.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#if !defined (GO_LANG_H) +#if !defined(GO_LANG_H) #define GO_LANG_H 1 struct type_print_options; @@ -74,19 +74,19 @@ extern const struct builtin_go_type *builtin_go_type (struct gdbarch *); class go_language : public language_defn { public: + go_language () : language_defn (language_go) - { /* Nothing. */ } + { /* Nothing. */ + } /* See language.h. */ - const char *name () const override - { return "go"; } + const char *name () const override { return "go"; } /* See language.h. */ - const char *natural_name () const override - { return "Go"; } + const char *natural_name () const override { return "Go"; } /* See language.h. */ @@ -95,9 +95,9 @@ public: /* See language.h. */ - bool sniff_from_mangled_name - (const char *mangled, gdb::unique_xmalloc_ptr<char> *demangled) - const override + bool sniff_from_mangled_name ( + const char *mangled, + gdb::unique_xmalloc_ptr<char> *demangled) const override { *demangled = demangle_symbol (mangled, 0); return *demangled != NULL; @@ -116,9 +116,9 @@ public: /* See language.h. */ - void value_print_inner - (struct value *val, struct ui_file *stream, int recurse, - const struct value_print_options *options) const override; + void + value_print_inner (struct value *val, struct ui_file *stream, int recurse, + const struct value_print_options *options) const override; /* See language.h. */ @@ -135,8 +135,7 @@ public: /* See language.h. */ - bool store_sym_names_in_linkage_form_p () const override - { return true; } + bool store_sym_names_in_linkage_form_p () const override { return true; } }; #endif /* !defined (GO_LANG_H) */ |