From 4e0af77e2975d58e0b90edcc82a437429d2b1bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Wed, 29 Jul 2020 14:30:19 +0200 Subject: [PATCH] Push includes for TestCaseInfo down into reporter TUs --- examples/210-Evt-EventListeners.cpp | 6 +----- src/catch2/catch_registry_hub.cpp | 1 + src/catch2/interfaces/catch_interfaces_reporter.cpp | 1 + src/catch2/interfaces/catch_interfaces_reporter.hpp | 2 +- src/catch2/internal/catch_list.cpp | 1 + src/catch2/reporters/catch_reporter_automake.cpp | 1 + src/catch2/reporters/catch_reporter_console.cpp | 1 + src/catch2/reporters/catch_reporter_junit.cpp | 1 + src/catch2/reporters/catch_reporter_sonarqube.cpp | 1 + src/catch2/reporters/catch_reporter_tap.cpp | 1 + src/catch2/reporters/catch_reporter_teamcity.cpp | 1 + src/catch2/reporters/catch_reporter_xml.cpp | 1 + 12 files changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/210-Evt-EventListeners.cpp b/examples/210-Evt-EventListeners.cpp index e3395828..c69d507c 100644 --- a/examples/210-Evt-EventListeners.cpp +++ b/examples/210-Evt-EventListeners.cpp @@ -5,14 +5,10 @@ // 2. My listener and registration // 3. Test cases -// main() provided in 000-CatchMain.cpp - -// Let Catch provide the required interfaces: -#define CATCH_CONFIG_EXTERNAL_INTERFACES - #include #include #include +#include #include // ----------------------------------------------------------------------- diff --git a/src/catch2/catch_registry_hub.cpp b/src/catch2/catch_registry_hub.cpp index a8860e3a..af4db897 100644 --- a/src/catch2/catch_registry_hub.cpp +++ b/src/catch2/catch_registry_hub.cpp @@ -17,6 +17,7 @@ #include #include #include +#include namespace Catch { diff --git a/src/catch2/interfaces/catch_interfaces_reporter.cpp b/src/catch2/interfaces/catch_interfaces_reporter.cpp index 29bbb200..fb1d6d18 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.cpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include diff --git a/src/catch2/interfaces/catch_interfaces_reporter.hpp b/src/catch2/interfaces/catch_interfaces_reporter.hpp index a411b897..83e3ecdf 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.hpp @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -32,6 +31,7 @@ namespace Catch { struct ReporterDescription; struct TagInfo; + struct TestCaseInfo; struct ReporterConfig { explicit ReporterConfig( IConfig const* _fullConfig ); diff --git a/src/catch2/internal/catch_list.cpp b/src/catch2/internal/catch_list.cpp index b654c4c1..47590ee5 100644 --- a/src/catch2/internal/catch_list.cpp +++ b/src/catch2/internal/catch_list.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include diff --git a/src/catch2/reporters/catch_reporter_automake.cpp b/src/catch2/reporters/catch_reporter_automake.cpp index 56e3b3d2..57cfdb29 100644 --- a/src/catch2/reporters/catch_reporter_automake.cpp +++ b/src/catch2/reporters/catch_reporter_automake.cpp @@ -4,6 +4,7 @@ */ #include +#include #include diff --git a/src/catch2/reporters/catch_reporter_console.cpp b/src/catch2/reporters/catch_reporter_console.cpp index 5dd258b4..f7eabde8 100644 --- a/src/catch2/reporters/catch_reporter_console.cpp +++ b/src/catch2/reporters/catch_reporter_console.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include diff --git a/src/catch2/reporters/catch_reporter_junit.cpp b/src/catch2/reporters/catch_reporter_junit.cpp index fb826088..55f2e0aa 100644 --- a/src/catch2/reporters/catch_reporter_junit.cpp +++ b/src/catch2/reporters/catch_reporter_junit.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include diff --git a/src/catch2/reporters/catch_reporter_sonarqube.cpp b/src/catch2/reporters/catch_reporter_sonarqube.cpp index b459b999..99f2d550 100644 --- a/src/catch2/reporters/catch_reporter_sonarqube.cpp +++ b/src/catch2/reporters/catch_reporter_sonarqube.cpp @@ -6,6 +6,7 @@ #include #include +#include #include diff --git a/src/catch2/reporters/catch_reporter_tap.cpp b/src/catch2/reporters/catch_reporter_tap.cpp index 93da1c17..94595361 100644 --- a/src/catch2/reporters/catch_reporter_tap.cpp +++ b/src/catch2/reporters/catch_reporter_tap.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include diff --git a/src/catch2/reporters/catch_reporter_teamcity.cpp b/src/catch2/reporters/catch_reporter_teamcity.cpp index bab27bef..2cb51bed 100644 --- a/src/catch2/reporters/catch_reporter_teamcity.cpp +++ b/src/catch2/reporters/catch_reporter_teamcity.cpp @@ -8,6 +8,7 @@ #include #include #include +#include namespace Catch { diff --git a/src/catch2/reporters/catch_reporter_xml.cpp b/src/catch2/reporters/catch_reporter_xml.cpp index 137efc66..e0004d36 100644 --- a/src/catch2/reporters/catch_reporter_xml.cpp +++ b/src/catch2/reporters/catch_reporter_xml.cpp @@ -10,6 +10,7 @@ #include #include +#include #if defined(_MSC_VER) #pragma warning(push)