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/cmCoreTryCompile.cxx | |
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/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index caa413b..1e84a0b 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -32,11 +32,7 @@ class LanguageStandardState { public: LanguageStandardState(std::string&& lang) - : IsEnabled(false) - , DidStandard(false) - , DidStandardRequired(false) - , DidExtensions(false) - , StandardFlag(lang + "_STANDARD") + : StandardFlag(lang + "_STANDARD") , RequiredFlag(lang + "_STANDARD_REQUIRED") , ExtensionFlag(lang + "_EXTENSIONS") { @@ -154,10 +150,10 @@ public: } private: - bool IsEnabled; - bool DidStandard; - bool DidStandardRequired; - bool DidExtensions; + bool IsEnabled = false; + bool DidStandard = false; + bool DidStandardRequired = false; + bool DidExtensions = false; std::string StandardFlag; std::string RequiredFlag; |