summaryrefslogtreecommitdiffstats
path: root/Templates
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-04-08 14:37:59 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-04-13 15:26:02 (GMT)
commitb108c9fdaf2d36c5724982549fddcf46a2dc8800 (patch)
tree90bacce1c5fb822d4a9c1d22d99b0a2d91efec9c /Templates
parent77a1e80380a47a2dca039ea215631e68096f30d2 (diff)
downloadCMake-b108c9fdaf2d36c5724982549fddcf46a2dc8800.zip
CMake-b108c9fdaf2d36c5724982549fddcf46a2dc8800.tar.gz
CMake-b108c9fdaf2d36c5724982549fddcf46a2dc8800.tar.bz2
TestDriver: avoid clang-tidy lints in generated code
Diffstat (limited to 'Templates')
-rw-r--r--Templates/TestDriver.cxx.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in
index 846a828..053f1ee 100644
--- a/Templates/TestDriver.cxx.in
+++ b/Templates/TestDriver.cxx.in
@@ -45,7 +45,8 @@ static const int NumTests = CM_CAST(int,
(note that it has to be free'd manually) */
static char* lowercase(const char* string)
{
- char *new_string, *p;
+ char *new_string;
+ char *p;
size_t stringSize;
stringSize = CM_CAST(size_t, strlen(string) + 1);
@@ -63,7 +64,9 @@ static char* lowercase(const char* string)
int main(int ac, char* av[])
{
- int i, testNum = 0, partial_match;
+ int i;
+ int testNum = 0;
+ int partial_match;
char *arg;
int testToRun = -1;