diff options
author | Tatyana Krasnukha <tatyana@synopsys.com> | 2021-02-18 12:32:22 +0300 |
---|---|---|
committer | Tatyana Krasnukha <tatyana@synopsys.com> | 2021-02-28 19:23:16 +0300 |
commit | 54d03a4985bc9a0a84c4dff835ec6ed0f607582f (patch) | |
tree | e10b3dad36450d7c8eb121214c013441338b7142 /lldb/source/Interpreter | |
parent | 9182117861896a03499bbca3612fc66ca4d36944 (diff) | |
download | llvm-54d03a4985bc9a0a84c4dff835ec6ed0f607582f.zip llvm-54d03a4985bc9a0a84c4dff835ec6ed0f607582f.tar.gz llvm-54d03a4985bc9a0a84c4dff835ec6ed0f607582f.tar.bz2 |
[lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default"
Diffstat (limited to 'lldb/source/Interpreter')
18 files changed, 1 insertions, 45 deletions
diff --git a/lldb/source/Interpreter/CommandHistory.cpp b/lldb/source/Interpreter/CommandHistory.cpp index 9c7919e..ffdcbbf 100644 --- a/lldb/source/Interpreter/CommandHistory.cpp +++ b/lldb/source/Interpreter/CommandHistory.cpp @@ -13,10 +13,6 @@ using namespace lldb; using namespace lldb_private; -CommandHistory::CommandHistory() : m_mutex(), m_history() {} - -CommandHistory::~CommandHistory() {} - size_t CommandHistory::GetSize() const { std::lock_guard<std::recursive_mutex> guard(m_mutex); return m_history.size(); diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index 71adf8c..9d27de4 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -49,8 +49,6 @@ CommandObject::CommandObject(CommandInterpreter &interpreter, m_cmd_syntax = std::string(syntax); } -CommandObject::~CommandObject() {} - Debugger &CommandObject::GetDebugger() { return m_interpreter.GetDebugger(); } llvm::StringRef CommandObject::GetHelp() { return m_cmd_help_short; } diff --git a/lldb/source/Interpreter/CommandReturnObject.cpp b/lldb/source/Interpreter/CommandReturnObject.cpp index 441a8e0..77d94bd 100644 --- a/lldb/source/Interpreter/CommandReturnObject.cpp +++ b/lldb/source/Interpreter/CommandReturnObject.cpp @@ -45,8 +45,6 @@ CommandReturnObject::CommandReturnObject(bool colors) m_status(eReturnStatusStarted), m_did_change_process_state(false), m_interactive(true) {} -CommandReturnObject::~CommandReturnObject() {} - void CommandReturnObject::AppendErrorWithFormat(const char *format, ...) { if (!format) return; diff --git a/lldb/source/Interpreter/OptionGroupArchitecture.cpp b/lldb/source/Interpreter/OptionGroupArchitecture.cpp index baca1c6..00541b7 100644 --- a/lldb/source/Interpreter/OptionGroupArchitecture.cpp +++ b/lldb/source/Interpreter/OptionGroupArchitecture.cpp @@ -13,10 +13,6 @@ using namespace lldb; using namespace lldb_private; -OptionGroupArchitecture::OptionGroupArchitecture() : m_arch_str() {} - -OptionGroupArchitecture::~OptionGroupArchitecture() {} - static constexpr OptionDefinition g_option_table[] = { {LLDB_OPT_SET_1, false, "arch", 'a', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeArchitecture, diff --git a/lldb/source/Interpreter/OptionGroupBoolean.cpp b/lldb/source/Interpreter/OptionGroupBoolean.cpp index 3482e78..3f73893 100644 --- a/lldb/source/Interpreter/OptionGroupBoolean.cpp +++ b/lldb/source/Interpreter/OptionGroupBoolean.cpp @@ -33,8 +33,6 @@ OptionGroupBoolean::OptionGroupBoolean(uint32_t usage_mask, bool required, m_option_definition.usage_text = usage_text; } -OptionGroupBoolean::~OptionGroupBoolean() {} - Status OptionGroupBoolean::SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) { diff --git a/lldb/source/Interpreter/OptionGroupFile.cpp b/lldb/source/Interpreter/OptionGroupFile.cpp index 9d9be5b..8be4b18 100644 --- a/lldb/source/Interpreter/OptionGroupFile.cpp +++ b/lldb/source/Interpreter/OptionGroupFile.cpp @@ -31,8 +31,6 @@ OptionGroupFile::OptionGroupFile(uint32_t usage_mask, bool required, m_option_definition.usage_text = usage_text; } -OptionGroupFile::~OptionGroupFile() {} - Status OptionGroupFile::SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) { diff --git a/lldb/source/Interpreter/OptionGroupFormat.cpp b/lldb/source/Interpreter/OptionGroupFormat.cpp index 0052f72..1cc5e70 100644 --- a/lldb/source/Interpreter/OptionGroupFormat.cpp +++ b/lldb/source/Interpreter/OptionGroupFormat.cpp @@ -24,8 +24,6 @@ OptionGroupFormat::OptionGroupFormat(lldb::Format default_format, m_count(default_count, default_count), m_prev_gdb_format('x'), m_prev_gdb_size('w') {} -OptionGroupFormat::~OptionGroupFormat() {} - static constexpr OptionDefinition g_option_table[] = { {LLDB_OPT_SET_1, false, "format", 'f', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeFormat, diff --git a/lldb/source/Interpreter/OptionGroupOutputFile.cpp b/lldb/source/Interpreter/OptionGroupOutputFile.cpp index 65105c3..1f305083 100644 --- a/lldb/source/Interpreter/OptionGroupOutputFile.cpp +++ b/lldb/source/Interpreter/OptionGroupOutputFile.cpp @@ -16,8 +16,6 @@ using namespace lldb_private; OptionGroupOutputFile::OptionGroupOutputFile() : m_file(), m_append(false, false) {} -OptionGroupOutputFile::~OptionGroupOutputFile() {} - static const uint32_t SHORT_OPTION_APND = 0x61706e64; // 'apnd' static constexpr OptionDefinition g_option_table[] = { diff --git a/lldb/source/Interpreter/OptionGroupPythonClassWithDict.cpp b/lldb/source/Interpreter/OptionGroupPythonClassWithDict.cpp index 217dab2..e768feb 100644 --- a/lldb/source/Interpreter/OptionGroupPythonClassWithDict.cpp +++ b/lldb/source/Interpreter/OptionGroupPythonClassWithDict.cpp @@ -81,8 +81,6 @@ OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict } -OptionGroupPythonClassWithDict::~OptionGroupPythonClassWithDict() {} - Status OptionGroupPythonClassWithDict::SetOptionValue( uint32_t option_idx, llvm::StringRef option_arg, diff --git a/lldb/source/Interpreter/OptionGroupString.cpp b/lldb/source/Interpreter/OptionGroupString.cpp index c9f78eb..75faaac 100644 --- a/lldb/source/Interpreter/OptionGroupString.cpp +++ b/lldb/source/Interpreter/OptionGroupString.cpp @@ -32,8 +32,6 @@ OptionGroupString::OptionGroupString(uint32_t usage_mask, bool required, m_option_definition.usage_text = usage_text; } -OptionGroupString::~OptionGroupString() {} - Status OptionGroupString::SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) { diff --git a/lldb/source/Interpreter/OptionGroupUInt64.cpp b/lldb/source/Interpreter/OptionGroupUInt64.cpp index 309855d..486941a 100644 --- a/lldb/source/Interpreter/OptionGroupUInt64.cpp +++ b/lldb/source/Interpreter/OptionGroupUInt64.cpp @@ -32,8 +32,6 @@ OptionGroupUInt64::OptionGroupUInt64(uint32_t usage_mask, bool required, m_option_definition.usage_text = usage_text; } -OptionGroupUInt64::~OptionGroupUInt64() {} - Status OptionGroupUInt64::SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) { diff --git a/lldb/source/Interpreter/OptionGroupUUID.cpp b/lldb/source/Interpreter/OptionGroupUUID.cpp index dc6f413..5b4c24a 100644 --- a/lldb/source/Interpreter/OptionGroupUUID.cpp +++ b/lldb/source/Interpreter/OptionGroupUUID.cpp @@ -13,10 +13,6 @@ using namespace lldb; using namespace lldb_private; -OptionGroupUUID::OptionGroupUUID() : m_uuid() {} - -OptionGroupUUID::~OptionGroupUUID() {} - static constexpr OptionDefinition g_option_table[] = { {LLDB_OPT_SET_1, false, "uuid", 'u', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeModuleUUID, "A module UUID value."}, diff --git a/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp b/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp index e0401f8..04861b5 100644 --- a/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp +++ b/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp @@ -19,10 +19,6 @@ using namespace lldb; using namespace lldb_private; -OptionGroupValueObjectDisplay::OptionGroupValueObjectDisplay() {} - -OptionGroupValueObjectDisplay::~OptionGroupValueObjectDisplay() {} - static const OptionDefinition g_option_table[] = { {LLDB_OPT_SET_1, false, "dynamic-type", 'd', OptionParser::eRequiredArgument, nullptr, GetDynamicValueTypes(), 0, diff --git a/lldb/source/Interpreter/OptionGroupVariable.cpp b/lldb/source/Interpreter/OptionGroupVariable.cpp index 9f57dbb..2451a3e 100644 --- a/lldb/source/Interpreter/OptionGroupVariable.cpp +++ b/lldb/source/Interpreter/OptionGroupVariable.cpp @@ -70,8 +70,6 @@ OptionGroupVariable::OptionGroupVariable(bool show_frame_options) : OptionGroup(), include_frame_options(show_frame_options), summary(ValidateNamedSummary), summary_string(ValidateSummaryString) {} -OptionGroupVariable::~OptionGroupVariable() {} - Status OptionGroupVariable::SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, diff --git a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp index 07013b5..eb9842a 100644 --- a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp +++ b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp @@ -74,10 +74,6 @@ bool OptionGroupWatchpoint::IsWatchSizeSupported(uint32_t watch_size) { return false; } -OptionGroupWatchpoint::OptionGroupWatchpoint() : OptionGroup() {} - -OptionGroupWatchpoint::~OptionGroupWatchpoint() {} - Status OptionGroupWatchpoint::SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, diff --git a/lldb/source/Interpreter/OptionValueEnumeration.cpp b/lldb/source/Interpreter/OptionValueEnumeration.cpp index 9a1e08d..8fcd8db 100644 --- a/lldb/source/Interpreter/OptionValueEnumeration.cpp +++ b/lldb/source/Interpreter/OptionValueEnumeration.cpp @@ -20,8 +20,6 @@ OptionValueEnumeration::OptionValueEnumeration( SetEnumerations(enumerators); } -OptionValueEnumeration::~OptionValueEnumeration() {} - void OptionValueEnumeration::DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) { if (dump_mask & eDumpOptionType) diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp index 9ecc9e2..5d3864d 100644 --- a/lldb/source/Interpreter/Options.cpp +++ b/lldb/source/Interpreter/Options.cpp @@ -27,7 +27,7 @@ using namespace lldb_private; // Options Options::Options() : m_getopt_table() { BuildValidOptionSets(); } -Options::~Options() {} +Options::~Options() = default; void Options::NotifyOptionParsingStarting(ExecutionContext *execution_context) { m_seen_options.clear(); diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp index 013ed6a..2c55d08 100644 --- a/lldb/source/Interpreter/ScriptInterpreter.cpp +++ b/lldb/source/Interpreter/ScriptInterpreter.cpp @@ -30,8 +30,6 @@ ScriptInterpreter::ScriptInterpreter(Debugger &debugger, lldb::ScriptLanguage script_lang) : m_debugger(debugger), m_script_lang(script_lang) {} -ScriptInterpreter::~ScriptInterpreter() {} - void ScriptInterpreter::CollectDataForBreakpointCommandCallback( std::vector<BreakpointOptions *> &bp_options_vec, CommandReturnObject &result) { |