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/CommandObjectPlatform.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/CommandObjectPlatform.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index 10dd878..4c18465 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -145,7 +145,6 @@ public: "Create a platform if needed and select it as the " "current platform.", "platform select <platform-name>", 0), - m_option_group(), m_platform_options( false) // Don't include the "--platform" option by passing false { @@ -377,7 +376,6 @@ public: "Set settings for the current target's platform, " "or for a platform by name.", "platform settings", 0), - m_options(), m_option_working_dir(LLDB_OPT_SET_1, false, "working-dir", 'w', CommandCompletions::eRemoteDiskDirectoryCompletion, eArgTypePath, @@ -417,8 +415,7 @@ public: CommandObjectPlatformMkDir(CommandInterpreter &interpreter) : CommandObjectParsed(interpreter, "platform mkdir", "Make a new directory on the remote end.", nullptr, - 0), - m_options() {} + 0) {} ~CommandObjectPlatformMkDir() override = default; @@ -464,8 +461,7 @@ class CommandObjectPlatformFOpen : public CommandObjectParsed { public: CommandObjectPlatformFOpen(CommandInterpreter &interpreter) : CommandObjectParsed(interpreter, "platform file open", - "Open a file on the remote end.", nullptr, 0), - m_options() {} + "Open a file on the remote end.", nullptr, 0) {} ~CommandObjectPlatformFOpen() override = default; @@ -566,8 +562,7 @@ public: CommandObjectPlatformFRead(CommandInterpreter &interpreter) : CommandObjectParsed(interpreter, "platform file read", "Read data from a file on the remote end.", nullptr, - 0), - m_options() {} + 0) {} ~CommandObjectPlatformFRead() override = default; @@ -605,7 +600,7 @@ public: protected: class CommandOptions : public Options { public: - CommandOptions() : Options() {} + CommandOptions() {} ~CommandOptions() override = default; @@ -660,8 +655,7 @@ public: CommandObjectPlatformFWrite(CommandInterpreter &interpreter) : CommandObjectParsed(interpreter, "platform file write", "Write data to a file on the remote end.", nullptr, - 0), - m_options() {} + 0) {} ~CommandObjectPlatformFWrite() override = default; @@ -698,7 +692,7 @@ public: protected: class CommandOptions : public Options { public: - CommandOptions() : Options() {} + CommandOptions() {} ~CommandOptions() override = default; @@ -1124,8 +1118,7 @@ public: : CommandObjectParsed(interpreter, "platform process launch", "Launch a new process on a remote platform.", "platform process launch program", - eCommandRequiresTarget | eCommandTryTargetAPILock), - m_options(), m_all_options() { + eCommandRequiresTarget | eCommandTryTargetAPILock) { m_all_options.Append(&m_options); m_all_options.Finalize(); } @@ -1217,8 +1210,7 @@ public: : CommandObjectParsed(interpreter, "platform process list", "List processes on a remote platform by name, pid, " "or many other matching attributes.", - "platform process list", 0), - m_options() {} + "platform process list", 0) {} ~CommandObjectPlatformProcessList() override = default; @@ -1324,7 +1316,7 @@ protected: class CommandOptions : public Options { public: - CommandOptions() : Options(), match_info() {} + CommandOptions() {} ~CommandOptions() override = default; @@ -1560,7 +1552,7 @@ class CommandObjectPlatformProcessAttach : public CommandObjectParsed { public: class CommandOptions : public Options { public: - CommandOptions() : Options() { + CommandOptions() { // Keep default values of all options in one place: OptionParsingStarting // () OptionParsingStarting(nullptr); @@ -1622,8 +1614,7 @@ public: CommandObjectPlatformProcessAttach(CommandInterpreter &interpreter) : CommandObjectParsed(interpreter, "platform process attach", "Attach to a process.", - "platform process attach <cmd-options>"), - m_options() {} + "platform process attach <cmd-options>") {} ~CommandObjectPlatformProcessAttach() override = default; @@ -1689,7 +1680,7 @@ class CommandObjectPlatformShell : public CommandObjectRaw { public: class CommandOptions : public Options { public: - CommandOptions() : Options() {} + CommandOptions() {} ~CommandOptions() override = default; @@ -1747,8 +1738,7 @@ public: CommandObjectPlatformShell(CommandInterpreter &interpreter) : CommandObjectRaw(interpreter, "platform shell", "Run a shell command on the current platform.", - "platform shell <shell-command>", 0), - m_options() {} + "platform shell <shell-command>", 0) {} ~CommandObjectPlatformShell() override = default; |