Skip to content

Commit fe3ee68

Browse files
committed
[lldb] Fix warning: extra ';' outside of a function is incompatible with C++98
Fix warning, remove trailing whitespace and fix formatting.
1 parent 9cb3af1 commit fe3ee68

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lldb/source/Commands/CommandObjectType.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const char *FormatCategoryToString(FormatCategoryItem item, bool long_name) {
111111
return "format";
112112
}
113113
llvm_unreachable("Fully covered switch above!");
114-
};
114+
}
115115

116116
#define LLDB_OPTIONS_type_summary_add
117117
#include "CommandOptions.inc"
@@ -770,11 +770,11 @@ class CommandObjectTypeFormatterDelete : public CommandObjectParsed {
770770
FormatCategoryItem m_formatter_kind;
771771

772772
Options *GetOptions() override { return &m_options; }
773-
774-
static constexpr const char *g_short_help_template =
773+
774+
static constexpr const char *g_short_help_template =
775775
"Delete an existing %s for a type.";
776776

777-
static constexpr const char *g_long_help_template =
777+
static constexpr const char *g_long_help_template =
778778
"Delete an existing %s for a type. Unless you specify a "
779779
"specific category or all categories, only the "
780780
"'default' category is searched. The names must be exactly as "
@@ -783,9 +783,9 @@ class CommandObjectTypeFormatterDelete : public CommandObjectParsed {
783783
public:
784784
CommandObjectTypeFormatterDelete(CommandInterpreter &interpreter,
785785
FormatCategoryItem formatter_kind)
786-
: CommandObjectParsed(interpreter,
786+
: CommandObjectParsed(interpreter,
787787
FormatCategoryToString(formatter_kind, false)),
788-
m_formatter_kind(formatter_kind) {
788+
m_formatter_kind(formatter_kind) {
789789
CommandArgumentEntry type_arg;
790790
CommandArgumentData type_style_arg;
791791

@@ -795,10 +795,10 @@ class CommandObjectTypeFormatterDelete : public CommandObjectParsed {
795795
type_arg.push_back(type_style_arg);
796796

797797
m_arguments.push_back(type_arg);
798-
798+
799799
const char *kind = FormatCategoryToString(formatter_kind, true);
800800
const char *short_kind = FormatCategoryToString(formatter_kind, false);
801-
801+
802802
StreamString s;
803803
s.Printf(g_short_help_template, kind);
804804
SetHelp(s.GetData());

0 commit comments

Comments
 (0)