diff options
Diffstat (limited to 'lldb/source/API/SBType.cpp')
| -rw-r--r-- | lldb/source/API/SBType.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/source/API/SBType.cpp b/lldb/source/API/SBType.cpp index 33b67ad4c004..852630f2d01a 100644 --- a/lldb/source/API/SBType.cpp +++ b/lldb/source/API/SBType.cpp @@ -1,4 +1,4 @@ -//===-- SBType.cpp ----------------------------------------------*- C++ -*-===// +//===-- SBType.cpp --------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -89,7 +89,7 @@ SBType &SBType::operator=(const SBType &rhs) { return LLDB_RECORD_RESULT(*this); } -SBType::~SBType() {} +SBType::~SBType() = default; TypeImpl &SBType::ref() { if (m_opaque_sp.get() == nullptr) @@ -589,7 +589,7 @@ SBTypeList &SBTypeList::operator=(const SBTypeList &rhs) { SBTypeList, operator=,(const lldb::SBTypeList &), rhs); if (this != &rhs) { - m_opaque_up.reset(new TypeListImpl()); + m_opaque_up = std::make_unique<TypeListImpl>(); for (uint32_t i = 0, rhs_size = const_cast<SBTypeList &>(rhs).GetSize(); i < rhs_size; i++) Append(const_cast<SBTypeList &>(rhs).GetTypeAtIndex(i)); @@ -619,20 +619,20 @@ uint32_t SBTypeList::GetSize() { return m_opaque_up->GetSize(); } -SBTypeList::~SBTypeList() {} +SBTypeList::~SBTypeList() = default; SBTypeMember::SBTypeMember() : m_opaque_up() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBTypeMember); } -SBTypeMember::~SBTypeMember() {} +SBTypeMember::~SBTypeMember() = default; SBTypeMember::SBTypeMember(const SBTypeMember &rhs) : m_opaque_up() { LLDB_RECORD_CONSTRUCTOR(SBTypeMember, (const lldb::SBTypeMember &), rhs); if (this != &rhs) { if (rhs.IsValid()) - m_opaque_up.reset(new TypeMemberImpl(rhs.ref())); + m_opaque_up = std::make_unique<TypeMemberImpl>(rhs.ref()); } } @@ -642,7 +642,7 @@ lldb::SBTypeMember &SBTypeMember::operator=(const lldb::SBTypeMember &rhs) { if (this != &rhs) { if (rhs.IsValid()) - m_opaque_up.reset(new TypeMemberImpl(rhs.ref())); + m_opaque_up = std::make_unique<TypeMemberImpl>(rhs.ref()); } return LLDB_RECORD_RESULT(*this); } @@ -746,7 +746,7 @@ void SBTypeMember::reset(TypeMemberImpl *type_member_impl) { TypeMemberImpl &SBTypeMember::ref() { if (m_opaque_up == nullptr) - m_opaque_up.reset(new TypeMemberImpl()); + m_opaque_up = std::make_unique<TypeMemberImpl>(); return *m_opaque_up; } @@ -756,7 +756,7 @@ SBTypeMemberFunction::SBTypeMemberFunction() : m_opaque_sp() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBTypeMemberFunction); } -SBTypeMemberFunction::~SBTypeMemberFunction() {} +SBTypeMemberFunction::~SBTypeMemberFunction() = default; SBTypeMemberFunction::SBTypeMemberFunction(const SBTypeMemberFunction &rhs) : m_opaque_sp(rhs.m_opaque_sp) { @@ -802,7 +802,7 @@ const char *SBTypeMemberFunction::GetDemangledName() { ConstString mangled_str = m_opaque_sp->GetMangledName(); if (mangled_str) { Mangled mangled(mangled_str); - return mangled.GetDemangledName(mangled.GuessLanguage()).GetCString(); + return mangled.GetDemangledName().GetCString(); } } return nullptr; |
