summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-17 17:54:12 (GMT)
committerBrad King <brad.king@kitware.com>2024-09-20 17:45:45 (GMT)
commit445a82e5da1ad5d17db7e7c3ed3b1a8b1d629e21 (patch)
tree37194d330d9ccd503ad0aa1239b037f4a409bd97 /Source
parent3ce26c57ba06b5a02e153b8bb16eb8c60938e4ce (diff)
downloadCMake-445a82e5da1ad5d17db7e7c3ed3b1a8b1d629e21.zip
CMake-445a82e5da1ad5d17db7e7c3ed3b1a8b1d629e21.tar.gz
CMake-445a82e5da1ad5d17db7e7c3ed3b1a8b1d629e21.tar.bz2
cmComputeLinkDepends: Shorten local variable name
Diffstat (limited to 'Source')
-rw-r--r--Source/cmComputeLinkDepends.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index f12bcdb..1c7b478 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/Source/cmComputeLinkDepends.cxx
@@ -431,8 +431,8 @@ public:
this->Groups = &groups;
// record all libraries as part of groups to ensure correct
// deduplication: libraries as part of groups are always kept.
- for (const auto& group : groups) {
- for (auto index : group.second) {
+ for (const auto& g : groups) {
+ for (auto index : g.second) {
this->Emitted.insert(index);
}
}
@@ -477,8 +477,8 @@ public:
// expand groups
if (this->Groups) {
- for (const auto& group : *this->Groups) {
- const LinkEntry& groupEntry = this->Entries[group.first];
+ for (const auto& g : *this->Groups) {
+ const LinkEntry& groupEntry = this->Entries[g.first];
auto it = this->FinalEntries.begin();
while (true) {
it = std::find_if(it, this->FinalEntries.end(),
@@ -489,8 +489,8 @@ public:
break;
}
it->Item.Value = "</LINK_GROUP>";
- for (auto index = group.second.rbegin();
- index != group.second.rend(); ++index) {
+ for (auto index = g.second.rbegin(); index != g.second.rend();
+ ++index) {
it = this->FinalEntries.insert(it, this->Entries[*index]);
}
it = this->FinalEntries.insert(it, groupEntry);
@@ -1252,10 +1252,10 @@ void cmComputeLinkDepends::AddLinkEntries(size_t depender_index,
std::vector<size_t> indexes;
bool entryHandled = false;
// search any occurrence of the library in already defined groups
- for (const auto& group : this->GroupItems) {
- for (auto index : group.second) {
+ for (const auto& g : this->GroupItems) {
+ for (auto index : g.second) {
if (entry.Item.Value == this->EntryList[index].Item.Value) {
- indexes.push_back(group.first);
+ indexes.push_back(g.first);
entryHandled = true;
break;
}