Author: Kazu Hirata Date: 2022-07-24T12:27:09-07:00 New Revision: 1d9231de70faa69625216a53cd306f20be4cfa75
URL: https://github.com/llvm/llvm-project/commit/1d9231de70faa69625216a53cd306f20be4cfa75 DIFF: https://github.com/llvm/llvm-project/commit/1d9231de70faa69625216a53cd306f20be4cfa75.diff LOG: [lldb] Remove redundant member initialization (NFC) Identified with readability-redundant-member-init. Added: Modified: lldb/source/Commands/CommandObjectDisassemble.cpp lldb/source/Commands/CommandObjectExpression.cpp lldb/source/Commands/CommandObjectMemory.cpp Removed: ################################################################################ diff --git a/lldb/source/Commands/CommandObjectDisassemble.cpp b/lldb/source/Commands/CommandObjectDisassemble.cpp index a11e2b7197270..e65e12fe557a9 100644 --- a/lldb/source/Commands/CommandObjectDisassemble.cpp +++ b/lldb/source/Commands/CommandObjectDisassemble.cpp @@ -216,8 +216,7 @@ CommandObjectDisassemble::CommandObjectDisassemble( "Disassemble specified instructions in the current target. " "Defaults to the current function for the current thread and " "stack frame.", - "disassemble [<cmd-options>]", eCommandRequiresTarget), - m_options() {} + "disassemble [<cmd-options>]", eCommandRequiresTarget) {} CommandObjectDisassemble::~CommandObjectDisassemble() = default; diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index 0fb50420f70f9..083309121b668 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -187,7 +187,7 @@ CommandObjectExpression::CommandObjectExpression( m_format_options(eFormatDefault), m_repl_option(LLDB_OPT_SET_1, false, "repl", 'r', "Drop into REPL", false, true), - m_command_options(), m_expr_line_count(0) { + m_expr_line_count(0) { SetHelpLong( R"( Single and multi-line expressions: diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index ca0384cf9453d..5051f9aeec851 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -1659,7 +1659,7 @@ class CommandObjectMemoryRegion : public CommandObjectParsed { public: class OptionGroupMemoryRegion : public OptionGroup { public: - OptionGroupMemoryRegion() : OptionGroup(), m_all(false, false) {} + OptionGroupMemoryRegion() : m_all(false, false) {} ~OptionGroupMemoryRegion() override = default; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits