aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-23 11:07:14 -0800
committerKazu Hirata <kazu@google.com>2022-01-23 11:07:14 -0800
commitabb0ed44957cb4ba1bc94d19202860f10369cea1 (patch)
treeb42fadb8c67849fc3fb00c0e8101549028168916 /lldb/source/Commands/CommandObjectSource.cpp
parent7a29b0b58383e8ceb751144fe638c46cacc6fe40 (diff)
downloadllvm-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/CommandObjectSource.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectSource.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp
index fb33f41..6c6706f 100644
--- a/lldb/source/Commands/CommandObjectSource.cpp
+++ b/lldb/source/Commands/CommandObjectSource.cpp
@@ -36,7 +36,7 @@ using namespace lldb_private;
class CommandObjectSourceInfo : public CommandObjectParsed {
class CommandOptions : public Options {
public:
- CommandOptions() : Options() {}
+ CommandOptions() {}
~CommandOptions() override = default;
@@ -118,8 +118,7 @@ public:
"Display source line information for the current target "
"process. Defaults to instruction pointer in current stack "
"frame.",
- nullptr, eCommandRequiresTarget),
- m_options() {}
+ nullptr, eCommandRequiresTarget) {}
~CommandObjectSourceInfo() override = default;
@@ -624,7 +623,7 @@ protected:
class CommandObjectSourceList : public CommandObjectParsed {
class CommandOptions : public Options {
public:
- CommandOptions() : Options() {}
+ CommandOptions() {}
~CommandOptions() override = default;
@@ -723,8 +722,7 @@ public:
: CommandObjectParsed(interpreter, "source list",
"Display source code for the current target "
"process as specified by options.",
- nullptr, eCommandRequiresTarget),
- m_options() {}
+ nullptr, eCommandRequiresTarget) {}
~CommandObjectSourceList() override = default;
@@ -757,7 +755,7 @@ protected:
SourceInfo(ConstString name, const LineEntry &line_entry)
: function(name), line_entry(line_entry) {}
- SourceInfo() : function(), line_entry() {}
+ SourceInfo() {}
bool IsValid() const { return (bool)function && line_entry.IsValid(); }