summaryrefslogtreecommitdiffstats
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-22 14:23:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-22 14:23:34 (GMT)
commit337be1507d0850c1d83de0f9ad87a780c9cb61af (patch)
tree8f6e685341766cc429b5120a1a120bbfaf9bbaea /Source/cmListCommand.cxx
parent6e1ff50efbc49628e7f9575b57128c0829bf607c (diff)
parentd331021255ba9092fa34e8e479d724b1092c704d (diff)
downloadCMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.zip
CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.tar.gz
CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.tar.bz2
Merge topic 'isolate-declarations'
d331021255 clang-tidy: isolate declarations for readability Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3704
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r--Source/cmListCommand.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index 9a6653f..aed54ea 100644
--- a/Source/cmListCommand.cxx
+++ b/Source/cmListCommand.cxx
@@ -695,7 +695,8 @@ public:
}
this->Indexes.resize(size);
- auto start = this->Start, step = this->Step;
+ auto start = this->Start;
+ auto step = this->Step;
std::generate(this->Indexes.begin(), this->Indexes.end(),
[&start, step]() -> int {
auto r = start;
@@ -919,8 +920,10 @@ bool cmListCommand::HandleTransformCommand(
}
}
- const std::string REGEX{ "REGEX" }, AT{ "AT" }, FOR{ "FOR" },
- OUTPUT_VARIABLE{ "OUTPUT_VARIABLE" };
+ const std::string REGEX{ "REGEX" };
+ const std::string AT{ "AT" };
+ const std::string FOR{ "FOR" };
+ const std::string OUTPUT_VARIABLE{ "OUTPUT_VARIABLE" };
// handle optional arguments
while (args.size() > index) {
@@ -997,7 +1000,9 @@ bool cmListCommand::HandleTransformCommand(
return false;
}
- int start = 0, stop = 0, step = 1;
+ int start = 0;
+ int stop = 0;
+ int step = 1;
bool valid = true;
try {
std::size_t pos;