diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-04 16:03:01 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-04 16:03:01 (GMT) |
commit | a1ddf2d0ba6268e29a9456948828f59d044791f1 (patch) | |
tree | b7046d67c6667c945e3683cf890d725c7123e2bd /Source/CTest/cmCTestBuildHandler.h | |
parent | ee15bc7d7e7707fd8d7db92645c2c56a5df0f681 (diff) | |
download | CMake-a1ddf2d0ba6268e29a9456948828f59d044791f1.zip CMake-a1ddf2d0ba6268e29a9456948828f59d044791f1.tar.gz CMake-a1ddf2d0ba6268e29a9456948828f59d044791f1.tar.bz2 |
clang-tidy: Replace typedef with using
Automate the conversion with
perl -i -0pe 's/typedef ([^;]*) ([^ ]+);/using $2 = $1;/g'
then manually fix a few places.
Diffstat (limited to 'Source/CTest/cmCTestBuildHandler.h')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.h b/Source/CTest/cmCTestBuildHandler.h index 87f1534..ce1d343 100644 --- a/Source/CTest/cmCTestBuildHandler.h +++ b/Source/CTest/cmCTestBuildHandler.h @@ -28,8 +28,8 @@ class cmXMLWriter; class cmCTestBuildHandler : public cmCTestGenericHandler { public: - typedef cmCTestGenericHandler Superclass; - typedef cmProcessOutput::Encoding Encoding; + using Superclass = cmCTestGenericHandler; + using Encoding = cmProcessOutput::Encoding; /* * The main entry point for this class @@ -111,7 +111,7 @@ private: std::vector<cmsys::RegularExpression> WarningMatchRegex; std::vector<cmsys::RegularExpression> WarningExceptionRegex; - typedef std::deque<char> t_BuildProcessingQueueType; + using t_BuildProcessingQueueType = std::deque<char>; void ProcessBuffer(const char* data, size_t length, size_t& tick, size_t tick_len, std::ostream& ofs, @@ -126,7 +126,7 @@ private: std::string SimplifySourceDir; std::string SimplifyBuildDir; size_t OutputLineCounter; - typedef std::vector<cmCTestBuildErrorWarning> t_ErrorsAndWarningsVector; + using t_ErrorsAndWarningsVector = std::vector<cmCTestBuildErrorWarning>; t_ErrorsAndWarningsVector ErrorsAndWarnings; t_ErrorsAndWarningsVector::iterator LastErrorOrWarning; size_t PostContextCount; |