[API] Remove redundant member initialization (NFC)

Identified with readability-redundant-member-init.
This commit is contained in:
Kazu Hirata
2022-01-02 22:44:15 -08:00
parent 1461bd13c9
commit a3436f7340
44 changed files with 78 additions and 124 deletions

View File

@@ -29,13 +29,11 @@
using namespace lldb;
using namespace lldb_private;
SBModule::SBModule() : m_opaque_sp() {
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBModule);
}
SBModule::SBModule() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBModule); }
SBModule::SBModule(const lldb::ModuleSP &module_sp) : m_opaque_sp(module_sp) {}
SBModule::SBModule(const SBModuleSpec &module_spec) : m_opaque_sp() {
SBModule::SBModule(const SBModuleSpec &module_spec) {
LLDB_RECORD_CONSTRUCTOR(SBModule, (const lldb::SBModuleSpec &), module_spec);
ModuleSP module_sp;
@@ -49,8 +47,7 @@ SBModule::SBModule(const SBModule &rhs) : m_opaque_sp(rhs.m_opaque_sp) {
LLDB_RECORD_CONSTRUCTOR(SBModule, (const lldb::SBModule &), rhs);
}
SBModule::SBModule(lldb::SBProcess &process, lldb::addr_t header_addr)
: m_opaque_sp() {
SBModule::SBModule(lldb::SBProcess &process, lldb::addr_t header_addr) {
LLDB_RECORD_CONSTRUCTOR(SBModule, (lldb::SBProcess &, lldb::addr_t), process,
header_addr);