diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 | 
| commit | cfca06d7963fa0909f90483b42a6d7d194d01e08 (patch) | |
| tree | 209fb2a2d68f8f277793fc8df46c753d31bc853b /lldb/source/API/SBValue.cpp | |
| parent | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (diff) | |
Notes
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
| -rw-r--r-- | lldb/source/API/SBValue.cpp | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index 396a9d3ea10c4..7485b0ee1838e 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -1,4 +1,4 @@ -//===-- SBValue.cpp ---------------------------------------------*- C++ -*-===// +//===-- SBValue.cpp -------------------------------------------------------===//  //  // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.  // See https://llvm.org/LICENSE.txt for license information. @@ -53,7 +53,7 @@ using namespace lldb_private;  class ValueImpl {  public: -  ValueImpl() {} +  ValueImpl() = default;    ValueImpl(lldb::ValueObjectSP in_valobj_sp,              lldb::DynamicValueType use_dynamic, bool use_synthetic, @@ -137,7 +137,7 @@ public:      }      if (m_use_synthetic) { -      ValueObjectSP synthetic_sp = value_sp->GetSyntheticValue(m_use_synthetic); +      ValueObjectSP synthetic_sp = value_sp->GetSyntheticValue();        if (synthetic_sp)          value_sp = synthetic_sp;      } @@ -201,7 +201,7 @@ private:  class ValueLocker {  public: -  ValueLocker() {} +  ValueLocker() = default;    ValueObjectSP GetLockedSP(ValueImpl &in_value) {      return in_value.GetSP(m_stop_locker, m_lock, m_lock_error); @@ -239,7 +239,7 @@ SBValue &SBValue::operator=(const SBValue &rhs) {    return LLDB_RECORD_RESULT(*this);  } -SBValue::~SBValue() {} +SBValue::~SBValue() = default;  bool SBValue::IsValid() {    LLDB_RECORD_METHOD_NO_ARGS(bool, SBValue, IsValid); @@ -1154,7 +1154,7 @@ bool SBValue::GetExpressionPath(SBStream &description) {    ValueLocker locker;    lldb::ValueObjectSP value_sp(GetSP(locker));    if (value_sp) { -    value_sp->GetExpressionPath(description.ref(), false); +    value_sp->GetExpressionPath(description.ref());      return true;    }    return false; @@ -1168,7 +1168,7 @@ bool SBValue::GetExpressionPath(SBStream &description,    ValueLocker locker;    lldb::ValueObjectSP value_sp(GetSP(locker));    if (value_sp) { -    value_sp->GetExpressionPath(description.ref(), qualify_cxx_base_classes); +    value_sp->GetExpressionPath(description.ref());      return true;    }    return false; @@ -1493,7 +1493,7 @@ lldb::SBWatchpoint SBValue::Watch(bool resolve_location, bool read, bool write,            StreamString ss;            // True to show fullpath for declaration file.            decl.DumpStopContext(&ss, true); -          watchpoint_sp->SetDeclInfo(ss.GetString()); +          watchpoint_sp->SetDeclInfo(std::string(ss.GetString()));          }        }      } | 
