summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-01-22 15:38:05 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-01-27 13:45:45 (GMT)
commitcdfc4e31953274be9b745614b4b7620d365a7b5e (patch)
treed730ed1a5258286efbd83ac84e4a24f075bfa2aa /Source/cmGeneratorExpressionEvaluator.cxx
parent808b17b1206dd70c7fbd676e8c24181cde537954 (diff)
downloadCMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.zip
CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.gz
CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.bz2
clang-tidy: fix `readability-qualified-auto` warnings
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r--Source/cmGeneratorExpressionEvaluator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index 4129a0c..fec309c 100644
--- a/Source/cmGeneratorExpressionEvaluator.cxx
+++ b/Source/cmGeneratorExpressionEvaluator.cxx
@@ -31,7 +31,7 @@ std::string GeneratorExpressionContent::ProcessArbitraryContent(
const auto pend = this->ParamChildren.end();
for (; pit != pend; ++pit) {
- for (auto& pExprEval : *pit) {
+ for (const auto& pExprEval : *pit) {
if (node->RequiresLiteralInput()) {
if (pExprEval->GetType() != cmGeneratorExpressionEvaluator::Text) {
reportError(context, this->GetOriginalExpression(),
@@ -63,7 +63,7 @@ std::string GeneratorExpressionContent::Evaluate(
{
std::string identifier;
{
- for (auto& pExprEval : this->IdentifierChildren) {
+ for (const auto& pExprEval : this->IdentifierChildren) {
identifier += pExprEval->Evaluate(context, dagChecker);
if (context->HadError) {
return std::string();
@@ -124,7 +124,7 @@ std::string GeneratorExpressionContent::EvaluateParameters(
return std::string();
}
std::string parameter;
- for (auto& pExprEval : *pit) {
+ for (const auto& pExprEval : *pit) {
parameter += pExprEval->Evaluate(context, dagChecker);
if (context->HadError) {
return std::string();