Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Change typedefs to using

Commit
307eeefa8f0cab5d31059a417f944b6126a19d44
Author
Martin Hořeňovský ·
Parents
33fd54a673f7

Files · Download .tar.gz

Changes

 include/internal/catch_interfaces_exception.h | 5 ++---
 include/internal/catch_test_case_tracker.hpp  | 2 +-
 include/reporters/catch_reporter_multi.h      | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/include/internal/catch_interfaces_exception.h b/include/internal/catch_interfaces_exception.h
index 32487ffa..43e4fbf4 100644
--- a/include/internal/catch_interfaces_exception.h
+++ b/include/internal/catch_interfaces_exception.h
@@ -14,11 +14,10 @@
 #include "catch_interfaces_registry_hub.h"
 
 namespace Catch {
-
-    typedef std::string(*exceptionTranslateFunction)();
+    using exceptionTranslateFunction = std::string(*)();
 
     struct IExceptionTranslator;
-    typedef std::vector<std::unique_ptr<IExceptionTranslator const>> ExceptionTranslators;
+    using ExceptionTranslators = std::vector<std::unique_ptr<IExceptionTranslator const>>;
 
     struct IExceptionTranslator {
         virtual ~IExceptionTranslator();
diff --git a/include/internal/catch_test_case_tracker.hpp b/include/internal/catch_test_case_tracker.hpp
index df176084..c9738252 100644
--- a/include/internal/catch_test_case_tracker.hpp
+++ b/include/internal/catch_test_case_tracker.hpp
@@ -104,7 +104,7 @@ namespace TestCaseTracking {
             bool operator ()( ITrackerPtr const& tracker ) const;
         };
 
-        typedef std::vector<ITrackerPtr> Children;
+        using Children = std::vector<ITrackerPtr>;
         NameAndLocation m_nameAndLocation;
         TrackerContext& m_ctx;
         ITracker* m_parent;
diff --git a/include/reporters/catch_reporter_multi.h b/include/reporters/catch_reporter_multi.h
index ce9bb87d..a69729ec 100644
--- a/include/reporters/catch_reporter_multi.h
+++ b/include/reporters/catch_reporter_multi.h
@@ -10,7 +10,7 @@
 namespace Catch {
 
     class MultipleReporters : public IStreamingReporter {
-        typedef std::vector<IStreamingReporterPtr> Reporters;
+        using Reporters = std::vector<IStreamingReporterPtr>;
         Reporters m_reporters;
 
     public: