mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
cleanup: Prefer compiler provided special member functions
This commit is contained in:
committed by
Brad King
parent
55671b41d2
commit
094f01d0f0
@@ -475,7 +475,6 @@ private:
|
|||||||
std::string EMail;
|
std::string EMail;
|
||||||
unsigned long Time = 0;
|
unsigned long Time = 0;
|
||||||
long TimeZone = 0;
|
long TimeZone = 0;
|
||||||
Person() = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void ParsePerson(const char* str, Person& person)
|
void ParsePerson(const char* str, Person& person)
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ public:
|
|||||||
: Handler(handler)
|
: Handler(handler)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
~TestComparator() = default;
|
|
||||||
|
|
||||||
// Sorts tests in descending order of cost
|
// Sorts tests in descending order of cost
|
||||||
bool operator()(int index1, int index2) const
|
bool operator()(int index1, int index2) const
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ class cmCTestRunTest
|
|||||||
public:
|
public:
|
||||||
explicit cmCTestRunTest(cmCTestMultiProcessHandler& multiHandler);
|
explicit cmCTestRunTest(cmCTestMultiProcessHandler& multiHandler);
|
||||||
|
|
||||||
~cmCTestRunTest() = default;
|
|
||||||
|
|
||||||
void SetNumberOfRuns(int n) { this->NumberOfRunsLeft = n; }
|
void SetNumberOfRuns(int n) { this->NumberOfRunsLeft = n; }
|
||||||
void SetRunUntilFailOn() { this->RunUntilFail = true; }
|
void SetRunUntilFailOn() { this->RunUntilFail = true; }
|
||||||
void SetTestProperties(cmCTestTestHandler::cmCTestTestProperties* prop)
|
void SetTestProperties(cmCTestTestHandler::cmCTestTestProperties* prop)
|
||||||
|
|||||||
@@ -53,8 +53,6 @@ struct cmListFileFunction;
|
|||||||
class cmCTestScriptFunctionBlocker : public cmFunctionBlocker
|
class cmCTestScriptFunctionBlocker : public cmFunctionBlocker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmCTestScriptFunctionBlocker() = default;
|
|
||||||
~cmCTestScriptFunctionBlocker() override = default;
|
|
||||||
bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
|
bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
|
||||||
cmExecutionStatus& /*status*/) override;
|
cmExecutionStatus& /*status*/) override;
|
||||||
// virtual bool ShouldRemove(const cmListFileFunction& lff, cmMakefile &mf);
|
// virtual bool ShouldRemove(const cmListFileFunction& lff, cmMakefile &mf);
|
||||||
|
|||||||
@@ -29,10 +29,6 @@ typedef std::vector<char> cmCTestSubmitHandlerVectorOfChar;
|
|||||||
|
|
||||||
class cmCTestSubmitHandler::ResponseParser : public cmXMLParser
|
class cmCTestSubmitHandler::ResponseParser : public cmXMLParser
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
ResponseParser() { this->Status = STATUS_OK; }
|
|
||||||
~ResponseParser() override = default;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum StatusType
|
enum StatusType
|
||||||
{
|
{
|
||||||
@@ -41,7 +37,7 @@ public:
|
|||||||
STATUS_ERROR
|
STATUS_ERROR
|
||||||
};
|
};
|
||||||
|
|
||||||
StatusType Status;
|
StatusType Status = STATUS_OK;
|
||||||
std::string Filename;
|
std::string Filename;
|
||||||
std::string MD5;
|
std::string MD5;
|
||||||
std::string Message;
|
std::string Message;
|
||||||
|
|||||||
@@ -13,19 +13,12 @@ class cmParseCoberturaCoverage::XMLParser : public cmXMLParser
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XMLParser(cmCTest* ctest, cmCTestCoverageHandlerContainer& cont)
|
XMLParser(cmCTest* ctest, cmCTestCoverageHandlerContainer& cont)
|
||||||
: CTest(ctest)
|
: FilePaths{ cont.SourceDir, cont.BinaryDir }
|
||||||
|
, CTest(ctest)
|
||||||
, Coverage(cont)
|
, 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:
|
protected:
|
||||||
void EndElement(const std::string& name) override
|
void EndElement(const std::string& name) override
|
||||||
{
|
{
|
||||||
@@ -144,9 +137,9 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool InSources;
|
bool InSources = false;
|
||||||
bool InSource;
|
bool InSource = false;
|
||||||
bool SkipThisClass;
|
bool SkipThisClass = false;
|
||||||
std::vector<std::string> FilePaths;
|
std::vector<std::string> FilePaths;
|
||||||
typedef cmCTestCoverageHandlerContainer::SingleFileCoverageVector
|
typedef cmCTestCoverageHandlerContainer::SingleFileCoverageVector
|
||||||
FileLinesType;
|
FileLinesType;
|
||||||
|
|||||||
@@ -18,13 +18,8 @@ public:
|
|||||||
: CTest(ctest)
|
: CTest(ctest)
|
||||||
, Coverage(cont)
|
, Coverage(cont)
|
||||||
{
|
{
|
||||||
this->FilePath.clear();
|
|
||||||
this->PackagePath.clear();
|
|
||||||
this->PackageName.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~XMLParser() override = default;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void EndElement(const std::string& /*name*/) override {}
|
void EndElement(const std::string& /*name*/) override {}
|
||||||
|
|
||||||
|
|||||||
@@ -474,7 +474,6 @@ int CCONV cmGetTotalArgumentSize(int argc, char** argv)
|
|||||||
// API for source files.
|
// API for source files.
|
||||||
struct cmCPluginAPISourceFile
|
struct cmCPluginAPISourceFile
|
||||||
{
|
{
|
||||||
cmCPluginAPISourceFile() = default;
|
|
||||||
cmSourceFile* RealSourceFile = nullptr;
|
cmSourceFile* RealSourceFile = nullptr;
|
||||||
std::string SourceName;
|
std::string SourceName;
|
||||||
std::string SourceExtension;
|
std::string SourceExtension;
|
||||||
|
|||||||
@@ -57,8 +57,6 @@ public:
|
|||||||
/** Representation of one part. */
|
/** Representation of one part. */
|
||||||
struct PartInfo
|
struct PartInfo
|
||||||
{
|
{
|
||||||
PartInfo() = default;
|
|
||||||
|
|
||||||
void SetName(const std::string& name) { this->Name = name; }
|
void SetName(const std::string& name) { this->Name = name; }
|
||||||
const std::string& GetName() const { return this->Name; }
|
const std::string& GetName() const { return this->Name; }
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ private:
|
|||||||
void AppendProperty(const std::string& property, const char* value,
|
void AppendProperty(const std::string& property, const char* value,
|
||||||
bool asString = false);
|
bool asString = false);
|
||||||
bool Initialized = false;
|
bool Initialized = false;
|
||||||
CacheEntry() = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -172,8 +172,6 @@ class cmCommandArgumentGroup
|
|||||||
friend class cmCommandArgument;
|
friend class cmCommandArgument;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cmCommandArgumentGroup() = default;
|
|
||||||
|
|
||||||
/// All members of this group may follow the given argument
|
/// All members of this group may follow the given argument
|
||||||
void Follows(const cmCommandArgument* arg);
|
void Follows(const cmCommandArgument* arg);
|
||||||
|
|
||||||
|
|||||||
@@ -38,8 +38,6 @@ public:
|
|||||||
cmGeneratorTarget const* Target = nullptr;
|
cmGeneratorTarget const* Target = nullptr;
|
||||||
bool IsSharedDep = false;
|
bool IsSharedDep = false;
|
||||||
bool IsFlag = false;
|
bool IsFlag = false;
|
||||||
LinkEntry() = default;
|
|
||||||
LinkEntry(LinkEntry const& r) = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector<LinkEntry> EntryVector;
|
typedef std::vector<LinkEntry> EntryVector;
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ public:
|
|||||||
|
|
||||||
struct cmIncludeLines
|
struct cmIncludeLines
|
||||||
{
|
{
|
||||||
cmIncludeLines() = default;
|
|
||||||
std::vector<UnscannedEntry> UnscannedEntries;
|
std::vector<UnscannedEntry> UnscannedEntries;
|
||||||
bool Used = false;
|
bool Used = false;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ private:
|
|||||||
|
|
||||||
struct RequestedHelpItem
|
struct RequestedHelpItem
|
||||||
{
|
{
|
||||||
RequestedHelpItem() = default;
|
|
||||||
cmDocumentationEnums::Type HelpType = None;
|
cmDocumentationEnums::Type HelpType = None;
|
||||||
std::string Filename;
|
std::string Filename;
|
||||||
std::string Argument;
|
std::string Argument;
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
class cmExecutionStatus
|
class cmExecutionStatus
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmExecutionStatus() = default;
|
|
||||||
|
|
||||||
void Clear()
|
void Clear()
|
||||||
{
|
{
|
||||||
this->ReturnInvoked = false;
|
this->ReturnInvoked = false;
|
||||||
|
|||||||
@@ -1102,7 +1102,6 @@ protected:
|
|||||||
{
|
{
|
||||||
bool Exclude = false;
|
bool Exclude = false;
|
||||||
mode_t Permissions = 0;
|
mode_t Permissions = 0;
|
||||||
MatchProperties() = default;
|
|
||||||
};
|
};
|
||||||
struct MatchRule
|
struct MatchRule
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ void on_fs_close(uv_handle_t* handle);
|
|||||||
class cmIBaseWatcher
|
class cmIBaseWatcher
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmIBaseWatcher() = default;
|
|
||||||
virtual ~cmIBaseWatcher() = default;
|
virtual ~cmIBaseWatcher() = default;
|
||||||
|
|
||||||
virtual void Trigger(const std::string& pathSegment, int events,
|
virtual void Trigger(const std::string& pathSegment, int events,
|
||||||
@@ -150,8 +149,6 @@ public:
|
|||||||
p->AddChildWatcher(ps, this);
|
p->AddChildWatcher(ps, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
~cmRealDirectoryWatcher() override = default;
|
|
||||||
|
|
||||||
void StartWatching() final
|
void StartWatching() final
|
||||||
{
|
{
|
||||||
if (!this->Handle) {
|
if (!this->Handle) {
|
||||||
|
|||||||
@@ -202,7 +202,6 @@ struct cmFindLibraryHelper
|
|||||||
bool TryRaw = false;
|
bool TryRaw = false;
|
||||||
std::string Raw;
|
std::string Raw;
|
||||||
cmsys::RegularExpression Regex;
|
cmsys::RegularExpression Regex;
|
||||||
Name() = default;
|
|
||||||
};
|
};
|
||||||
std::vector<Name> Names;
|
std::vector<Name> Names;
|
||||||
|
|
||||||
|
|||||||
@@ -1688,7 +1688,6 @@ private:
|
|||||||
class cmFileList
|
class cmFileList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmFileList() = default;
|
|
||||||
virtual ~cmFileList() = default;
|
virtual ~cmFileList() = default;
|
||||||
cmFileList& operator/(cmFileListGeneratorBase const& rhs)
|
cmFileList& operator/(cmFileListGeneratorBase const& rhs)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,11 +14,6 @@
|
|||||||
class cmFunctionHelperCommand : public cmCommand
|
class cmFunctionHelperCommand : public cmCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmFunctionHelperCommand() = default;
|
|
||||||
|
|
||||||
///! clean up any memory allocated by the function
|
|
||||||
~cmFunctionHelperCommand() override = default;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a virtual constructor for the command.
|
* This is a virtual constructor for the command.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -18,15 +18,13 @@ class cmMakefile;
|
|||||||
class cmFunctionFunctionBlocker : public cmFunctionBlocker
|
class cmFunctionFunctionBlocker : public cmFunctionBlocker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmFunctionFunctionBlocker() { this->Depth = 0; }
|
|
||||||
~cmFunctionFunctionBlocker() override = default;
|
|
||||||
bool IsFunctionBlocked(const cmListFileFunction&, cmMakefile& mf,
|
bool IsFunctionBlocked(const cmListFileFunction&, cmMakefile& mf,
|
||||||
cmExecutionStatus&) override;
|
cmExecutionStatus&) override;
|
||||||
bool ShouldRemove(const cmListFileFunction&, cmMakefile& mf) override;
|
bool ShouldRemove(const cmListFileFunction&, cmMakefile& mf) override;
|
||||||
|
|
||||||
std::vector<std::string> Args;
|
std::vector<std::string> Args;
|
||||||
std::vector<cmListFileFunction> Functions;
|
std::vector<cmListFileFunction> Functions;
|
||||||
int Depth;
|
int Depth = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Starts function() ... endfunction() block
|
/// Starts function() ... endfunction() block
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ public:
|
|||||||
std::set<std::string> ExpectedXamlHeaders;
|
std::set<std::string> ExpectedXamlHeaders;
|
||||||
std::set<std::string> ExpectedXamlSources;
|
std::set<std::string> ExpectedXamlSources;
|
||||||
bool Initialized = false;
|
bool Initialized = false;
|
||||||
KindedSources() = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Get all sources needed for a configuration with kinds assigned. */
|
/** Get all sources needed for a configuration with kinds assigned. */
|
||||||
@@ -562,7 +561,6 @@ public:
|
|||||||
};
|
};
|
||||||
struct SourceFileFlags
|
struct SourceFileFlags
|
||||||
{
|
{
|
||||||
SourceFileFlags() = default;
|
|
||||||
SourceFileType Type = SourceFileTypeNormal;
|
SourceFileType Type = SourceFileTypeNormal;
|
||||||
const char* MacFolder = nullptr; // location inside Mac content folders
|
const char* MacFolder = nullptr; // location inside Mac content folders
|
||||||
};
|
};
|
||||||
@@ -750,7 +748,6 @@ private:
|
|||||||
|
|
||||||
struct CompatibleInterfaces : public CompatibleInterfacesBase
|
struct CompatibleInterfaces : public CompatibleInterfacesBase
|
||||||
{
|
{
|
||||||
CompatibleInterfaces() = default;
|
|
||||||
bool Done = false;
|
bool Done = false;
|
||||||
};
|
};
|
||||||
mutable std::map<std::string, CompatibleInterfaces> CompatibleInterfacesMap;
|
mutable std::map<std::string, CompatibleInterfaces> CompatibleInterfacesMap;
|
||||||
@@ -764,7 +761,6 @@ private:
|
|||||||
|
|
||||||
struct LinkImplClosure : public std::vector<cmGeneratorTarget const*>
|
struct LinkImplClosure : public std::vector<cmGeneratorTarget const*>
|
||||||
{
|
{
|
||||||
LinkImplClosure() = default;
|
|
||||||
bool Done = false;
|
bool Done = false;
|
||||||
};
|
};
|
||||||
mutable std::map<std::string, LinkImplClosure> LinkImplClosureMap;
|
mutable std::map<std::string, LinkImplClosure> LinkImplClosureMap;
|
||||||
@@ -784,7 +780,6 @@ private:
|
|||||||
// Cache import information from properties for each configuration.
|
// Cache import information from properties for each configuration.
|
||||||
struct ImportInfo
|
struct ImportInfo
|
||||||
{
|
{
|
||||||
ImportInfo() = default;
|
|
||||||
bool NoSOName = false;
|
bool NoSOName = false;
|
||||||
ManagedType Managed = Native;
|
ManagedType Managed = Native;
|
||||||
unsigned int Multiplicity = 0;
|
unsigned int Multiplicity = 0;
|
||||||
|
|||||||
@@ -21,9 +21,6 @@
|
|||||||
*/
|
*/
|
||||||
class cmGlobVerificationManager
|
class cmGlobVerificationManager
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
cmGlobVerificationManager() = default;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
///! Save verification script for given makefile.
|
///! Save verification script for given makefile.
|
||||||
///! Saves to output <path>/<CMakeFilesDirectory>/VerifyGlobs.cmake
|
///! Saves to output <path>/<CMakeFilesDirectory>/VerifyGlobs.cmake
|
||||||
@@ -73,7 +70,6 @@ private:
|
|||||||
bool Initialized = false;
|
bool Initialized = false;
|
||||||
std::vector<std::string> Files;
|
std::vector<std::string> Files;
|
||||||
std::vector<std::pair<std::string, cmListFileBacktrace>> Backtraces;
|
std::vector<std::pair<std::string, cmListFileBacktrace>> Backtraces;
|
||||||
CacheEntryValue() = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::map<CacheEntryKey, CacheEntryValue> CacheEntryMap;
|
typedef std::map<CacheEntryKey, CacheEntryValue> CacheEntryMap;
|
||||||
|
|||||||
@@ -479,7 +479,6 @@ protected:
|
|||||||
std::vector<std::string> Depends;
|
std::vector<std::string> Depends;
|
||||||
std::string WorkingDir;
|
std::string WorkingDir;
|
||||||
bool UsesTerminal = false;
|
bool UsesTerminal = false;
|
||||||
GlobalTargetInfo() = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void CreateDefaultGlobalTargets(std::vector<GlobalTargetInfo>& targets);
|
void CreateDefaultGlobalTargets(std::vector<GlobalTargetInfo>& targets);
|
||||||
@@ -608,7 +607,6 @@ private:
|
|||||||
long LastDiskTime = -1;
|
long LastDiskTime = -1;
|
||||||
std::set<std::string> All;
|
std::set<std::string> All;
|
||||||
std::set<std::string> Generated;
|
std::set<std::string> Generated;
|
||||||
DirectoryContent() = default;
|
|
||||||
};
|
};
|
||||||
std::map<std::string, DirectoryContent> DirectoryContentMap;
|
std::map<std::string, DirectoryContent> DirectoryContentMap;
|
||||||
|
|
||||||
|
|||||||
@@ -183,8 +183,6 @@ public:
|
|||||||
return new cmGlobalGeneratorSimpleFactory<cmGlobalNinjaGenerator>();
|
return new cmGlobalGeneratorSimpleFactory<cmGlobalNinjaGenerator>();
|
||||||
}
|
}
|
||||||
|
|
||||||
~cmGlobalNinjaGenerator() override = default;
|
|
||||||
|
|
||||||
cmLocalGenerator* CreateLocalGenerator(cmMakefile* mf) override;
|
cmLocalGenerator* CreateLocalGenerator(cmMakefile* mf) override;
|
||||||
|
|
||||||
std::string GetName() const override
|
std::string GetName() const override
|
||||||
|
|||||||
@@ -217,7 +217,6 @@ protected:
|
|||||||
// Store per-target progress counters.
|
// Store per-target progress counters.
|
||||||
struct TargetProgress
|
struct TargetProgress
|
||||||
{
|
{
|
||||||
TargetProgress() = default;
|
|
||||||
unsigned long NumberOfActions = 0;
|
unsigned long NumberOfActions = 0;
|
||||||
std::string VariableFile;
|
std::string VariableFile;
|
||||||
std::vector<unsigned long> Marks;
|
std::vector<unsigned long> Marks;
|
||||||
|
|||||||
@@ -19,13 +19,6 @@ class cmMakefile;
|
|||||||
class cmIfFunctionBlocker : public cmFunctionBlocker
|
class cmIfFunctionBlocker : public cmFunctionBlocker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmIfFunctionBlocker()
|
|
||||||
{
|
|
||||||
this->HasRun = false;
|
|
||||||
this->ElseSeen = false;
|
|
||||||
this->ScopeDepth = 0;
|
|
||||||
}
|
|
||||||
~cmIfFunctionBlocker() override = default;
|
|
||||||
bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
|
bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
|
||||||
cmExecutionStatus&) override;
|
cmExecutionStatus&) override;
|
||||||
bool ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf) override;
|
bool ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf) override;
|
||||||
@@ -33,9 +26,9 @@ public:
|
|||||||
std::vector<cmListFileArgument> Args;
|
std::vector<cmListFileArgument> Args;
|
||||||
std::vector<cmListFileFunction> Functions;
|
std::vector<cmListFileFunction> Functions;
|
||||||
bool IsBlocking;
|
bool IsBlocking;
|
||||||
bool HasRun;
|
bool HasRun = false;
|
||||||
bool ElseSeen;
|
bool ElseSeen = false;
|
||||||
unsigned int ScopeDepth;
|
unsigned int ScopeDepth = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Starts an if block
|
/// Starts an if block
|
||||||
|
|||||||
@@ -77,13 +77,10 @@ struct cmLinkInterface : public cmLinkInterfaceLibraries
|
|||||||
std::vector<cmLinkItem> WrongConfigLibraries;
|
std::vector<cmLinkItem> WrongConfigLibraries;
|
||||||
|
|
||||||
bool ImplementationIsInterface = false;
|
bool ImplementationIsInterface = false;
|
||||||
|
|
||||||
cmLinkInterface() = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cmOptionalLinkInterface : public cmLinkInterface
|
struct cmOptionalLinkInterface : public cmLinkInterface
|
||||||
{
|
{
|
||||||
cmOptionalLinkInterface() = default;
|
|
||||||
bool LibrariesDone = false;
|
bool LibrariesDone = false;
|
||||||
bool AllDone = false;
|
bool AllDone = false;
|
||||||
bool Exists = false;
|
bool Exists = false;
|
||||||
@@ -105,7 +102,6 @@ struct cmLinkImplementation : public cmLinkImplementationLibraries
|
|||||||
// Cache link implementation computation from each configuration.
|
// Cache link implementation computation from each configuration.
|
||||||
struct cmOptionalLinkImplementation : public cmLinkImplementation
|
struct cmOptionalLinkImplementation : public cmLinkImplementation
|
||||||
{
|
{
|
||||||
cmOptionalLinkImplementation() = default;
|
|
||||||
bool LibrariesDone = false;
|
bool LibrariesDone = false;
|
||||||
bool LanguagesDone = false;
|
bool LanguagesDone = false;
|
||||||
bool HadHeadSensitiveCondition = false;
|
bool HadHeadSensitiveCondition = false;
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ public:
|
|||||||
std::string Name;
|
std::string Name;
|
||||||
std::string FilePath;
|
std::string FilePath;
|
||||||
long Line = 0;
|
long Line = 0;
|
||||||
cmListFileContext() = default;
|
|
||||||
|
|
||||||
static cmListFileContext FromCommandContext(cmCommandContext const& lfcc,
|
static cmListFileContext FromCommandContext(cmCommandContext const& lfcc,
|
||||||
std::string const& fileName)
|
std::string const& fileName)
|
||||||
@@ -110,15 +109,6 @@ public:
|
|||||||
// indicated by the given valid snapshot.
|
// indicated by the given valid snapshot.
|
||||||
cmListFileBacktrace(cmStateSnapshot const& 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;
|
cmStateSnapshot GetBottom() const;
|
||||||
|
|
||||||
// Get a backtrace with the given file scope added to the top.
|
// Get a backtrace with the given file scope added to the top.
|
||||||
|
|||||||
@@ -279,7 +279,6 @@ private:
|
|||||||
bool HasSourceExtension = false;
|
bool HasSourceExtension = false;
|
||||||
bool HasPreprocessRule = false;
|
bool HasPreprocessRule = false;
|
||||||
bool HasAssembleRule = false;
|
bool HasAssembleRule = false;
|
||||||
LocalObjectInfo() = default;
|
|
||||||
};
|
};
|
||||||
void GetLocalObjectFiles(
|
void GetLocalObjectFiles(
|
||||||
std::map<std::string, LocalObjectInfo>& localObjectFiles);
|
std::map<std::string, LocalObjectInfo>& localObjectFiles);
|
||||||
|
|||||||
@@ -17,11 +17,6 @@
|
|||||||
class cmMacroHelperCommand : public cmCommand
|
class cmMacroHelperCommand : public cmCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmMacroHelperCommand() = default;
|
|
||||||
|
|
||||||
///! clean up any memory allocated by the macro
|
|
||||||
~cmMacroHelperCommand() override = default;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a virtual constructor for the command.
|
* This is a virtual constructor for the command.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -18,15 +18,13 @@ class cmMakefile;
|
|||||||
class cmMacroFunctionBlocker : public cmFunctionBlocker
|
class cmMacroFunctionBlocker : public cmFunctionBlocker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmMacroFunctionBlocker() { this->Depth = 0; }
|
|
||||||
~cmMacroFunctionBlocker() override = default;
|
|
||||||
bool IsFunctionBlocked(const cmListFileFunction&, cmMakefile& mf,
|
bool IsFunctionBlocked(const cmListFileFunction&, cmMakefile& mf,
|
||||||
cmExecutionStatus&) override;
|
cmExecutionStatus&) override;
|
||||||
bool ShouldRemove(const cmListFileFunction&, cmMakefile& mf) override;
|
bool ShouldRemove(const cmListFileFunction&, cmMakefile& mf) override;
|
||||||
|
|
||||||
std::vector<std::string> Args;
|
std::vector<std::string> Args;
|
||||||
std::vector<cmListFileFunction> Functions;
|
std::vector<cmListFileFunction> Functions;
|
||||||
int Depth;
|
int Depth = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Starts macro() ... endmacro() block
|
/// Starts macro() ... endmacro() block
|
||||||
|
|||||||
@@ -2712,7 +2712,6 @@ typedef enum
|
|||||||
} t_domain;
|
} t_domain;
|
||||||
struct t_lookup
|
struct t_lookup
|
||||||
{
|
{
|
||||||
t_lookup() = default;
|
|
||||||
t_domain domain = NORMAL;
|
t_domain domain = NORMAL;
|
||||||
size_t loc = 0;
|
size_t loc = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,9 +25,6 @@ public:
|
|||||||
/// @brief Rcc job information
|
/// @brief Rcc job information
|
||||||
class Qrc
|
class Qrc
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
Qrc() = default;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
std::string LockFile;
|
std::string LockFile;
|
||||||
std::string QrcFile;
|
std::string QrcFile;
|
||||||
|
|||||||
@@ -206,9 +206,6 @@ public:
|
|||||||
bool MergedOutput = false;
|
bool MergedOutput = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
// -- Constructor
|
|
||||||
ReadOnlyProcessT() = default;
|
|
||||||
|
|
||||||
// -- Const accessors
|
// -- Const accessors
|
||||||
const SetupT& Setup() const { return Setup_; }
|
const SetupT& Setup() const { return Setup_; }
|
||||||
ProcessResultT* Result() const { return Setup_.Result; }
|
ProcessResultT* Result() const { return Setup_.Result; }
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
class cmTimestamp
|
class cmTimestamp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmTimestamp() = default;
|
|
||||||
|
|
||||||
std::string CurrentTime(const std::string& formatString, bool utcFlag);
|
std::string CurrentTime(const std::string& formatString, bool utcFlag);
|
||||||
|
|
||||||
std::string FileModificationTime(const char* path,
|
std::string FileModificationTime(const char* path,
|
||||||
|
|||||||
@@ -112,8 +112,6 @@ struct VSInstanceInfo
|
|||||||
bool IsWin10SDKInstalled = false;
|
bool IsWin10SDKInstalled = false;
|
||||||
bool IsWin81SDKInstalled = false;
|
bool IsWin81SDKInstalled = false;
|
||||||
|
|
||||||
VSInstanceInfo() = default;
|
|
||||||
|
|
||||||
std::string GetInstallLocation() const;
|
std::string GetInstallLocation() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ protected:
|
|||||||
WatchMethod Method = nullptr;
|
WatchMethod Method = nullptr;
|
||||||
void* ClientData = nullptr;
|
void* ClientData = nullptr;
|
||||||
DeleteData DeleteDataCall = nullptr;
|
DeleteData DeleteDataCall = nullptr;
|
||||||
Pair() = default;
|
|
||||||
~Pair()
|
~Pair()
|
||||||
{
|
{
|
||||||
if (this->DeleteDataCall && this->ClientData) {
|
if (this->DeleteDataCall && this->ClientData) {
|
||||||
|
|||||||
Reference in New Issue
Block a user