mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[Commands] Remove redundant member initialization (NFC)
Identified with readability-redundant-member-init.
This commit is contained in:
@@ -110,9 +110,8 @@ public:
|
||||
interpreter, "process launch",
|
||||
"Launch the executable in the debugger.", nullptr,
|
||||
eCommandRequiresTarget, "restart"),
|
||||
m_options(),
|
||||
m_class_options("scripted process", true, 'C', 'k', 'v', 0),
|
||||
m_all_options() {
|
||||
|
||||
m_class_options("scripted process", true, 'C', 'k', 'v', 0) {
|
||||
m_all_options.Append(&m_options);
|
||||
m_all_options.Append(&m_class_options, LLDB_OPT_SET_1 | LLDB_OPT_SET_2,
|
||||
LLDB_OPT_SET_ALL);
|
||||
@@ -300,7 +299,7 @@ class CommandObjectProcessAttach : public CommandObjectProcessLaunchOrAttach {
|
||||
public:
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions() : Options() {
|
||||
CommandOptions() {
|
||||
// Keep default values of all options in one place: OptionParsingStarting
|
||||
// ()
|
||||
OptionParsingStarting(nullptr);
|
||||
@@ -364,8 +363,7 @@ public:
|
||||
CommandObjectProcessAttach(CommandInterpreter &interpreter)
|
||||
: CommandObjectProcessLaunchOrAttach(
|
||||
interpreter, "process attach", "Attach to a process.",
|
||||
"process attach <cmd-options>", 0, "attach"),
|
||||
m_options() {}
|
||||
"process attach <cmd-options>", 0, "attach") {}
|
||||
|
||||
~CommandObjectProcessAttach() override = default;
|
||||
|
||||
@@ -502,15 +500,14 @@ public:
|
||||
"Continue execution of all threads in the current process.",
|
||||
"process continue",
|
||||
eCommandRequiresProcess | eCommandTryTargetAPILock |
|
||||
eCommandProcessMustBeLaunched | eCommandProcessMustBePaused),
|
||||
m_options() {}
|
||||
eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {}
|
||||
|
||||
~CommandObjectProcessContinue() override = default;
|
||||
|
||||
protected:
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions() : Options() {
|
||||
CommandOptions() {
|
||||
// Keep default values of all options in one place: OptionParsingStarting
|
||||
// ()
|
||||
OptionParsingStarting(nullptr);
|
||||
@@ -651,7 +648,7 @@ class CommandObjectProcessDetach : public CommandObjectParsed {
|
||||
public:
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions() : Options() { OptionParsingStarting(nullptr); }
|
||||
CommandOptions() { OptionParsingStarting(nullptr); }
|
||||
|
||||
~CommandOptions() override = default;
|
||||
|
||||
@@ -698,8 +695,7 @@ public:
|
||||
"Detach from the current target process.",
|
||||
"process detach",
|
||||
eCommandRequiresProcess | eCommandTryTargetAPILock |
|
||||
eCommandProcessMustBeLaunched),
|
||||
m_options() {}
|
||||
eCommandProcessMustBeLaunched) {}
|
||||
|
||||
~CommandObjectProcessDetach() override = default;
|
||||
|
||||
@@ -741,7 +737,7 @@ class CommandObjectProcessConnect : public CommandObjectParsed {
|
||||
public:
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions() : Options() {
|
||||
CommandOptions() {
|
||||
// Keep default values of all options in one place: OptionParsingStarting
|
||||
// ()
|
||||
OptionParsingStarting(nullptr);
|
||||
@@ -781,8 +777,7 @@ public:
|
||||
CommandObjectProcessConnect(CommandInterpreter &interpreter)
|
||||
: CommandObjectParsed(interpreter, "process connect",
|
||||
"Connect to a remote debug service.",
|
||||
"process connect <remote-url>", 0),
|
||||
m_options() {}
|
||||
"process connect <remote-url>", 0) {}
|
||||
|
||||
~CommandObjectProcessConnect() override = default;
|
||||
|
||||
@@ -863,7 +858,7 @@ class CommandObjectProcessLoad : public CommandObjectParsed {
|
||||
public:
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions() : Options() {
|
||||
CommandOptions() {
|
||||
// Keep default values of all options in one place: OptionParsingStarting
|
||||
// ()
|
||||
OptionParsingStarting(nullptr);
|
||||
@@ -907,8 +902,7 @@ public:
|
||||
"process load <filename> [<filename> ...]",
|
||||
eCommandRequiresProcess | eCommandTryTargetAPILock |
|
||||
eCommandProcessMustBeLaunched |
|
||||
eCommandProcessMustBePaused),
|
||||
m_options() {}
|
||||
eCommandProcessMustBePaused) {}
|
||||
|
||||
~CommandObjectProcessLoad() override = default;
|
||||
|
||||
@@ -1220,8 +1214,7 @@ public:
|
||||
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions()
|
||||
: Options(), m_requested_save_core_style(eSaveCoreUnspecified) {}
|
||||
CommandOptions() : m_requested_save_core_style(eSaveCoreUnspecified) {}
|
||||
|
||||
~CommandOptions() override = default;
|
||||
|
||||
@@ -1316,8 +1309,7 @@ public:
|
||||
interpreter, "process status",
|
||||
"Show status and stop location for the current target process.",
|
||||
"process status",
|
||||
eCommandRequiresProcess | eCommandTryTargetAPILock),
|
||||
m_options() {}
|
||||
eCommandRequiresProcess | eCommandTryTargetAPILock) {}
|
||||
|
||||
~CommandObjectProcessStatus() override = default;
|
||||
|
||||
@@ -1325,7 +1317,7 @@ public:
|
||||
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions() : Options() {}
|
||||
CommandOptions() {}
|
||||
|
||||
~CommandOptions() override = default;
|
||||
|
||||
@@ -1430,7 +1422,7 @@ class CommandObjectProcessHandle : public CommandObjectParsed {
|
||||
public:
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions() : Options() { OptionParsingStarting(nullptr); }
|
||||
CommandOptions() { OptionParsingStarting(nullptr); }
|
||||
|
||||
~CommandOptions() override = default;
|
||||
|
||||
@@ -1477,8 +1469,7 @@ public:
|
||||
"Manage LLDB handling of OS signals for the "
|
||||
"current target process. Defaults to showing "
|
||||
"current policy.",
|
||||
nullptr, eCommandRequiresTarget),
|
||||
m_options() {
|
||||
nullptr, eCommandRequiresTarget) {
|
||||
SetHelpLong("\nIf no signals are specified, update them all. If no update "
|
||||
"option is specified, list the current values.");
|
||||
CommandArgumentEntry arg;
|
||||
@@ -1687,7 +1678,7 @@ class CommandObjectProcessTraceSave : public CommandObjectParsed {
|
||||
public:
|
||||
class CommandOptions : public Options {
|
||||
public:
|
||||
CommandOptions() : Options() { OptionParsingStarting(nullptr); }
|
||||
CommandOptions() { OptionParsingStarting(nullptr); }
|
||||
|
||||
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg,
|
||||
ExecutionContext *execution_context) override {
|
||||
|
||||
Reference in New Issue
Block a user