mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
clang-tidy: fix readability-isolate-declaration lints
This commit is contained in:
@@ -53,7 +53,8 @@ static bool VSIsArm64Host()
|
||||
# undef CM_VS_GCC_DIAGNOSTIC_PUSHED
|
||||
#endif
|
||||
|
||||
USHORT processMachine, nativeMachine;
|
||||
USHORT processMachine;
|
||||
USHORT nativeMachine;
|
||||
|
||||
return s_IsWow64Process2Impl != nullptr &&
|
||||
s_IsWow64Process2Impl(GetCurrentProcess(), &processMachine,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -42,7 +42,8 @@ const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByName(
|
||||
|
||||
std::vector<cmSlnProjectEntry> cmSlnData::GetProjects() const
|
||||
{
|
||||
auto it(this->ProjectNameIndex.begin()), itEnd(this->ProjectNameIndex.end());
|
||||
auto it(this->ProjectNameIndex.begin());
|
||||
auto itEnd(this->ProjectNameIndex.end());
|
||||
std::vector<cmSlnProjectEntry> result;
|
||||
for (; it != itEnd; ++it) {
|
||||
result.push_back(it->second->second);
|
||||
|
||||
Reference in New Issue
Block a user