Skip to content

Commit a3436f7

Browse files
[API] Remove redundant member initialization (NFC)
Identified with readability-redundant-member-init.
1 parent 1461bd1 commit a3436f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+78
-124
lines changed

lldb/source/API/SBBreakpoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ BreakpointSP SBBreakpoint::GetSP() const { return m_opaque_wp.lock(); }
821821
// This is simple collection of breakpoint id's and their target.
822822
class SBBreakpointListImpl {
823823
public:
824-
SBBreakpointListImpl(lldb::TargetSP target_sp) : m_target_wp() {
824+
SBBreakpointListImpl(lldb::TargetSP target_sp) {
825825
if (target_sp && target_sp->IsValid())
826826
m_target_wp = target_sp;
827827
}

lldb/source/API/SBBroadcaster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using namespace lldb;
1717
using namespace lldb_private;
1818

19-
SBBroadcaster::SBBroadcaster() : m_opaque_sp() {
19+
SBBroadcaster::SBBroadcaster() {
2020
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBBroadcaster);
2121
}
2222

lldb/source/API/SBCommandInterpreterRunOptions.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ SBCommandInterpreterRunOptions::SBCommandInterpreterRunOptions() {
2525
}
2626

2727
SBCommandInterpreterRunOptions::SBCommandInterpreterRunOptions(
28-
const SBCommandInterpreterRunOptions &rhs)
29-
: m_opaque_up() {
28+
const SBCommandInterpreterRunOptions &rhs) {
3029
LLDB_RECORD_CONSTRUCTOR(SBCommandInterpreterRunOptions,
3130
(const lldb::SBCommandInterpreterRunOptions &), rhs);
3231

@@ -215,8 +214,7 @@ SBCommandInterpreterRunResult::SBCommandInterpreterRunResult(
215214
}
216215

217216
SBCommandInterpreterRunResult::SBCommandInterpreterRunResult(
218-
const CommandInterpreterRunResult &rhs)
219-
: m_opaque_up() {
217+
const CommandInterpreterRunResult &rhs) {
220218
m_opaque_up = std::make_unique<CommandInterpreterRunResult>(rhs);
221219
}
222220

lldb/source/API/SBCommandReturnObject.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ SBCommandReturnObject::SBCommandReturnObject(CommandReturnObject &ref)
5555
(lldb_private::CommandReturnObject &), ref);
5656
}
5757

58-
SBCommandReturnObject::SBCommandReturnObject(const SBCommandReturnObject &rhs)
59-
: m_opaque_up() {
58+
SBCommandReturnObject::SBCommandReturnObject(const SBCommandReturnObject &rhs) {
6059
LLDB_RECORD_CONSTRUCTOR(SBCommandReturnObject,
6160
(const lldb::SBCommandReturnObject &), rhs);
6261

lldb/source/API/SBDeclaration.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,17 @@
1919
using namespace lldb;
2020
using namespace lldb_private;
2121

22-
SBDeclaration::SBDeclaration() : m_opaque_up() {
22+
SBDeclaration::SBDeclaration() {
2323
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBDeclaration);
2424
}
2525

26-
SBDeclaration::SBDeclaration(const SBDeclaration &rhs) : m_opaque_up() {
26+
SBDeclaration::SBDeclaration(const SBDeclaration &rhs) {
2727
LLDB_RECORD_CONSTRUCTOR(SBDeclaration, (const lldb::SBDeclaration &), rhs);
2828

2929
m_opaque_up = clone(rhs.m_opaque_up);
3030
}
3131

32-
SBDeclaration::SBDeclaration(const lldb_private::Declaration *lldb_object_ptr)
33-
: m_opaque_up() {
32+
SBDeclaration::SBDeclaration(const lldb_private::Declaration *lldb_object_ptr) {
3433
if (lldb_object_ptr)
3534
m_opaque_up = std::make_unique<Declaration>(*lldb_object_ptr);
3635
}

lldb/source/API/SBError.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
using namespace lldb;
1818
using namespace lldb_private;
1919

20-
SBError::SBError() : m_opaque_up() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBError); }
20+
SBError::SBError() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBError); }
2121

22-
SBError::SBError(const SBError &rhs) : m_opaque_up() {
22+
SBError::SBError(const SBError &rhs) {
2323
LLDB_RECORD_CONSTRUCTOR(SBError, (const lldb::SBError &), rhs);
2424

2525
m_opaque_up = clone(rhs.m_opaque_up);

lldb/source/API/SBEvent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
using namespace lldb;
2323
using namespace lldb_private;
2424

25-
SBEvent::SBEvent() : m_event_sp() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBEvent); }
25+
SBEvent::SBEvent() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBEvent); }
2626

2727
SBEvent::SBEvent(uint32_t event_type, const char *cstr, uint32_t cstr_len)
2828
: m_event_sp(new Event(event_type, new EventDataBytes(cstr, cstr_len))),
@@ -36,7 +36,7 @@ SBEvent::SBEvent(EventSP &event_sp)
3636
LLDB_RECORD_CONSTRUCTOR(SBEvent, (lldb::EventSP &), event_sp);
3737
}
3838

39-
SBEvent::SBEvent(Event *event_ptr) : m_event_sp(), m_opaque_ptr(event_ptr) {
39+
SBEvent::SBEvent(Event *event_ptr) : m_opaque_ptr(event_ptr) {
4040
LLDB_RECORD_CONSTRUCTOR(SBEvent, (lldb_private::Event *), event_ptr);
4141
}
4242

lldb/source/API/SBExecutionContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
using namespace lldb;
2020
using namespace lldb_private;
2121

22-
SBExecutionContext::SBExecutionContext() : m_exe_ctx_sp() {
22+
SBExecutionContext::SBExecutionContext() {
2323
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBExecutionContext);
2424
}
2525

lldb/source/API/SBExpressionOptions.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ SBExpressionOptions::SBExpressionOptions()
2020
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBExpressionOptions);
2121
}
2222

23-
SBExpressionOptions::SBExpressionOptions(const SBExpressionOptions &rhs)
24-
: m_opaque_up() {
23+
SBExpressionOptions::SBExpressionOptions(const SBExpressionOptions &rhs) {
2524
LLDB_RECORD_CONSTRUCTOR(SBExpressionOptions,
2625
(const lldb::SBExpressionOptions &), rhs);
2726

lldb/source/API/SBFileSpec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ SBFileSpec::SBFileSpec() : m_opaque_up(new lldb_private::FileSpec()) {
2727
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBFileSpec);
2828
}
2929

30-
SBFileSpec::SBFileSpec(const SBFileSpec &rhs) : m_opaque_up() {
30+
SBFileSpec::SBFileSpec(const SBFileSpec &rhs) {
3131
LLDB_RECORD_CONSTRUCTOR(SBFileSpec, (const lldb::SBFileSpec &), rhs);
3232

3333
m_opaque_up = clone(rhs.m_opaque_up);

0 commit comments

Comments
 (0)