Commit 55671b41 authored by wahikihiki's avatar wahikihiki Committed by Brad King
Browse files

clang-tidy: Use `= default`

Suppress some cases in `Source/cmGeneratorExpressionNode.cxx` and
`Source/cmUVHandlePtr.h` where a few older compilers require a
user-defined default constructor (with `{}`).
parent a7f5cd45
......@@ -14,7 +14,6 @@ modernize-*,\
-modernize-raw-string-literal,\
-modernize-return-braced-init-list,\
-modernize-use-auto,\
-modernize-use-equals-default,\
-modernize-use-equals-delete,\
-modernize-use-noexcept,\
-modernize-use-transparent-functors,\
......
......@@ -21,9 +21,7 @@ cmCPackIFWGenerator::cmCPackIFWGenerator()
this->Generator = this;
}
cmCPackIFWGenerator::~cmCPackIFWGenerator()
{
}
cmCPackIFWGenerator::~cmCPackIFWGenerator() = default;
int cmCPackIFWGenerator::PackageFiles()
{
......
......@@ -16,9 +16,7 @@
#include <stddef.h>
#include <utility>
cmCPackIFWInstaller::cmCPackIFWInstaller()
{
}
cmCPackIFWInstaller::cmCPackIFWInstaller() = default;
void cmCPackIFWInstaller::printSkippedOptionWarning(
const std::string& optionName, const std::string& optionValue)
......
......@@ -24,9 +24,7 @@ cmCPackIFWPackage::CompareStruct::CompareStruct()
}
//------------------------------------------------------- DependenceStruct ---
cmCPackIFWPackage::DependenceStruct::DependenceStruct()
{
}
cmCPackIFWPackage::DependenceStruct::DependenceStruct() = default;
cmCPackIFWPackage::DependenceStruct::DependenceStruct(
const std::string& dependence)
......
......@@ -10,6 +10,4 @@ cmCPack7zGenerator::cmCPack7zGenerator()
{
}
cmCPack7zGenerator::~cmCPack7zGenerator()
{
}
cmCPack7zGenerator::~cmCPack7zGenerator() = default;
......@@ -22,9 +22,7 @@ cmCPackArchiveGenerator::cmCPackArchiveGenerator(cmArchiveWrite::Compress t,
this->ArchiveFormat = format;
}
cmCPackArchiveGenerator::~cmCPackArchiveGenerator()
{
}
cmCPackArchiveGenerator::~cmCPackArchiveGenerator() = default;
std::string cmCPackArchiveGenerator::GetArchiveComponentFileName(
const std::string& component, bool isGroupName)
......
......@@ -8,13 +8,9 @@
#include "cmCPackLog.h"
#include "cmSystemTools.h"
cmCPackBundleGenerator::cmCPackBundleGenerator()
{
}
cmCPackBundleGenerator::cmCPackBundleGenerator() = default;
cmCPackBundleGenerator::~cmCPackBundleGenerator()
{
}
cmCPackBundleGenerator::~cmCPackBundleGenerator() = default;
int cmCPackBundleGenerator::InitializeInternal()
{
......
......@@ -432,13 +432,9 @@ bool DebGenerator::generateDeb() const
} // end anonymous namespace
cmCPackDebGenerator::cmCPackDebGenerator()
{
}
cmCPackDebGenerator::cmCPackDebGenerator() = default;
cmCPackDebGenerator::~cmCPackDebGenerator()
{
}
cmCPackDebGenerator::~cmCPackDebGenerator() = default;
int cmCPackDebGenerator::InitializeInternal()
{
......
......@@ -62,9 +62,7 @@ cmCPackDragNDropGenerator::cmCPackDragNDropGenerator()
this->componentPackageMethod = ONE_PACKAGE;
}
cmCPackDragNDropGenerator::~cmCPackDragNDropGenerator()
{
}
cmCPackDragNDropGenerator::~cmCPackDragNDropGenerator() = default;
int cmCPackDragNDropGenerator::InitializeInternal()
{
......
......@@ -31,9 +31,7 @@ int cmCPackFreeBSDGenerator::InitializeInternal()
return this->Superclass::InitializeInternal();
}
cmCPackFreeBSDGenerator::~cmCPackFreeBSDGenerator()
{
}
cmCPackFreeBSDGenerator::~cmCPackFreeBSDGenerator() = default;
// This is a wrapper, for use only in stream-based output,
// that will output a string in UCL escaped fashion (in particular,
......@@ -103,7 +101,7 @@ public:
{
}
virtual ~ManifestKey() {}
virtual ~ManifestKey() = default;
// Output the value associated with this key to the stream @p s.
// Format is to be decided by subclasses.
......
......@@ -30,9 +30,7 @@ cmCPackNSISGenerator::cmCPackNSISGenerator(bool nsis64)
Nsis64 = nsis64;
}
cmCPackNSISGenerator::~cmCPackNSISGenerator()
{
}
cmCPackNSISGenerator::~cmCPackNSISGenerator() = default;
int cmCPackNSISGenerator::PackageFiles()
{
......
......@@ -11,13 +11,9 @@
#include "cmSystemTools.h"
#include "cm_sys_stat.h"
cmCPackOSXX11Generator::cmCPackOSXX11Generator()
{
}
cmCPackOSXX11Generator::cmCPackOSXX11Generator() = default;
cmCPackOSXX11Generator::~cmCPackOSXX11Generator()
{
}
cmCPackOSXX11Generator::~cmCPackOSXX11Generator() = default;
int cmCPackOSXX11Generator::PackageFiles()
{
......
......@@ -15,9 +15,7 @@ cmCPackPKGGenerator::cmCPackPKGGenerator()
this->componentPackageMethod = ONE_PACKAGE;
}
cmCPackPKGGenerator::~cmCPackPKGGenerator()
{
}
cmCPackPKGGenerator::~cmCPackPKGGenerator() = default;
bool cmCPackPKGGenerator::SupportsComponentInstallation() const
{
......
......@@ -30,9 +30,7 @@ cmCPackPackageMakerGenerator::cmCPackPackageMakerGenerator()
this->PackageCompatibilityVersion = getVersion(10, 4);
}
cmCPackPackageMakerGenerator::~cmCPackPackageMakerGenerator()
{
}
cmCPackPackageMakerGenerator::~cmCPackPackageMakerGenerator() = default;
bool cmCPackPackageMakerGenerator::SupportsComponentInstallation() const
{
......
......@@ -17,9 +17,7 @@ cmCPackProductBuildGenerator::cmCPackProductBuildGenerator()
this->componentPackageMethod = ONE_PACKAGE;
}
cmCPackProductBuildGenerator::~cmCPackProductBuildGenerator()
{
}
cmCPackProductBuildGenerator::~cmCPackProductBuildGenerator() = default;
int cmCPackProductBuildGenerator::PackageFiles()
{
......
......@@ -14,13 +14,9 @@
#include "cmCPackLog.h"
#include "cmSystemTools.h"
cmCPackRPMGenerator::cmCPackRPMGenerator()
{
}
cmCPackRPMGenerator::cmCPackRPMGenerator() = default;
cmCPackRPMGenerator::~cmCPackRPMGenerator()
{
}
cmCPackRPMGenerator::~cmCPackRPMGenerator() = default;
int cmCPackRPMGenerator::InitializeInternal()
{
......
......@@ -13,13 +13,9 @@
#include "cmSystemTools.h"
#include "cm_sys_stat.h"
cmCPackSTGZGenerator::cmCPackSTGZGenerator()
{
}
cmCPackSTGZGenerator::cmCPackSTGZGenerator() = default;
cmCPackSTGZGenerator::~cmCPackSTGZGenerator()
{
}
cmCPackSTGZGenerator::~cmCPackSTGZGenerator() = default;
int cmCPackSTGZGenerator::InitializeInternal()
{
......
......@@ -10,6 +10,4 @@ cmCPackTGZGenerator::cmCPackTGZGenerator()
{
}
cmCPackTGZGenerator::~cmCPackTGZGenerator()
{
}
cmCPackTGZGenerator::~cmCPackTGZGenerator() = default;
......@@ -10,6 +10,4 @@ cmCPackTXZGenerator::cmCPackTXZGenerator()
{
}
cmCPackTXZGenerator::~cmCPackTXZGenerator()
{
}
cmCPackTXZGenerator::~cmCPackTXZGenerator() = default;
......@@ -10,6 +10,4 @@ cmCPackTarBZip2Generator::cmCPackTarBZip2Generator()
{
}
cmCPackTarBZip2Generator::~cmCPackTarBZip2Generator()
{
}
cmCPackTarBZip2Generator::~cmCPackTarBZip2Generator() = default;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment