[Lldb-commits] [lldb] 5312139 - Add a default copy-assignment or copy-constructor for -Wdeprecated-copy warnings.
Eric Christopher via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 4 20:39:31 PST 2019
Author: Eric Christopher
Date: 2019-12-04T20:35:32-08:00
New Revision: 5312139f779f9f18cc5fa1c4ce5e5c5c1e854e90
URL: https://github.com/llvm/llvm-project/commit/5312139f779f9f18cc5fa1c4ce5e5c5c1e854e90
DIFF: https://github.com/llvm/llvm-project/commit/5312139f779f9f18cc5fa1c4ce5e5c5c1e854e90.diff
LOG: Add a default copy-assignment or copy-constructor for -Wdeprecated-copy warnings.
Added:
Modified:
lldb/source/Core/IOHandlerCursesGUI.cpp
lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
Removed:
################################################################################
diff --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp
index cb6fbaa99ea6..a9114aa71b06 100644
--- a/lldb/source/Core/IOHandlerCursesGUI.cpp
+++ b/lldb/source/Core/IOHandlerCursesGUI.cpp
@@ -1461,6 +1461,8 @@ class TreeItem {
return *this;
}
+ TreeItem(const TreeItem &) = default;
+
size_t GetDepth() const {
if (m_parent)
return 1 + m_parent->GetDepth();
diff --git a/lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp b/lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
index 619c718a1c1b..f6d8d4d9a7eb 100644
--- a/lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
+++ b/lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
@@ -94,6 +94,8 @@ class MapIterator {
MapIterator(ValueObject *entry, size_t depth = 0)
: m_entry(entry), m_max_depth(depth), m_error(false) {}
+ MapIterator &operator=(const MapIterator &) = default;
+
ValueObjectSP value() { return m_entry.GetEntry(); }
ValueObjectSP advance(size_t count) {
More information about the lldb-commits
mailing list