aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShafik Yaghmour <syaghmour@apple.com>2022-03-31 13:20:46 -0700
committerShafik Yaghmour <syaghmour@apple.com>2022-03-31 13:21:49 -0700
commit24f9a2f53db78df59761f46ceed3bb5e7aa0d331 (patch)
treeb87064847eb692b5e8a7f2c11eeafd33b091ae85
parent585c85abe545a42a47a3b3d0411b91421e9552e9 (diff)
downloadllvm-24f9a2f53db78df59761f46ceed3bb5e7aa0d331.zip
llvm-24f9a2f53db78df59761f46ceed3bb5e7aa0d331.tar.gz
llvm-24f9a2f53db78df59761f46ceed3bb5e7aa0d331.tar.bz2
[LLDB] Applying clang-tidy modernize-use-equals-default over LLDB
Applied modernize-use-equals-default clang-tidy check over LLDB. This check is already present in the lldb/.clang-tidy config. Differential Revision: https://reviews.llvm.org/D121844
-rw-r--r--lldb/source/API/SBMemoryRegionInfoList.cpp3
-rw-r--r--lldb/source/API/SBQueue.cpp2
-rw-r--r--lldb/source/API/SBValue.cpp4
-rw-r--r--lldb/source/API/SBValueList.cpp4
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp16
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.cpp4
-rw-r--r--lldb/source/Commands/CommandObjectCommands.cpp10
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp2
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp2
-rw-r--r--lldb/source/Commands/CommandObjectLog.cpp2
-rw-r--r--lldb/source/Commands/CommandObjectMemory.cpp2
-rw-r--r--lldb/source/Commands/CommandObjectMemoryTag.cpp2
-rw-r--r--lldb/source/Commands/CommandObjectPlatform.cpp8
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp4
-rw-r--r--lldb/source/Commands/CommandObjectReproducer.cpp4
-rw-r--r--lldb/source/Commands/CommandObjectSettings.cpp6
-rw-r--r--lldb/source/Commands/CommandObjectSource.cpp6
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp6
-rw-r--r--lldb/source/Commands/CommandObjectType.cpp16
-rw-r--r--lldb/source/Commands/CommandObjectWatchpoint.cpp8
-rw-r--r--lldb/source/Commands/CommandObjectWatchpointCommand.cpp2
-rw-r--r--lldb/source/Core/IOHandlerCursesGUI.cpp4
-rw-r--r--lldb/source/Host/macosx/cfcpp/CFCData.cpp2
-rw-r--r--lldb/source/Host/macosx/cfcpp/CFCMutableArray.cpp9
-rw-r--r--lldb/source/Host/macosx/cfcpp/CFCMutableDictionary.cpp4
-rw-r--r--lldb/source/Host/macosx/cfcpp/CFCMutableSet.cpp3
-rw-r--r--lldb/source/Host/macosx/cfcpp/CFCString.cpp2
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp2
-rw-r--r--lldb/source/Plugins/REPL/Clang/ClangREPL.cpp2
-rw-r--r--lldb/source/Target/ExecutionContext.cpp9
-rw-r--r--lldb/source/Utility/XcodeSDK.cpp5
-rw-r--r--lldb/tools/debugserver/source/DNBBreakpoint.cpp6
-rw-r--r--lldb/tools/debugserver/source/DNBDataRef.cpp2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CFBundle.cpp5
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CFString.cpp4
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp2
-rw-r--r--lldb/tools/debugserver/source/StdStringExtractor.cpp2
-rw-r--r--lldb/tools/debugserver/source/TTYState.cpp4
-rw-r--r--lldb/tools/lldb-vscode/IOStream.cpp2
-rw-r--r--lldb/tools/lldb-vscode/VSCode.cpp2
41 files changed, 87 insertions, 99 deletions
diff --git a/lldb/source/API/SBMemoryRegionInfoList.cpp b/lldb/source/API/SBMemoryRegionInfoList.cpp
index 39dee86..f8381d1 100644
--- a/lldb/source/API/SBMemoryRegionInfoList.cpp
+++ b/lldb/source/API/SBMemoryRegionInfoList.cpp
@@ -21,8 +21,7 @@ class MemoryRegionInfoListImpl {
public:
MemoryRegionInfoListImpl() : m_regions() {}
- MemoryRegionInfoListImpl(const MemoryRegionInfoListImpl &rhs)
- : m_regions(rhs.m_regions) {}
+ MemoryRegionInfoListImpl(const MemoryRegionInfoListImpl &rhs) = default;
MemoryRegionInfoListImpl &operator=(const MemoryRegionInfoListImpl &rhs) {
if (this == &rhs)
diff --git a/lldb/source/API/SBQueue.cpp b/lldb/source/API/SBQueue.cpp
index 1aeede4..b97da3e 100644
--- a/lldb/source/API/SBQueue.cpp
+++ b/lldb/source/API/SBQueue.cpp
@@ -27,7 +27,7 @@ namespace lldb_private {
class QueueImpl {
public:
- QueueImpl() {}
+ QueueImpl() = default;
QueueImpl(const lldb::QueueSP &queue_sp) { m_queue_wp = queue_sp; }
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index 20581cf..c39e00d 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -69,9 +69,7 @@ public:
}
}
- ValueImpl(const ValueImpl &rhs)
- : m_valobj_sp(rhs.m_valobj_sp), m_use_dynamic(rhs.m_use_dynamic),
- m_use_synthetic(rhs.m_use_synthetic), m_name(rhs.m_name) {}
+ ValueImpl(const ValueImpl &rhs) = default;
ValueImpl &operator=(const ValueImpl &rhs) {
if (this != &rhs) {
diff --git a/lldb/source/API/SBValueList.cpp b/lldb/source/API/SBValueList.cpp
index a67030c..4b36b04 100644
--- a/lldb/source/API/SBValueList.cpp
+++ b/lldb/source/API/SBValueList.cpp
@@ -19,9 +19,9 @@ using namespace lldb_private;
class ValueListImpl {
public:
- ValueListImpl() {}
+ ValueListImpl() = default;
- ValueListImpl(const ValueListImpl &rhs) : m_values(rhs.m_values) {}
+ ValueListImpl(const ValueListImpl &rhs) = default;
ValueListImpl &operator=(const ValueListImpl &rhs) {
if (this == &rhs)
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index c4e55fd..4515c7e 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -179,7 +179,7 @@ public:
class BreakpointDummyOptionGroup : public OptionGroup {
public:
- BreakpointDummyOptionGroup() {}
+ BreakpointDummyOptionGroup() = default;
~BreakpointDummyOptionGroup() override = default;
@@ -252,7 +252,7 @@ public:
class CommandOptions : public OptionGroup {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1118,7 +1118,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1249,7 +1249,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1401,7 +1401,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1618,7 +1618,7 @@ public:
class BreakpointAccessOptionGroup : public OptionGroup {
public:
- BreakpointAccessOptionGroup() {}
+ BreakpointAccessOptionGroup() = default;
~BreakpointAccessOptionGroup() override = default;
@@ -2059,7 +2059,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -2255,7 +2255,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
index 637e8b8..bf0cae5 100644
--- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -281,7 +281,7 @@ are no syntax errors may indicate that a function was declared but never called.
class CommandOptions : public OptionGroup {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -501,7 +501,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp
index 7998c1f..51385e0 100644
--- a/lldb/source/Commands/CommandObjectCommands.cpp
+++ b/lldb/source/Commands/CommandObjectCommands.cpp
@@ -206,7 +206,7 @@ class CommandObjectCommandsAlias : public CommandObjectRaw {
protected:
class CommandOptions : public OptionGroup {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1022,7 +1022,7 @@ private:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1267,7 +1267,7 @@ public:
protected:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1422,7 +1422,7 @@ public:
protected:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1880,7 +1880,7 @@ public:
protected:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index 9a57917..59c2cdb 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -24,7 +24,7 @@
using namespace lldb;
using namespace lldb_private;
-CommandObjectExpression::CommandOptions::CommandOptions() {}
+CommandObjectExpression::CommandOptions::CommandOptions() = default;
CommandObjectExpression::CommandOptions::~CommandOptions() = default;
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 70881f2..ead0594 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -726,7 +726,7 @@ class CommandObjectFrameRecognizerAdd : public CommandObjectParsed {
private:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg,
diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp
index d432ab2..c8df308 100644
--- a/lldb/source/Commands/CommandObjectLog.cpp
+++ b/lldb/source/Commands/CommandObjectLog.cpp
@@ -75,7 +75,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp
index bb59fee..35f5244 100644
--- a/lldb/source/Commands/CommandObjectMemory.cpp
+++ b/lldb/source/Commands/CommandObjectMemory.cpp
@@ -1186,7 +1186,7 @@ class CommandObjectMemoryWrite : public CommandObjectParsed {
public:
class OptionGroupWriteMemory : public OptionGroup {
public:
- OptionGroupWriteMemory() {}
+ OptionGroupWriteMemory() = default;
~OptionGroupWriteMemory() override = default;
diff --git a/lldb/source/Commands/CommandObjectMemoryTag.cpp b/lldb/source/Commands/CommandObjectMemoryTag.cpp
index 3ad5774..67461ca 100644
--- a/lldb/source/Commands/CommandObjectMemoryTag.cpp
+++ b/lldb/source/Commands/CommandObjectMemoryTag.cpp
@@ -138,7 +138,7 @@ class CommandObjectMemoryTagWrite : public CommandObjectParsed {
public:
class OptionGroupTagWrite : public OptionGroup {
public:
- OptionGroupTagWrite() {}
+ OptionGroupTagWrite() = default;
~OptionGroupTagWrite() override = default;
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp
index bf586ad..774ef6c 100644
--- a/lldb/source/Commands/CommandObjectPlatform.cpp
+++ b/lldb/source/Commands/CommandObjectPlatform.cpp
@@ -600,7 +600,7 @@ public:
protected:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -692,7 +692,7 @@ public:
protected:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1315,7 +1315,7 @@ protected:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1679,7 +1679,7 @@ class CommandObjectPlatformShell : public CommandObjectRaw {
public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 41410f5c..484ef6a 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -1214,7 +1214,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1317,7 +1317,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp
index f7ff066..31ed02f 100644
--- a/lldb/source/Commands/CommandObjectReproducer.cpp
+++ b/lldb/source/Commands/CommandObjectReproducer.cpp
@@ -223,7 +223,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -351,7 +351,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp
index db6a7bc..e4162e5 100644
--- a/lldb/source/Commands/CommandObjectSettings.cpp
+++ b/lldb/source/Commands/CommandObjectSettings.cpp
@@ -86,7 +86,7 @@ insert-before or insert-after.");
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -329,7 +329,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -427,7 +427,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp
index 79f1ce4..67286c2 100644
--- a/lldb/source/Commands/CommandObjectSource.cpp
+++ b/lldb/source/Commands/CommandObjectSource.cpp
@@ -36,7 +36,7 @@ using namespace lldb_private;
class CommandObjectSourceInfo : public CommandObjectParsed {
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -623,7 +623,7 @@ protected:
class CommandObjectSourceList : public CommandObjectParsed {
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -755,7 +755,7 @@ protected:
SourceInfo(ConstString name, const LineEntry &line_entry)
: function(name), line_entry(line_entry) {}
- SourceInfo() {}
+ SourceInfo() = default;
bool IsValid() const { return (bool)function && line_entry.IsValid(); }
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index 1d33723..61944eb 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -1936,7 +1936,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -2841,7 +2841,7 @@ class CommandObjectTargetModulesList : public CommandObjectParsed {
public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -3183,7 +3183,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp
index f4ecd80..b79c19b 100644
--- a/lldb/source/Commands/CommandObjectType.cpp
+++ b/lldb/source/Commands/CommandObjectType.cpp
@@ -286,7 +286,7 @@ class CommandObjectTypeSynthAdd : public CommandObjectParsed,
private:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -498,7 +498,7 @@ class CommandObjectTypeFormatAdd : public CommandObjectParsed {
private:
class CommandOptions : public OptionGroup {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -707,7 +707,7 @@ class CommandObjectTypeFormatterDelete : public CommandObjectParsed {
protected:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -872,7 +872,7 @@ class CommandObjectTypeFormatterClear : public CommandObjectParsed {
private:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1815,7 +1815,7 @@ protected:
class CommandObjectTypeCategoryEnable : public CommandObjectParsed {
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -1992,7 +1992,7 @@ protected:
class CommandObjectTypeCategoryDisable : public CommandObjectParsed {
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -2405,7 +2405,7 @@ private:
typedef std::vector<std::string> option_vector;
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -2661,7 +2661,7 @@ protected:
class CommandOptions : public OptionGroup {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectWatchpoint.cpp b/lldb/source/Commands/CommandObjectWatchpoint.cpp
index 9701553..faeca87 100644
--- a/lldb/source/Commands/CommandObjectWatchpoint.cpp
+++ b/lldb/source/Commands/CommandObjectWatchpoint.cpp
@@ -164,7 +164,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -454,7 +454,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -577,7 +577,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
@@ -702,7 +702,7 @@ public:
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Commands/CommandObjectWatchpointCommand.cpp b/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
index a429e56..0cc8327 100644
--- a/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
@@ -313,7 +313,7 @@ are no syntax errors may indicate that a function was declared but never called.
class CommandOptions : public Options {
public:
- CommandOptions() {}
+ CommandOptions() = default;
~CommandOptions() override = default;
diff --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp
index 7fbf382..6f416ee 100644
--- a/lldb/source/Core/IOHandlerCursesGUI.cpp
+++ b/lldb/source/Core/IOHandlerCursesGUI.cpp
@@ -2282,7 +2282,7 @@ protected:
class FormDelegate {
public:
- FormDelegate() {}
+ FormDelegate() = default;
virtual ~FormDelegate() = default;
@@ -3644,7 +3644,7 @@ protected:
class SearcherDelegate {
public:
- SearcherDelegate() {}
+ SearcherDelegate() = default;
virtual ~SearcherDelegate() = default;
diff --git a/lldb/source/Host/macosx/cfcpp/CFCData.cpp b/lldb/source/Host/macosx/cfcpp/CFCData.cpp
index 65b45aa..ed79e36 100644
--- a/lldb/source/Host/macosx/cfcpp/CFCData.cpp
+++ b/lldb/source/Host/macosx/cfcpp/CFCData.cpp
@@ -12,7 +12,7 @@
CFCData::CFCData(CFDataRef data) : CFCReleaser<CFDataRef>(data) {}
// CFCData copy constructor
-CFCData::CFCData(const CFCData &rhs) : CFCReleaser<CFDataRef>(rhs) {}
+CFCData::CFCData(const CFCData &rhs) = default;
// CFCData copy constructor
CFCData &CFCData::operator=(const CFCData &rhs)
diff --git a/lldb/source/Host/macosx/cfcpp/CFCMutableArray.cpp b/lldb/source/Host/macosx/cfcpp/CFCMutableArray.cpp
index 126e1f6f..9a5567fc 100644
--- a/lldb/source/Host/macosx/cfcpp/CFCMutableArray.cpp
+++ b/lldb/source/Host/macosx/cfcpp/CFCMutableArray.cpp
@@ -14,11 +14,10 @@ CFCMutableArray::CFCMutableArray(CFMutableArrayRef s)
: CFCReleaser<CFMutableArrayRef>(s) {}
// CFCMutableArray copy constructor
-CFCMutableArray::CFCMutableArray(const CFCMutableArray &rhs)
- : CFCReleaser<CFMutableArrayRef>(rhs) // NOTE: this won't make a copy of the
- // array, just add a new reference to
- // it
-{}
+CFCMutableArray::CFCMutableArray(const CFCMutableArray &rhs) =
+ default; // NOTE: this won't make a copy of the
+ // array, just add a new reference to
+ // it
// CFCMutableArray copy constructor
CFCMutableArray &CFCMutableArray::operator=(const CFCMutableArray &rhs) {
diff --git a/lldb/source/Host/macosx/cfcpp/CFCMutableDictionary.cpp b/lldb/source/Host/macosx/cfcpp/CFCMutableDictionary.cpp
index ce003e3..8b8672c 100644
--- a/lldb/source/Host/macosx/cfcpp/CFCMutableDictionary.cpp
+++ b/lldb/source/Host/macosx/cfcpp/CFCMutableDictionary.cpp
@@ -13,8 +13,8 @@ CFCMutableDictionary::CFCMutableDictionary(CFMutableDictionaryRef s)
: CFCReleaser<CFMutableDictionaryRef>(s) {}
// CFCMutableDictionary copy constructor
-CFCMutableDictionary::CFCMutableDictionary(const CFCMutableDictionary &rhs)
- : CFCReleaser<CFMutableDictionaryRef>(rhs) {}
+CFCMutableDictionary::CFCMutableDictionary(const CFCMutableDictionary &rhs) =
+ default;
// CFCMutableDictionary copy constructor
const CFCMutableDictionary &CFCMutableDictionary::
diff --git a/lldb/source/Host/macosx/cfcpp/CFCMutableSet.cpp b/lldb/source/Host/macosx/cfcpp/CFCMutableSet.cpp
index ee5f620..da2ef6c 100644
--- a/lldb/source/Host/macosx/cfcpp/CFCMutableSet.cpp
+++ b/lldb/source/Host/macosx/cfcpp/CFCMutableSet.cpp
@@ -14,8 +14,7 @@ CFCMutableSet::CFCMutableSet(CFMutableSetRef s)
: CFCReleaser<CFMutableSetRef>(s) {}
// CFCMutableSet copy constructor
-CFCMutableSet::CFCMutableSet(const CFCMutableSet &rhs)
- : CFCReleaser<CFMutableSetRef>(rhs) {}
+CFCMutableSet::CFCMutableSet(const CFCMutableSet &rhs) = default;
// CFCMutableSet copy constructor
const CFCMutableSet &CFCMutableSet::operator=(const CFCMutableSet &rhs) {
diff --git a/lldb/source/Host/macosx/cfcpp/CFCString.cpp b/lldb/source/Host/macosx/cfcpp/CFCString.cpp
index 86498a1..be27916 100644
--- a/lldb/source/Host/macosx/cfcpp/CFCString.cpp
+++ b/lldb/source/Host/macosx/cfcpp/CFCString.cpp
@@ -14,7 +14,7 @@
CFCString::CFCString(CFStringRef s) : CFCReleaser<CFStringRef>(s) {}
// CFCString copy constructor
-CFCString::CFCString(const CFCString &rhs) : CFCReleaser<CFStringRef>(rhs) {}
+CFCString::CFCString(const CFCString &rhs) = default;
// CFCString copy constructor
CFCString &CFCString::operator=(const CFCString &rhs) {
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp
index e8e4141..160740d 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp
@@ -806,7 +806,7 @@ void ClangASTImporter::ForgetSource(clang::ASTContext *dst_ast,
md->removeOriginsWithContext(src_ast);
}
-ClangASTImporter::MapCompleter::~MapCompleter() {}
+ClangASTImporter::MapCompleter::~MapCompleter() = default;
llvm::Expected<Decl *>
ClangASTImporter::ASTImporterDelegate::ImportImpl(Decl *From) {
diff --git a/lldb/source/Plugins/REPL/Clang/ClangREPL.cpp b/lldb/source/Plugins/REPL/Clang/ClangREPL.cpp
index 5060dbb..2bd38f8 100644
--- a/lldb/source/Plugins/REPL/Clang/ClangREPL.cpp
+++ b/lldb/source/Plugins/REPL/Clang/ClangREPL.cpp
@@ -19,7 +19,7 @@ ClangREPL::ClangREPL(lldb::LanguageType language, Target &target)
: REPL(eKindClang, target), m_language(language),
m_implicit_expr_result_regex("\\$[0-9]+") {}
-ClangREPL::~ClangREPL() {}
+ClangREPL::~ClangREPL() = default;
void ClangREPL::Initialize() {
LanguageSet languages;
diff --git a/lldb/source/Target/ExecutionContext.cpp b/lldb/source/Target/ExecutionContext.cpp
index 977dec6..a5288b8 100644
--- a/lldb/source/Target/ExecutionContext.cpp
+++ b/lldb/source/Target/ExecutionContext.cpp
@@ -19,9 +19,7 @@ using namespace lldb_private;
ExecutionContext::ExecutionContext()
: m_target_sp(), m_process_sp(), m_thread_sp(), m_frame_sp() {}
-ExecutionContext::ExecutionContext(const ExecutionContext &rhs)
- : m_target_sp(rhs.m_target_sp), m_process_sp(rhs.m_process_sp),
- m_thread_sp(rhs.m_thread_sp), m_frame_sp(rhs.m_frame_sp) {}
+ExecutionContext::ExecutionContext(const ExecutionContext &rhs) = default;
ExecutionContext::ExecutionContext(const lldb::TargetSP &target_sp,
bool get_process)
@@ -414,9 +412,8 @@ ExecutionContextRef::ExecutionContextRef(Target *target, bool adopt_selected)
}
ExecutionContextRef::ExecutionContextRef(const ExecutionContextRef &rhs)
- : m_target_wp(rhs.m_target_wp), m_process_wp(rhs.m_process_wp),
- m_thread_wp(rhs.m_thread_wp), m_tid(rhs.m_tid),
- m_stack_id(rhs.m_stack_id) {}
+
+ = default;
ExecutionContextRef &ExecutionContextRef::
operator=(const ExecutionContextRef &rhs) {
diff --git a/lldb/source/Utility/XcodeSDK.cpp b/lldb/source/Utility/XcodeSDK.cpp
index 4f64042..371b864 100644
--- a/lldb/source/Utility/XcodeSDK.cpp
+++ b/lldb/source/Utility/XcodeSDK.cpp
@@ -54,10 +54,7 @@ XcodeSDK::XcodeSDK(XcodeSDK::Info info) : m_name(GetName(info.type).str()) {
}
}
-XcodeSDK &XcodeSDK::operator=(const XcodeSDK &other) {
- m_name = other.m_name;
- return *this;
-}
+XcodeSDK &XcodeSDK::operator=(const XcodeSDK &other) = default;
bool XcodeSDK::operator==(const XcodeSDK &other) {
return m_name == other.m_name;
diff --git a/lldb/tools/debugserver/source/DNBBreakpoint.cpp b/lldb/tools/debugserver/source/DNBBreakpoint.cpp
index 9f402b4..47b38ea 100644
--- a/lldb/tools/debugserver/source/DNBBreakpoint.cpp
+++ b/lldb/tools/debugserver/source/DNBBreakpoint.cpp
@@ -25,7 +25,7 @@ DNBBreakpoint::DNBBreakpoint(nub_addr_t addr, nub_size_t byte_size,
m_is_watchpoint(0), m_watch_read(0), m_watch_write(0),
m_hw_index(INVALID_NUB_HW_INDEX) {}
-DNBBreakpoint::~DNBBreakpoint() {}
+DNBBreakpoint::~DNBBreakpoint() = default;
void DNBBreakpoint::Dump() const {
if (IsBreakpoint()) {
@@ -45,9 +45,9 @@ void DNBBreakpoint::Dump() const {
#pragma mark-- DNBBreakpointList
-DNBBreakpointList::DNBBreakpointList() {}
+DNBBreakpointList::DNBBreakpointList() = default;
-DNBBreakpointList::~DNBBreakpointList() {}
+DNBBreakpointList::~DNBBreakpointList() = default;
DNBBreakpoint *DNBBreakpointList::Add(nub_addr_t addr, nub_size_t length,
bool hardware) {
diff --git a/lldb/tools/debugserver/source/DNBDataRef.cpp b/lldb/tools/debugserver/source/DNBDataRef.cpp
index c6355f1..13ffd25 100644
--- a/lldb/tools/debugserver/source/DNBDataRef.cpp
+++ b/lldb/tools/debugserver/source/DNBDataRef.cpp
@@ -32,7 +32,7 @@ DNBDataRef::DNBDataRef(const uint8_t *start, size_t size, bool swap)
// Destructor
-DNBDataRef::~DNBDataRef() {}
+DNBDataRef::~DNBDataRef() = default;
// Get8
uint8_t DNBDataRef::Get8(offset_t *offset_ptr) const {
diff --git a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
index 6971c1f..5db10fb 100644
--- a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
@@ -21,8 +21,7 @@ CFBundle::CFBundle(const char *path)
}
// CFBundle copy constructor
-CFBundle::CFBundle(const CFBundle &rhs)
- : CFReleaser<CFBundleRef>(rhs), m_bundle_url(rhs.m_bundle_url) {}
+CFBundle::CFBundle(const CFBundle &rhs) = default;
// CFBundle copy constructor
CFBundle &CFBundle::operator=(const CFBundle &rhs) {
@@ -32,7 +31,7 @@ CFBundle &CFBundle::operator=(const CFBundle &rhs) {
}
// Destructor
-CFBundle::~CFBundle() {}
+CFBundle::~CFBundle() = default;
// Set the path for a bundle by supplying a
bool CFBundle::SetPath(const char *path) {
diff --git a/lldb/tools/debugserver/source/MacOSX/CFString.cpp b/lldb/tools/debugserver/source/MacOSX/CFString.cpp
index 637ba65..fa78ab2 100644
--- a/lldb/tools/debugserver/source/MacOSX/CFString.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/CFString.cpp
@@ -18,7 +18,7 @@
CFString::CFString(CFStringRef s) : CFReleaser<CFStringRef>(s) {}
// CFString copy constructor
-CFString::CFString(const CFString &rhs) : CFReleaser<CFStringRef>(rhs) {}
+CFString::CFString(const CFString &rhs) = default;
// CFString copy constructor
CFString &CFString::operator=(const CFString &rhs) {
@@ -36,7 +36,7 @@ CFString::CFString(const char *cstr, CFStringEncoding cstr_encoding)
}
// Destructor
-CFString::~CFString() {}
+CFString::~CFString() = default;
const char *CFString::GetFileSystemRepresentation(std::string &s) {
return CFString::FileSystemRepresentation(get(), s);
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp b/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp
index 71a33ad..cf36879 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp
@@ -26,7 +26,7 @@ MachThreadList::MachThreadList()
: m_threads(), m_threads_mutex(PTHREAD_MUTEX_RECURSIVE),
m_is_64_bit(false) {}
-MachThreadList::~MachThreadList() {}
+MachThreadList::~MachThreadList() = default;
nub_state_t MachThreadList::GetState(nub_thread_t tid) {
MachThreadSP thread_sp(GetThreadByID(tid));
diff --git a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
index 15f1b5d..f3aa4d7 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
@@ -28,7 +28,7 @@ static const vm_size_t kInvalidPageSize = ~0;
MachVMMemory::MachVMMemory() : m_page_size(kInvalidPageSize), m_err(0) {}
-MachVMMemory::~MachVMMemory() {}
+MachVMMemory::~MachVMMemory() = default;
nub_size_t MachVMMemory::PageSize(task_t task) {
if (m_page_size == kInvalidPageSize) {
diff --git a/lldb/tools/debugserver/source/StdStringExtractor.cpp b/lldb/tools/debugserver/source/StdStringExtractor.cpp
index 2035394..9e27070 100644
--- a/lldb/tools/debugserver/source/StdStringExtractor.cpp
+++ b/lldb/tools/debugserver/source/StdStringExtractor.cpp
@@ -30,7 +30,7 @@ StdStringExtractor::StdStringExtractor(const char *packet_cstr)
}
// Destructor
-StdStringExtractor::~StdStringExtractor() {}
+StdStringExtractor::~StdStringExtractor() = default;
char StdStringExtractor::GetChar(char fail_value) {
if (m_index < m_packet.size()) {
diff --git a/lldb/tools/debugserver/source/TTYState.cpp b/lldb/tools/debugserver/source/TTYState.cpp
index 9fe83a3..d097bc8 100644
--- a/lldb/tools/debugserver/source/TTYState.cpp
+++ b/lldb/tools/debugserver/source/TTYState.cpp
@@ -18,7 +18,7 @@
TTYState::TTYState()
: m_fd(-1), m_tflags(-1), m_ttystateErr(-1), m_processGroup(-1) {}
-TTYState::~TTYState() {}
+TTYState::~TTYState() = default;
bool TTYState::GetTTYState(int fd, bool saveProcessGroup) {
if (fd >= 0 && ::isatty(fd)) {
@@ -62,7 +62,7 @@ bool TTYState::SetTTYState() const {
TTYStateSwitcher::TTYStateSwitcher() : m_currentState(~0) {}
-TTYStateSwitcher::~TTYStateSwitcher() {}
+TTYStateSwitcher::~TTYStateSwitcher() = default;
bool TTYStateSwitcher::GetState(uint32_t idx, int fd, bool saveProcessGroup) {
if (ValidStateIndex(idx))
diff --git a/lldb/tools/lldb-vscode/IOStream.cpp b/lldb/tools/lldb-vscode/IOStream.cpp
index 4b11b90..6e2a89c 100644
--- a/lldb/tools/lldb-vscode/IOStream.cpp
+++ b/lldb/tools/lldb-vscode/IOStream.cpp
@@ -22,7 +22,7 @@
using namespace lldb_vscode;
-StreamDescriptor::StreamDescriptor() {}
+StreamDescriptor::StreamDescriptor() = default;
StreamDescriptor::StreamDescriptor(StreamDescriptor &&other) {
*this = std::move(other);
diff --git a/lldb/tools/lldb-vscode/VSCode.cpp b/lldb/tools/lldb-vscode/VSCode.cpp
index adc4549..6cbdbfa 100644
--- a/lldb/tools/lldb-vscode/VSCode.cpp
+++ b/lldb/tools/lldb-vscode/VSCode.cpp
@@ -58,7 +58,7 @@ VSCode::VSCode()
log.reset(new std::ofstream(log_file_path));
}
-VSCode::~VSCode() {}
+VSCode::~VSCode() = default;
int64_t VSCode::GetLineForPC(int64_t sourceReference, lldb::addr_t pc) const {
auto pos = source_map.find(sourceReference);