From 2a72cad9bec2e9bf2fafcde4e0affcf0a6afc96e Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Tue, 27 Jul 2021 23:09:18 +0300 Subject: Style: Better names of local vars for `IN_LIST` handler --- Source/cmConditionEvaluator.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/cmConditionEvaluator.cxx b/Source/cmConditionEvaluator.cxx index a239fcc..d55a89c 100644 --- a/Source/cmConditionEvaluator.cxx +++ b/Source/cmConditionEvaluator.cxx @@ -751,12 +751,14 @@ bool cmConditionEvaluator::HandleLevel2(cmArgumentList& newArgs, if (this->Policy57Status != cmPolicies::OLD && this->Policy57Status != cmPolicies::WARN) { - cmProp def = this->GetVariableOrString(*args.current); - cmProp def2 = this->Makefile.GetDefinition(args.nextnext->GetValue()); + cmProp lhs = this->GetVariableOrString(*args.current); + cmProp rhs = this->Makefile.GetDefinition(args.nextnext->GetValue()); newArgs.ReduceTwoArgs( - def2 && cm::contains(cmExpandedList(*def2, true), *def), args); - } else if (this->Policy57Status == cmPolicies::WARN) { + rhs && cm::contains(cmExpandedList(*rhs, true), *lhs), args); + } + + else if (this->Policy57Status == cmPolicies::WARN) { std::ostringstream e; e << cmPolicies::GetPolicyWarning(cmPolicies::CMP0057) << "\n" -- cgit v0.12