From 83d685ee1bfb58ee53aee9e94595ff3ed4e44096 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 22 Nov 2022 13:39:20 -0500 Subject: clang-tidy: fix `modernize-use-equals-default` lints --- Source/cmGlobalVisualStudio10Generator.h | 2 +- Source/cmGlobalVisualStudio7Generator.cxx | 4 +--- Source/cmGlobalVisualStudioGenerator.cxx | 4 +--- Source/cmIDEOptions.cxx | 4 +--- Source/cmLocalVisualStudio10Generator.cxx | 4 +--- Source/cmLocalVisualStudioGenerator.cxx | 4 +--- Source/cmVSSetupHelper.h | 4 ++-- Source/cmVisualStudio10TargetGenerator.cxx | 4 +--- Source/cmVisualStudioSlnData.h | 2 +- Source/cmVisualStudioSlnParser.cxx | 4 +--- 10 files changed, 11 insertions(+), 25 deletions(-) diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h index f0ec721..3f01a9c 100644 --- a/Source/cmGlobalVisualStudio10Generator.h +++ b/Source/cmGlobalVisualStudio10Generator.h @@ -241,7 +241,7 @@ protected: private: struct LongestSourcePath { - LongestSourcePath() {} + LongestSourcePath() = default; size_t Length = 0; cmGeneratorTarget* Target = 0; cmSourceFile const* SourceFile = 0; diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index 7431176..a730f28 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -76,9 +76,7 @@ cmGlobalVisualStudio7Generator::cmGlobalVisualStudio7Generator( this->ExtraFlagTable = cmVS7ExtraFlagTable; } -cmGlobalVisualStudio7Generator::~cmGlobalVisualStudio7Generator() -{ -} +cmGlobalVisualStudio7Generator::~cmGlobalVisualStudio7Generator() = default; // Package GUID of Intel Visual Fortran plugin to VS IDE #define CM_INTEL_PLUGIN_GUID "{B68A201D-CB9B-47AF-A52F-7EEC72E217E4}" diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index 9d168d0..34bc963 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -51,9 +51,7 @@ cmGlobalVisualStudioGenerator::cmGlobalVisualStudioGenerator( } } -cmGlobalVisualStudioGenerator::~cmGlobalVisualStudioGenerator() -{ -} +cmGlobalVisualStudioGenerator::~cmGlobalVisualStudioGenerator() = default; cmGlobalVisualStudioGenerator::VSVersion cmGlobalVisualStudioGenerator::GetVersion() const diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx index c09aa46..31e3a0e 100644 --- a/Source/cmIDEOptions.cxx +++ b/Source/cmIDEOptions.cxx @@ -26,9 +26,7 @@ cmIDEOptions::cmIDEOptions() } } -cmIDEOptions::~cmIDEOptions() -{ -} +cmIDEOptions::~cmIDEOptions() = default; void cmIDEOptions::HandleFlag(std::string const& flag) { diff --git a/Source/cmLocalVisualStudio10Generator.cxx b/Source/cmLocalVisualStudio10Generator.cxx index 4c0d2eea..1eea453 100644 --- a/Source/cmLocalVisualStudio10Generator.cxx +++ b/Source/cmLocalVisualStudio10Generator.cxx @@ -63,9 +63,7 @@ cmLocalVisualStudio10Generator::cmLocalVisualStudio10Generator( { } -cmLocalVisualStudio10Generator::~cmLocalVisualStudio10Generator() -{ -} +cmLocalVisualStudio10Generator::~cmLocalVisualStudio10Generator() = default; void cmLocalVisualStudio10Generator::GenerateTarget(cmGeneratorTarget* target) { diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx index 2703c7b..c8cfa4e 100644 --- a/Source/cmLocalVisualStudioGenerator.cxx +++ b/Source/cmLocalVisualStudioGenerator.cxx @@ -24,9 +24,7 @@ cmLocalVisualStudioGenerator::cmLocalVisualStudioGenerator( { } -cmLocalVisualStudioGenerator::~cmLocalVisualStudioGenerator() -{ -} +cmLocalVisualStudioGenerator::~cmLocalVisualStudioGenerator() = default; cmGlobalVisualStudioGenerator::VSVersion cmLocalVisualStudioGenerator::GetVersion() const diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h index 6549b93..ebcb28e 100644 --- a/Source/cmVSSetupHelper.h +++ b/Source/cmVSSetupHelper.h @@ -17,7 +17,7 @@ template class SmartCOMPtr { public: - SmartCOMPtr() {} + SmartCOMPtr() = default; SmartCOMPtr(T* p) { ptr = p; @@ -71,7 +71,7 @@ private: class SmartBSTR { public: - SmartBSTR() {} + SmartBSTR() = default; SmartBSTR(const SmartBSTR& src) = delete; SmartBSTR& operator=(const SmartBSTR& src) = delete; operator BSTR() const { return str; } diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 2798e59..bf7dda5 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -293,9 +293,7 @@ cmVisualStudio10TargetGenerator::cmVisualStudio10TargetGenerator( this->ClassifyAllConfigSources(); } -cmVisualStudio10TargetGenerator::~cmVisualStudio10TargetGenerator() -{ -} +cmVisualStudio10TargetGenerator::~cmVisualStudio10TargetGenerator() = default; std::string cmVisualStudio10TargetGenerator::CalcCondition( const std::string& config) const diff --git a/Source/cmVisualStudioSlnData.h b/Source/cmVisualStudioSlnData.h index 100dd9b..7abe871 100644 --- a/Source/cmVisualStudioSlnData.h +++ b/Source/cmVisualStudioSlnData.h @@ -13,7 +13,7 @@ class cmSlnProjectEntry { public: - cmSlnProjectEntry() {} + cmSlnProjectEntry() = default; cmSlnProjectEntry(const std::string& guid, const std::string& name, const std::string& relativePath) : Guid(guid) diff --git a/Source/cmVisualStudioSlnParser.cxx b/Source/cmVisualStudioSlnParser.cxx index 479e3ec..6500039 100644 --- a/Source/cmVisualStudioSlnParser.cxx +++ b/Source/cmVisualStudioSlnParser.cxx @@ -384,9 +384,7 @@ void cmVisualStudioSlnParser::State::IgnoreUntilTag(const std::string& endTag) this->EndIgnoreTag = endTag; } -cmVisualStudioSlnParser::ResultData::ResultData() -{ -} +cmVisualStudioSlnParser::ResultData::ResultData() = default; void cmVisualStudioSlnParser::ResultData::Clear() { -- cgit v0.12