clang-tidy: fix modernize-loop-convert lints

This commit is contained in:
Ben Boeckel
2022-11-23 08:31:18 -05:00
parent 362d6cd234
commit 1f893e5873
5 changed files with 21 additions and 26 deletions

View File

@@ -278,8 +278,8 @@ void cmGlobalVisualStudio8Generator::AddExtraIDETargets()
{
cmGlobalVisualStudio7Generator::AddExtraIDETargets();
if (this->AddCheckTarget()) {
for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i) {
const auto& tgts = this->LocalGenerators[i]->GetGeneratorTargets();
for (auto& LocalGenerator : this->LocalGenerators) {
const auto& tgts = LocalGenerator->GetGeneratorTargets();
// All targets depend on the build-system check target.
for (const auto& ti : tgts) {
if (ti->GetName() != CMAKE_CHECK_BUILD_SYSTEM_TARGET) {