From 351050844e49203d577f7cc59c8e02680c0ca997 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 23 Sep 2026 11:58:31 -0400 Subject: [PATCH] Xcode: Clarify local variable names in project object construction --- Source/cmGlobalXCodeGenerator.cxx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 34ac28bdd4..9bdbb9caff 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -4822,20 +4822,23 @@ bool cmGlobalXCodeGenerator::CreateXCodeObjects( this->RootObject->SetId( this->GetOrCreateId(project_id, this->RootObject->GetId())); - cmXCodeObject* group = this->CreateObject(cmXCodeObject::ATTRIBUTE_GROUP); + cmXCodeObject* projectBuildSettings = + this->CreateObject(cmXCodeObject::ATTRIBUTE_GROUP); this->RootObject->AddAttribute("mainGroup", this->CreateObjectReference(mainGroup)); - this->RootObject->AddAttribute("buildSettings", group); + this->RootObject->AddAttribute("buildSettings", projectBuildSettings); this->RootObject->AddAttribute("buildStyles", listObjs); this->RootObject->AddAttribute("hasScannedForEncodings", this->CreateString("0")); - group = this->CreateObject(cmXCodeObject::ATTRIBUTE_GROUP); - group->AddAttribute("BuildIndependentTargetsInParallel", - this->CreateString("YES")); + cmXCodeObject* projectAttributes = + this->CreateObject(cmXCodeObject::ATTRIBUTE_GROUP); + projectAttributes->AddAttribute("BuildIndependentTargetsInParallel", + this->CreateString("YES")); std::ostringstream v; v << std::setfill('0') << std::setw(4) << XcodeVersion * 10; - group->AddAttribute("LastUpgradeCheck", this->CreateString(v.str())); - this->RootObject->AddAttribute("attributes", group); + projectAttributes->AddAttribute("LastUpgradeCheck", + this->CreateString(v.str())); + this->RootObject->AddAttribute("attributes", projectAttributes); this->RootObject->AddAttribute("compatibilityVersion", this->CreateString("Xcode 3.2")); // Point Xcode at the top of the source tree.