diff options
author | Kazu Hirata <kazu@google.com> | 2022-01-23 11:07:14 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-01-23 11:07:14 -0800 |
commit | abb0ed44957cb4ba1bc94d19202860f10369cea1 (patch) | |
tree | b42fadb8c67849fc3fb00c0e8101549028168916 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 7a29b0b58383e8ceb751144fe638c46cacc6fe40 (diff) | |
download | llvm-abb0ed44957cb4ba1bc94d19202860f10369cea1.zip llvm-abb0ed44957cb4ba1bc94d19202860f10369cea1.tar.gz llvm-abb0ed44957cb4ba1bc94d19202860f10369cea1.tar.bz2 |
[Commands] Remove redundant member initialization (NFC)
Identified with readability-redundant-member-init.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index defa21a..4b4932d 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -38,8 +38,7 @@ public: : CommandObjectParsed( interpreter, "command source", "Read and execute LLDB commands from the file <filename>.", - nullptr), - m_options() { + nullptr) { CommandArgumentEntry arg; CommandArgumentData file_arg; @@ -76,8 +75,8 @@ protected: class CommandOptions : public Options { public: CommandOptions() - : Options(), m_stop_on_error(true), m_silent_run(false), - m_stop_on_continue(true), m_cmd_relative_to_command_file(false) {} + : m_stop_on_error(true), m_silent_run(false), m_stop_on_continue(true), + m_cmd_relative_to_command_file(false) {} ~CommandOptions() override = default; @@ -207,7 +206,7 @@ class CommandObjectCommandsAlias : public CommandObjectRaw { protected: class CommandOptions : public OptionGroup { public: - CommandOptions() : OptionGroup(), m_help(), m_long_help() {} + CommandOptions() {} ~CommandOptions() override = default; @@ -258,8 +257,7 @@ public: CommandObjectCommandsAlias(CommandInterpreter &interpreter) : CommandObjectRaw( interpreter, "command alias", - "Define a custom command in terms of an existing command."), - m_option_group(), m_command_options() { + "Define a custom command in terms of an existing command.") { m_option_group.Append(&m_command_options); m_option_group.Finalize(); @@ -793,8 +791,7 @@ public: "regular expressions.", "command regex <cmd-name> [s/<regex>/<subst>/ ...]"), IOHandlerDelegateMultiline("", - IOHandlerDelegate::Completion::LLDBCommand), - m_options() { + IOHandlerDelegate::Completion::LLDBCommand) { SetHelpLong( R"( )" @@ -1025,7 +1022,7 @@ private: class CommandOptions : public Options { public: - CommandOptions() : Options() {} + CommandOptions() {} ~CommandOptions() override = default; @@ -1239,8 +1236,7 @@ class CommandObjectCommandsScriptImport : public CommandObjectParsed { public: CommandObjectCommandsScriptImport(CommandInterpreter &interpreter) : CommandObjectParsed(interpreter, "command script import", - "Import a scripting module in LLDB.", nullptr), - m_options() { + "Import a scripting module in LLDB.", nullptr) { CommandArgumentEntry arg1; CommandArgumentData cmd_arg; @@ -1271,7 +1267,7 @@ public: protected: class CommandOptions : public Options { public: - CommandOptions() : Options() {} + CommandOptions() {} ~CommandOptions() override = default; @@ -1395,7 +1391,7 @@ public: "must be a path to a user-added container " "command, and the last element will be the new " "command name."), - IOHandlerDelegateMultiline("DONE"), m_options() { + IOHandlerDelegateMultiline("DONE") { CommandArgumentEntry arg1; CommandArgumentData cmd_arg; @@ -1426,8 +1422,7 @@ public: protected: class CommandOptions : public Options { public: - CommandOptions() - : Options(), m_class_name(), m_funct_name(), m_short_help() {} + CommandOptions() {} ~CommandOptions() override = default; @@ -1884,7 +1879,7 @@ public: protected: class CommandOptions : public Options { public: - CommandOptions() : Options(), m_short_help(), m_long_help() {} + CommandOptions() {} ~CommandOptions() override = default; |