diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:38:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:45 (GMT) |
commit | cdfc4e31953274be9b745614b4b7620d365a7b5e (patch) | |
tree | d730ed1a5258286efbd83ac84e4a24f075bfa2aa /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 808b17b1206dd70c7fbd676e8c24181cde537954 (diff) | |
download | CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.zip CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.gz CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.bz2 |
clang-tidy: fix `readability-qualified-auto` warnings
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index df7952c..464df68 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -151,8 +151,8 @@ void cmLocalUnixMakefileGenerator3::Generate() } auto& gtVisited = this->GetCommandsVisited(gt); - auto& deps = this->GlobalGenerator->GetTargetDirectDepends(gt); - for (auto& d : deps) { + const auto& deps = this->GlobalGenerator->GetTargetDirectDepends(gt); + for (const auto& d : deps) { // Take the union of visited source files of custom commands auto depVisited = this->GetCommandsVisited(d); gtVisited.insert(depVisited.begin(), depVisited.end()); @@ -718,7 +718,7 @@ void cmLocalUnixMakefileGenerator3::WriteSpecialTargetsTop( constexpr const char* vcs_rules[] = { "%,v", "RCS/%", "RCS/%,v", "SCCS/s.%", "s.%", }; - for (auto vcs_rule : vcs_rules) { + for (const auto* vcs_rule : vcs_rules) { std::vector<std::string> vcs_depend; vcs_depend.emplace_back(vcs_rule); this->WriteMakeRule(makefileStream, "Disable VCS-based implicit rules.", |