diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-05-17 16:49:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-24 13:09:43 (GMT) |
commit | a5f8cbe8b149d4b3e1136aa4c07691397d693038 (patch) | |
tree | 721f1f857df24dc64e3673dee5877ba9c0736b53 /Source/cmFileCopier.h | |
parent | 437789db07258c2a96f32a8c70382b1304292589 (diff) | |
download | CMake-a5f8cbe8b149d4b3e1136aa4c07691397d693038.zip CMake-a5f8cbe8b149d4b3e1136aa4c07691397d693038.tar.gz CMake-a5f8cbe8b149d4b3e1136aa4c07691397d693038.tar.bz2 |
clang-tidy: address `modernize-use-default-member-init` lints
Diffstat (limited to 'Source/cmFileCopier.h')
-rw-r--r-- | Source/cmFileCopier.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Source/cmFileCopier.h b/Source/cmFileCopier.h index ee9872d..1fd2062 100644 --- a/Source/cmFileCopier.h +++ b/Source/cmFileCopier.h @@ -28,15 +28,15 @@ protected: cmExecutionStatus& Status; cmMakefile* Makefile; const char* Name; - bool Always; + bool Always = false; cmFileTimeCache FileTimes; // Whether to install a file not matching any expression. - bool MatchlessFiles; + bool MatchlessFiles = true; // Permissions for files and directories installed by this object. - mode_t FilePermissions; - mode_t DirPermissions; + mode_t FilePermissions = 0; + mode_t DirPermissions = 0; // Properties set by pattern and regex match rules. struct MatchProperties @@ -85,17 +85,15 @@ protected: virtual void ReportCopy(const std::string&, Type, bool) {} virtual bool ReportMissing(const std::string& fromFile); - MatchRule* CurrentMatchRule; - bool UseGivenPermissionsFile; - bool UseGivenPermissionsDir; - bool UseSourcePermissions; - bool FollowSymlinkChain; + MatchRule* CurrentMatchRule = nullptr; + bool UseGivenPermissionsFile = false; + bool UseGivenPermissionsDir = false; + bool UseSourcePermissions = true; + bool FollowSymlinkChain = false; std::string Destination; std::string FilesFromDir; std::vector<std::string> Files; - int Doing; - virtual bool Parse(std::vector<std::string> const& args); enum { DoingNone, @@ -110,6 +108,9 @@ protected: DoingPermissionsMatch, DoingLast1 }; + int Doing = DoingNone; + + virtual bool Parse(std::vector<std::string> const& args); virtual bool CheckKeyword(std::string const& arg); virtual bool CheckValue(std::string const& arg); |