summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 20:08:28 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:45 (GMT)
commit2381634e7f54d68f6af2dfd73bbdc06e988ad5fa (patch)
tree00998f3851f872f753fd71e3a006e0d551ce16f3 /Source/cmLocalVisualStudio7Generator.cxx
parent707172c66ee385474027aae5e1327c76abd96ce8 (diff)
downloadCMake-2381634e7f54d68f6af2dfd73bbdc06e988ad5fa.zip
CMake-2381634e7f54d68f6af2dfd73bbdc06e988ad5fa.tar.gz
CMake-2381634e7f54d68f6af2dfd73bbdc06e988ad5fa.tar.bz2
clang-tidy: fix `readability-qualified-auto` lints
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 4d9fa2c..66ac019 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -108,8 +108,8 @@ void cmLocalVisualStudio7Generator::Generate()
}
auto& gtVisited = this->GetSourcesVisited(gt);
- auto& deps = this->GlobalGenerator->GetTargetDirectDepends(gt);
- for (auto& d : deps) {
+ auto const& deps = this->GlobalGenerator->GetTargetDirectDepends(gt);
+ for (auto const& d : deps) {
// Take the union of visited source files of custom commands
auto depVisited = this->GetSourcesVisited(d);
gtVisited.insert(depVisited.begin(), depVisited.end());
@@ -127,7 +127,7 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets()
// commands for targets in which no sources are built. Add dummy
// rules to force these targets to build.
const auto& tgts = this->GetGeneratorTargets();
- for (auto& l : tgts) {
+ for (auto const& l : tgts) {
if (l->GetType() == cmStateEnums::GLOBAL_TARGET) {
cmCustomCommandLines force_commands =
cmMakeSingleCommandLine({ "cd", "." });