From c583a2520616c2736cffc389c89a48b159366e6c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 8 Feb 2023 15:36:23 -0500 Subject: Run clang-format.sh Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968 --- gdb/go-lang.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'gdb/go-lang.h') diff --git a/gdb/go-lang.h b/gdb/go-lang.h index 1820b4c..c16afa6 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 . */ -#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 *demangled) - const override + bool sniff_from_mangled_name ( + const char *mangled, + gdb::unique_xmalloc_ptr *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) */ -- cgit v1.1