Modernize `cmCTest.cxx`
- make
cmCTest::Log()
accepts string, so logging macroscmCTestLog
andcmCTestOptionalLog
do not need to callc_str()
on a string obtained fromstd::stringstream
; - remove useless
"Here: << __LINE__
debug messages; -
cmsys::?fstream
accept strings, so no need to callc_str()
; - avoid macros in
cmCTest::Log
replaced w/ lambda; - simplify logType selection logic in
cmCTest::Log
; - some other little simplifications;
- add tests for
cmCTest::decodeURL
.
Topic-rename: ctest-cleanup
Edited by Alex Turbov