[Lldb-commits] [lldb] 97db238 - [lldb] Fix -Wdtor-name warnings
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon May 4 14:36:57 PDT 2020
Author: Jonas Devlieghere
Date: 2020-05-04T14:32:28-07:00
New Revision: 97db238c17020678c61d7874fb92729c7c9d3cab
URL: https://github.com/llvm/llvm-project/commit/97db238c17020678c61d7874fb92729c7c9d3cab
DIFF: https://github.com/llvm/llvm-project/commit/97db238c17020678c61d7874fb92729c7c9d3cab.diff
LOG: [lldb] Fix -Wdtor-name warnings
Fix warning: ISO C++ requires the name after '::~' to be found in the
same scope as the name before '::~' [-Wdtor-name]
Added:
Modified:
lldb/source/Plugins/Language/ObjC/NSArray.cpp
lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
lldb/source/Plugins/Language/ObjC/NSSet.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Language/ObjC/NSArray.cpp b/lldb/source/Plugins/Language/ObjC/NSArray.cpp
index 8c889927b936..e1c789ce26d8 100644
--- a/lldb/source/Plugins/Language/ObjC/NSArray.cpp
+++ b/lldb/source/Plugins/Language/ObjC/NSArray.cpp
@@ -529,7 +529,7 @@ lldb_private::formatters::NSArrayMSyntheticFrontEndBase::GetIndexOfChildWithName
template <typename D32, typename D64>
lldb_private::formatters::
GenericNSArrayMSyntheticFrontEnd<D32, D64>::
- ~GenericNSArrayMSyntheticFrontEnd() {
+ ~GenericNSArrayMSyntheticFrontEnd<D32, D64>() {
delete m_data_32;
m_data_32 = nullptr;
delete m_data_64;
@@ -596,7 +596,7 @@ lldb_private::formatters::GenericNSArrayISyntheticFrontEnd<D32, D64, Inline>::
template <typename D32, typename D64, bool Inline>
lldb_private::formatters::GenericNSArrayISyntheticFrontEnd<D32, D64, Inline>::
- ~GenericNSArrayISyntheticFrontEnd() {
+ ~GenericNSArrayISyntheticFrontEnd<D32, D64, Inline>() {
delete m_data_32;
m_data_32 = nullptr;
delete m_data_64;
diff --git a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
index 995b8751ec55..998c72e429e7 100644
--- a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
+++ b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
@@ -900,7 +900,7 @@ lldb_private::formatters::GenericNSDictionaryMSyntheticFrontEnd<D32,D64>::
template <typename D32, typename D64>
lldb_private::formatters::GenericNSDictionaryMSyntheticFrontEnd<D32,D64>::
- ~GenericNSDictionaryMSyntheticFrontEnd() {
+ ~GenericNSDictionaryMSyntheticFrontEnd<D32,D64>() {
delete m_data_32;
m_data_32 = nullptr;
delete m_data_64;
diff --git a/lldb/source/Plugins/Language/ObjC/NSSet.cpp b/lldb/source/Plugins/Language/ObjC/NSSet.cpp
index 3a24aa6059ca..543a1c5978e0 100644
--- a/lldb/source/Plugins/Language/ObjC/NSSet.cpp
+++ b/lldb/source/Plugins/Language/ObjC/NSSet.cpp
@@ -682,7 +682,7 @@ lldb_private::formatters::
template <typename D32, typename D64>
lldb_private::formatters::
- GenericNSSetMSyntheticFrontEnd<D32, D64>::~GenericNSSetMSyntheticFrontEnd() {
+ GenericNSSetMSyntheticFrontEnd<D32, D64>::~GenericNSSetMSyntheticFrontEnd<D32, D64>() {
delete m_data_32;
m_data_32 = nullptr;
delete m_data_64;
More information about the lldb-commits
mailing list