diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-22 19:54:33 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 17:39:45 (GMT) |
commit | 501408338aa403d9af50b2ba60f816cec5dcc06b (patch) | |
tree | 91d7772f4544f85fc8ffb624bc3d71b00558594a /Source/cmVSSetupHelper.cxx | |
parent | 1f893e587371cbce2007cae55c118fcf50dca849 (diff) | |
download | CMake-501408338aa403d9af50b2ba60f816cec5dcc06b.zip CMake-501408338aa403d9af50b2ba60f816cec5dcc06b.tar.gz CMake-501408338aa403d9af50b2ba60f816cec5dcc06b.tar.bz2 |
clang-tidy: fix `readability-isolate-declaration` lints
Diffstat (limited to 'Source/cmVSSetupHelper.cxx')
-rw-r--r-- | Source/cmVSSetupHelper.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmVSSetupHelper.cxx b/Source/cmVSSetupHelper.cxx index 5729d2f..6702b7b 100644 --- a/Source/cmVSSetupHelper.cxx +++ b/Source/cmVSSetupHelper.cxx @@ -289,7 +289,8 @@ bool cmVSSetupAPIHelper::GetVCToolsetVersion(std::string& vsToolsetVersion) bool cmVSSetupAPIHelper::IsEWDKEnabled() { - std::string envEnterpriseWDK, envDisableRegistryUse; + std::string envEnterpriseWDK; + std::string envDisableRegistryUse; cmSystemTools::GetEnv("EnterpriseWDK", envEnterpriseWDK); cmSystemTools::GetEnv("DisableRegistryUse", envDisableRegistryUse); if (!cmSystemTools::Strucmp(envEnterpriseWDK.c_str(), "True") && @@ -410,7 +411,9 @@ bool cmVSSetupAPIHelper::EnumerateAndChooseVSInstance() } if (this->IsEWDKEnabled()) { - std::string envWindowsSdkDir81, envVSVersion, envVsInstallDir; + std::string envWindowsSdkDir81; + std::string envVSVersion; + std::string envVsInstallDir; cmSystemTools::GetEnv("WindowsSdkDir_81", envWindowsSdkDir81); cmSystemTools::GetEnv("VisualStudioVersion", envVSVersion); |