diff options
author | Brad King <brad.king@kitware.com> | 2016-12-12 19:21:27 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-12-12 19:21:27 (GMT) |
commit | d1d11f73a1a7d2d2ad949e9a4ad1c65f155f3cfa (patch) | |
tree | 7a8b2cc1b50622473fc47fff676e68a3d52b147b /Source/cmCTest.h | |
parent | 55ff3c78b3d0d08cdbc6dea700e2add6a64c988b (diff) | |
parent | b932cd429800bb24d71e1d60f954fe4df2d1eb5c (diff) | |
download | CMake-d1d11f73a1a7d2d2ad949e9a4ad1c65f155f3cfa.zip CMake-d1d11f73a1a7d2d2ad949e9a4ad1c65f155f3cfa.tar.gz CMake-d1d11f73a1a7d2d2ad949e9a4ad1c65f155f3cfa.tar.bz2 |
Merge topic 'clang-tidy'
b932cd42 clang-tidy: apply misc-redundant-expression fixes
88da3d68 clang-tidy: apply misc-suspicious-string-compare fixes
58c66393 clang-tidy: apply readability-static-definition-in-anonymous-namespace fixes
85bfddda clang-tidy: apply readability-redundant-control-flow fixes
2988abd9 clang-tidy: apply modernize-use-bool-literals fixes
a74e6893 clang-tidy: apply readability-redundant-string-init fixes
cac529dd clang-tidy: apply performance-faster-string-find fixes
7c9db8f8 clang-tidy: apply performance-unnecessary-value-param fixes
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 8db2e5f..4d33458 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -27,7 +27,7 @@ class cmXMLWriter; cmCTestLog_msg << msg; \ (ctSelf)->Log(cmCTest::logType, __FILE__, __LINE__, \ cmCTestLog_msg.str().c_str()); \ - } while (0) + } while (false) #define cmCTestOptionalLog(ctSelf, logType, msg, suppress) \ do { \ @@ -35,7 +35,7 @@ class cmXMLWriter; cmCTestLog_msg << msg; \ (ctSelf)->Log(cmCTest::logType, __FILE__, __LINE__, \ cmCTestLog_msg.str().c_str(), suppress); \ - } while (0) + } while (false) /** \class cmCTest * \brief Represents a ctest invocation. @@ -242,7 +242,7 @@ public: /** Used for parallel ctest job scheduling */ std::string GetScheduleType() { return this->ScheduleType; } - void SetScheduleType(std::string type) { this->ScheduleType = type; } + void SetScheduleType(std::string const& type) { this->ScheduleType = type; } /** The max output width */ int GetMaxTestNameWidth() const; |