summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-01-23 00:32:51 +0100
committerBrad King <brad.king@kitware.com>2019-01-25 06:45:00 -0500
commit094f01d0f019147afbdfc1c18ad1a6ca232eb3b8 (patch)
treec21fa56b9092c742d7dc371d523b5a80b2330f03
parent55671b41d2d182ce8d3201012ec55badd7116615 (diff)
downloadcmake-094f01d0f019147afbdfc1c18ad1a6ca232eb3b8.tar.gz
cleanup: Prefer compiler provided special member functions
-rw-r--r--Source/CTest/cmCTestGIT.cxx1
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx1
-rw-r--r--Source/CTest/cmCTestRunTest.h2
-rw-r--r--Source/CTest/cmCTestScriptHandler.cxx2
-rw-r--r--Source/CTest/cmCTestSubmitHandler.cxx6
-rw-r--r--Source/CTest/cmParseCoberturaCoverage.cxx17
-rw-r--r--Source/CTest/cmParseJacocoCoverage.cxx5
-rw-r--r--Source/cmCPluginAPI.cxx1
-rw-r--r--Source/cmCTest.h2
-rw-r--r--Source/cmCacheManager.h1
-rw-r--r--Source/cmCommandArgumentsHelper.h2
-rw-r--r--Source/cmComputeLinkDepends.h2
-rw-r--r--Source/cmDependsC.h1
-rw-r--r--Source/cmDocumentation.h1
-rw-r--r--Source/cmExecutionStatus.h2
-rw-r--r--Source/cmFileCommand.cxx1
-rw-r--r--Source/cmFileMonitor.cxx3
-rw-r--r--Source/cmFindLibraryCommand.cxx1
-rw-r--r--Source/cmFindPackageCommand.cxx1
-rw-r--r--Source/cmFunctionCommand.cxx5
-rw-r--r--Source/cmFunctionCommand.h4
-rw-r--r--Source/cmGeneratorTarget.h5
-rw-r--r--Source/cmGlobVerificationManager.h4
-rw-r--r--Source/cmGlobalGenerator.h2
-rw-r--r--Source/cmGlobalNinjaGenerator.h2
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.h1
-rw-r--r--Source/cmIfCommand.h13
-rw-r--r--Source/cmLinkItem.h4
-rw-r--r--Source/cmListFileCache.h10
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h1
-rw-r--r--Source/cmMacroCommand.cxx5
-rw-r--r--Source/cmMacroCommand.h4
-rw-r--r--Source/cmMakefile.cxx1
-rw-r--r--Source/cmQtAutoGenInitializer.h3
-rw-r--r--Source/cmQtAutoGenerator.h3
-rw-r--r--Source/cmTimestamp.h2
-rw-r--r--Source/cmVSSetupHelper.h2
-rw-r--r--Source/cmVariableWatch.h1
38 files changed, 11 insertions, 113 deletions
diff --git a/Source/CTest/cmCTestGIT.cxx b/Source/CTest/cmCTestGIT.cxx
index c0225eae68..210abe55ba 100644
--- a/Source/CTest/cmCTestGIT.cxx
+++ b/Source/CTest/cmCTestGIT.cxx
@@ -475,7 +475,6 @@ private:
std::string EMail;
unsigned long Time = 0;
long TimeZone = 0;
- Person() = default;
};
void ParsePerson(const char* str, Person& person)
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index 2b17d03328..bc1c3cb572 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -44,7 +44,6 @@ public:
: Handler(handler)
{
}
- ~TestComparator() = default;
// Sorts tests in descending order of cost
bool operator()(int index1, int index2) const
diff --git a/Source/CTest/cmCTestRunTest.h b/Source/CTest/cmCTestRunTest.h
index c78641319a..918d5fa58b 100644
--- a/Source/CTest/cmCTestRunTest.h
+++ b/Source/CTest/cmCTestRunTest.h
@@ -27,8 +27,6 @@ class cmCTestRunTest
public:
explicit cmCTestRunTest(cmCTestMultiProcessHandler& multiHandler);
- ~cmCTestRunTest() = default;
-
void SetNumberOfRuns(int n) { this->NumberOfRunsLeft = n; }
void SetRunUntilFailOn() { this->RunUntilFail = true; }
void SetTestProperties(cmCTestTestHandler::cmCTestTestProperties* prop)
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx
index 1231f31a1f..0fd0a7729d 100644
--- a/Source/CTest/cmCTestScriptHandler.cxx
+++ b/Source/CTest/cmCTestScriptHandler.cxx
@@ -53,8 +53,6 @@ struct cmListFileFunction;
class cmCTestScriptFunctionBlocker : public cmFunctionBlocker
{
public:
- cmCTestScriptFunctionBlocker() = default;
- ~cmCTestScriptFunctionBlocker() override = default;
bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
cmExecutionStatus& /*status*/) override;
// virtual bool ShouldRemove(const cmListFileFunction& lff, cmMakefile &mf);
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx
index 9e1f409bd1..87112da9e0 100644
--- a/Source/CTest/cmCTestSubmitHandler.cxx
+++ b/Source/CTest/cmCTestSubmitHandler.cxx
@@ -30,10 +30,6 @@ typedef std::vector<char> cmCTestSubmitHandlerVectorOfChar;
class cmCTestSubmitHandler::ResponseParser : public cmXMLParser
{
public:
- ResponseParser() { this->Status = STATUS_OK; }
- ~ResponseParser() override = default;
-
-public:
enum StatusType
{
STATUS_OK,
@@ -41,7 +37,7 @@ public:
STATUS_ERROR
};
- StatusType Status;
+ StatusType Status = STATUS_OK;
std::string Filename;
std::string MD5;
std::string Message;
diff --git a/Source/CTest/cmParseCoberturaCoverage.cxx b/Source/CTest/cmParseCoberturaCoverage.cxx
index 1669b07022..848a034c95 100644
--- a/Source/CTest/cmParseCoberturaCoverage.cxx
+++ b/Source/CTest/cmParseCoberturaCoverage.cxx
@@ -13,19 +13,12 @@ class cmParseCoberturaCoverage::XMLParser : public cmXMLParser
{
public:
XMLParser(cmCTest* ctest, cmCTestCoverageHandlerContainer& cont)
- : CTest(ctest)
+ : FilePaths{ cont.SourceDir, cont.BinaryDir }
+ , CTest(ctest)
, Coverage(cont)
{
- this->InSources = false;
- this->InSource = false;
- this->SkipThisClass = false;
- this->FilePaths.push_back(this->Coverage.SourceDir);
- this->FilePaths.push_back(this->Coverage.BinaryDir);
- this->CurFileName.clear();
}
- ~XMLParser() override = default;
-
protected:
void EndElement(const std::string& name) override
{
@@ -144,9 +137,9 @@ protected:
}
private:
- bool InSources;
- bool InSource;
- bool SkipThisClass;
+ bool InSources = false;
+ bool InSource = false;
+ bool SkipThisClass = false;
std::vector<std::string> FilePaths;
typedef cmCTestCoverageHandlerContainer::SingleFileCoverageVector
FileLinesType;
diff --git a/Source/CTest/cmParseJacocoCoverage.cxx b/Source/CTest/cmParseJacocoCoverage.cxx
index b2d3b1b2cb..61c5dcbbdb 100644
--- a/Source/CTest/cmParseJacocoCoverage.cxx
+++ b/Source/CTest/cmParseJacocoCoverage.cxx
@@ -18,13 +18,8 @@ public:
: CTest(ctest)
, Coverage(cont)
{
- this->FilePath.clear();
- this->PackagePath.clear();
- this->PackageName.clear();
}
- ~XMLParser() override = default;
-
protected:
void EndElement(const std::string& /*name*/) override {}
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index f49df740d6..3427527b6e 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -474,7 +474,6 @@ int CCONV cmGetTotalArgumentSize(int argc, char** argv)
// API for source files.
struct cmCPluginAPISourceFile
{
- cmCPluginAPISourceFile() = default;
cmSourceFile* RealSourceFile = nullptr;
std::string SourceName;
std::string SourceExtension;
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index cdbd665bbb..92a02c3169 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -57,8 +57,6 @@ public:
/** Representation of one part. */
struct PartInfo
{
- PartInfo() = default;
-
void SetName(const std::string& name) { this->Name = name; }
const std::string& GetName() const { return this->Name; }
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h
index 1031d11608..0c70ed27ff 100644
--- a/Source/cmCacheManager.h
+++ b/Source/cmCacheManager.h
@@ -42,7 +42,6 @@ private:
void AppendProperty(const std::string& property, const char* value,
bool asString = false);
bool Initialized = false;
- CacheEntry() = default;
};
public:
diff --git a/Source/cmCommandArgumentsHelper.h b/Source/cmCommandArgumentsHelper.h
index 76d17ab538..9579861e61 100644
--- a/Source/cmCommandArgumentsHelper.h
+++ b/Source/cmCommandArgumentsHelper.h
@@ -172,8 +172,6 @@ class cmCommandArgumentGroup
friend class cmCommandArgument;
public:
- cmCommandArgumentGroup() = default;
-
/// All members of this group may follow the given argument
void Follows(const cmCommandArgument* arg);
diff --git a/Source/cmComputeLinkDepends.h b/Source/cmComputeLinkDepends.h
index a6bb49f69f..252f8748ce 100644
--- a/Source/cmComputeLinkDepends.h
+++ b/Source/cmComputeLinkDepends.h
@@ -38,8 +38,6 @@ public:
cmGeneratorTarget const* Target = nullptr;
bool IsSharedDep = false;
bool IsFlag = false;
- LinkEntry() = default;
- LinkEntry(LinkEntry const& r) = default;
};
typedef std::vector<LinkEntry> EntryVector;
diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h
index dab03f3d7f..411458abf3 100644
--- a/Source/cmDependsC.h
+++ b/Source/cmDependsC.h
@@ -75,7 +75,6 @@ public:
struct cmIncludeLines
{
- cmIncludeLines() = default;
std::vector<UnscannedEntry> UnscannedEntries;
bool Used = false;
};
diff --git a/Source/cmDocumentation.h b/Source/cmDocumentation.h
index 1026064eb9..cf74b800d1 100644
--- a/Source/cmDocumentation.h
+++ b/Source/cmDocumentation.h
@@ -115,7 +115,6 @@ private:
struct RequestedHelpItem
{
- RequestedHelpItem() = default;
cmDocumentationEnums::Type HelpType = None;
std::string Filename;
std::string Argument;
diff --git a/Source/cmExecutionStatus.h b/Source/cmExecutionStatus.h
index f9189f7b40..56199dd935 100644
--- a/Source/cmExecutionStatus.h
+++ b/Source/cmExecutionStatus.h
@@ -11,8 +11,6 @@
class cmExecutionStatus
{
public:
- cmExecutionStatus() = default;
-
void Clear()
{
this->ReturnInvoked = false;
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 0b404fef95..1eb28fcbe1 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -1102,7 +1102,6 @@ protected:
{
bool Exclude = false;
mode_t Permissions = 0;
- MatchProperties() = default;
};
struct MatchRule
{
diff --git a/Source/cmFileMonitor.cxx b/Source/cmFileMonitor.cxx
index 82877472e6..56ee739b06 100644
--- a/Source/cmFileMonitor.cxx
+++ b/Source/cmFileMonitor.cxx
@@ -19,7 +19,6 @@ void on_fs_close(uv_handle_t* handle);
class cmIBaseWatcher
{
public:
- cmIBaseWatcher() = default;
virtual ~cmIBaseWatcher() = default;
virtual void Trigger(const std::string& pathSegment, int events,
@@ -150,8 +149,6 @@ public:
p->AddChildWatcher(ps, this);
}
- ~cmRealDirectoryWatcher() override = default;
-
void StartWatching() final
{
if (!this->Handle) {
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index 3400b36245..73d602de71 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/Source/cmFindLibraryCommand.cxx
@@ -202,7 +202,6 @@ struct cmFindLibraryHelper
bool TryRaw = false;
std::string Raw;
cmsys::RegularExpression Regex;
- Name() = default;
};
std::vector<Name> Names;
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 0a5463b380..f9ac310d9c 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -1688,7 +1688,6 @@ private:
class cmFileList
{
public:
- cmFileList() = default;
virtual ~cmFileList() = default;
cmFileList& operator/(cmFileListGeneratorBase const& rhs)
{
diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx
index d2bf687d0f..264a3385cb 100644
--- a/Source/cmFunctionCommand.cxx
+++ b/Source/cmFunctionCommand.cxx
@@ -14,11 +14,6 @@
class cmFunctionHelperCommand : public cmCommand
{
public:
- cmFunctionHelperCommand() = default;
-
- ///! clean up any memory allocated by the function
- ~cmFunctionHelperCommand() override = default;
-
/**
* This is a virtual constructor for the command.
*/
diff --git a/Source/cmFunctionCommand.h b/Source/cmFunctionCommand.h
index 90f7d823fb..8b37df032b 100644
--- a/Source/cmFunctionCommand.h
+++ b/Source/cmFunctionCommand.h
@@ -18,15 +18,13 @@ class cmMakefile;
class cmFunctionFunctionBlocker : public cmFunctionBlocker
{
public:
- cmFunctionFunctionBlocker() { this->Depth = 0; }
- ~cmFunctionFunctionBlocker() override = default;
bool IsFunctionBlocked(const cmListFileFunction&, cmMakefile& mf,
cmExecutionStatus&) override;
bool ShouldRemove(const cmListFileFunction&, cmMakefile& mf) override;
std::vector<std::string> Args;
std::vector<cmListFileFunction> Functions;
- int Depth;
+ int Depth = 0;
};
/// Starts function() ... endfunction() block
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 8afb548cca..d72e0515a6 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -111,7 +111,6 @@ public:
std::set<std::string> ExpectedXamlHeaders;
std::set<std::string> ExpectedXamlSources;
bool Initialized = false;
- KindedSources() = default;
};
/** Get all sources needed for a configuration with kinds assigned. */
@@ -562,7 +561,6 @@ public:
};
struct SourceFileFlags
{
- SourceFileFlags() = default;
SourceFileType Type = SourceFileTypeNormal;
const char* MacFolder = nullptr; // location inside Mac content folders
};
@@ -750,7 +748,6 @@ private:
struct CompatibleInterfaces : public CompatibleInterfacesBase
{
- CompatibleInterfaces() = default;
bool Done = false;
};
mutable std::map<std::string, CompatibleInterfaces> CompatibleInterfacesMap;
@@ -764,7 +761,6 @@ private:
struct LinkImplClosure : public std::vector<cmGeneratorTarget const*>
{
- LinkImplClosure() = default;
bool Done = false;
};
mutable std::map<std::string, LinkImplClosure> LinkImplClosureMap;
@@ -784,7 +780,6 @@ private:
// Cache import information from properties for each configuration.
struct ImportInfo
{
- ImportInfo() = default;
bool NoSOName = false;
ManagedType Managed = Native;
unsigned int Multiplicity = 0;
diff --git a/Source/cmGlobVerificationManager.h b/Source/cmGlobVerificationManager.h
index 1024328505..f7146bec09 100644
--- a/Source/cmGlobVerificationManager.h
+++ b/Source/cmGlobVerificationManager.h
@@ -21,9 +21,6 @@
*/
class cmGlobVerificationManager
{
-public:
- cmGlobVerificationManager() = default;
-
protected:
///! Save verification script for given makefile.
///! Saves to output <path>/<CMakeFilesDirectory>/VerifyGlobs.cmake
@@ -73,7 +70,6 @@ private:
bool Initialized = false;
std::vector<std::string> Files;
std::vector<std::pair<std::string, cmListFileBacktrace>> Backtraces;
- CacheEntryValue() = default;
};
typedef std::map<CacheEntryKey, CacheEntryValue> CacheEntryMap;
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 3bf63097c7..da05a374b1 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -479,7 +479,6 @@ protected:
std::vector<std::string> Depends;
std::string WorkingDir;
bool UsesTerminal = false;
- GlobalTargetInfo() = default;
};
void CreateDefaultGlobalTargets(std::vector<GlobalTargetInfo>& targets);
@@ -608,7 +607,6 @@ private:
long LastDiskTime = -1;
std::set<std::string> All;
std::set<std::string> Generated;
- DirectoryContent() = default;
};
std::map<std::string, DirectoryContent> DirectoryContentMap;
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index fb39b30192..4ad7d24122 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -183,8 +183,6 @@ public:
return new cmGlobalGeneratorSimpleFactory<cmGlobalNinjaGenerator>();
}
- ~cmGlobalNinjaGenerator() override = default;
-
cmLocalGenerator* CreateLocalGenerator(cmMakefile* mf) override;
std::string GetName() const override
diff --git a/Source/cmGlobalUnixMakefileGenerator3.h b/Source/cmGlobalUnixMakefileGenerator3.h
index a6b58e8670..7d5be1ae1d 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.h
+++ b/Source/cmGlobalUnixMakefileGenerator3.h
@@ -217,7 +217,6 @@ protected:
// Store per-target progress counters.
struct TargetProgress
{
- TargetProgress() = default;
unsigned long NumberOfActions = 0;
std::string VariableFile;
std::vector<unsigned long> Marks;
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index c984976fff..d34ed02c8b 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -19,13 +19,6 @@ class cmMakefile;
class cmIfFunctionBlocker : public cmFunctionBlocker
{
public:
- cmIfFunctionBlocker()
- {
- this->HasRun = false;
- this->ElseSeen = false;
- this->ScopeDepth = 0;
- }
- ~cmIfFunctionBlocker() override = default;
bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
cmExecutionStatus&) override;
bool ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf) override;
@@ -33,9 +26,9 @@ public:
std::vector<cmListFileArgument> Args;
std::vector<cmListFileFunction> Functions;
bool IsBlocking;
- bool HasRun;
- bool ElseSeen;
- unsigned int ScopeDepth;
+ bool HasRun = false;
+ bool ElseSeen = false;
+ unsigned int ScopeDepth = 0;
};
/// Starts an if block
diff --git a/Source/cmLinkItem.h b/Source/cmLinkItem.h
index d50b5fc9bd..5b635b5b31 100644
--- a/Source/cmLinkItem.h
+++ b/Source/cmLinkItem.h
@@ -77,13 +77,10 @@ struct cmLinkInterface : public cmLinkInterfaceLibraries
std::vector<cmLinkItem> WrongConfigLibraries;
bool ImplementationIsInterface = false;
-
- cmLinkInterface() = default;
};
struct cmOptionalLinkInterface : public cmLinkInterface
{
- cmOptionalLinkInterface() = default;
bool LibrariesDone = false;
bool AllDone = false;
bool Exists = false;
@@ -105,7 +102,6 @@ struct cmLinkImplementation : public cmLinkImplementationLibraries
// Cache link implementation computation from each configuration.
struct cmOptionalLinkImplementation : public cmLinkImplementation
{
- cmOptionalLinkImplementation() = default;
bool LibrariesDone = false;
bool LanguagesDone = false;
bool HadHeadSensitiveCondition = false;
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index e7b1c87443..945741540b 100644
--- a/Source/cmListFileCache.h
+++ b/Source/cmListFileCache.h
@@ -73,7 +73,6 @@ public:
std::string Name;
std::string FilePath;
long Line = 0;
- cmListFileContext() = default;
static cmListFileContext FromCommandContext(cmCommandContext const& lfcc,
std::string const& fileName)
@@ -110,15 +109,6 @@ public:
// indicated by the given valid snapshot.
cmListFileBacktrace(cmStateSnapshot const& snapshot);
- // Backtraces may be copied, moved, and assigned as values.
- cmListFileBacktrace(cmListFileBacktrace const&) = default;
- cmListFileBacktrace(cmListFileBacktrace&&) // NOLINT(clang-tidy)
- noexcept = default;
- cmListFileBacktrace& operator=(cmListFileBacktrace const&) = default;
- cmListFileBacktrace& operator=(cmListFileBacktrace&&) // NOLINT(clang-tidy)
- noexcept = default;
- ~cmListFileBacktrace() = default;
-
cmStateSnapshot GetBottom() const;
// Get a backtrace with the given file scope added to the top.
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index a3a0ddf94e..8fc0daddb4 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -279,7 +279,6 @@ private:
bool HasSourceExtension = false;
bool HasPreprocessRule = false;
bool HasAssembleRule = false;
- LocalObjectInfo() = default;
};
void GetLocalObjectFiles(
std::map<std::string, LocalObjectInfo>& localObjectFiles);
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index 1b94ab3fef..7279d5fcf8 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -17,11 +17,6 @@
class cmMacroHelperCommand : public cmCommand
{
public:
- cmMacroHelperCommand() = default;
-
- ///! clean up any memory allocated by the macro
- ~cmMacroHelperCommand() override = default;
-
/**
* This is a virtual constructor for the command.
*/
diff --git a/Source/cmMacroCommand.h b/Source/cmMacroCommand.h
index 8f5f540451..b54ed66050 100644
--- a/Source/cmMacroCommand.h
+++ b/Source/cmMacroCommand.h
@@ -18,15 +18,13 @@ class cmMakefile;
class cmMacroFunctionBlocker : public cmFunctionBlocker
{
public:
- cmMacroFunctionBlocker() { this->Depth = 0; }
- ~cmMacroFunctionBlocker() override = default;
bool IsFunctionBlocked(const cmListFileFunction&, cmMakefile& mf,
cmExecutionStatus&) override;
bool ShouldRemove(const cmListFileFunction&, cmMakefile& mf) override;
std::vector<std::string> Args;
std::vector<cmListFileFunction> Functions;
- int Depth;
+ int Depth = 0;
};
/// Starts macro() ... endmacro() block
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index fc8348fa94..1a1e11f97b 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2712,7 +2712,6 @@ typedef enum
} t_domain;
struct t_lookup
{
- t_lookup() = default;
t_domain domain = NORMAL;
size_t loc = 0;
};
diff --git a/Source/cmQtAutoGenInitializer.h b/Source/cmQtAutoGenInitializer.h
index 7359c76472..10f0bf316d 100644
--- a/Source/cmQtAutoGenInitializer.h
+++ b/Source/cmQtAutoGenInitializer.h
@@ -26,9 +26,6 @@ public:
class Qrc
{
public:
- Qrc() = default;
-
- public:
std::string LockFile;
std::string QrcFile;
std::string QrcName;
diff --git a/Source/cmQtAutoGenerator.h b/Source/cmQtAutoGenerator.h
index 75143f5a64..2b9cbc6edc 100644
--- a/Source/cmQtAutoGenerator.h
+++ b/Source/cmQtAutoGenerator.h
@@ -206,9 +206,6 @@ public:
bool MergedOutput = false;
};
- // -- Constructor
- ReadOnlyProcessT() = default;
-
// -- Const accessors
const SetupT& Setup() const { return Setup_; }
ProcessResultT* Result() const { return Setup_.Result; }
diff --git a/Source/cmTimestamp.h b/Source/cmTimestamp.h
index 6b6c4ebd0a..d5fbdfd671 100644
--- a/Source/cmTimestamp.h
+++ b/Source/cmTimestamp.h
@@ -15,8 +15,6 @@
class cmTimestamp
{
public:
- cmTimestamp() = default;
-
std::string CurrentTime(const std::string& formatString, bool utcFlag);
std::string FileModificationTime(const char* path,
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h
index 4748a7aec5..1bda54a47b 100644
--- a/Source/cmVSSetupHelper.h
+++ b/Source/cmVSSetupHelper.h
@@ -112,8 +112,6 @@ struct VSInstanceInfo
bool IsWin10SDKInstalled = false;
bool IsWin81SDKInstalled = false;
- VSInstanceInfo() = default;
-
std::string GetInstallLocation() const;
};
diff --git a/Source/cmVariableWatch.h b/Source/cmVariableWatch.h
index d5d96ef4e7..5855fed292 100644
--- a/Source/cmVariableWatch.h
+++ b/Source/cmVariableWatch.h
@@ -66,7 +66,6 @@ protected:
WatchMethod Method = nullptr;
void* ClientData = nullptr;
DeleteData DeleteDataCall = nullptr;
- Pair() = default;
~Pair()
{
if (this->DeleteDataCall && this->ClientData) {