diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-08 17:14:40 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-13 15:26:03 (GMT) |
commit | 37872088cf52ac8a9f1adc4648e23c6fb54be097 (patch) | |
tree | 494d2bf24ee70cec317dadf9eca70280a57faca5 /Tests/RunCMake/pseudo_cppcheck.c | |
parent | f2a33107be2d7d701708506c4c3054799d941bd6 (diff) | |
download | CMake-37872088cf52ac8a9f1adc4648e23c6fb54be097.zip CMake-37872088cf52ac8a9f1adc4648e23c6fb54be097.tar.gz CMake-37872088cf52ac8a9f1adc4648e23c6fb54be097.tar.bz2 |
clang-tidy: address readability-else-after-return lint
Diffstat (limited to 'Tests/RunCMake/pseudo_cppcheck.c')
-rw-r--r-- | Tests/RunCMake/pseudo_cppcheck.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/pseudo_cppcheck.c b/Tests/RunCMake/pseudo_cppcheck.c index 5b1531b..e80620c 100644 --- a/Tests/RunCMake/pseudo_cppcheck.c +++ b/Tests/RunCMake/pseudo_cppcheck.c @@ -11,7 +11,8 @@ int main(int argc, char* argv[]) fprintf(stdout, "stdout from bad command line arg '-bad'\n"); fprintf(stderr, "stderr from bad command line arg '-bad'\n"); return 1; - } else if (strcmp(argv[i], "-error") == 0) { + } + if (strcmp(argv[i], "-error") == 0) { // The real cppcheck allows to set the exitcode with --error-exitcode result = 5; } |