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

Push down #include <ostream> to .cpp files

Commit
d86834e5b5010501345bd7dde6bae5a63937ad2c
Author
Martin Hořeňovský ·
Parents
39e093021c0d

Files · Download .tar.gz

Changes

 src/catch2/reporters/catch_reporter_automake.cpp | 2 ++
 src/catch2/reporters/catch_reporter_bases.cpp    | 1 +
 src/catch2/reporters/catch_reporter_bases.hpp    | 2 +-
 src/catch2/reporters/catch_reporter_compact.cpp  | 2 ++
 src/catch2/reporters/catch_reporter_tap.cpp      | 1 +
 5 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/catch2/reporters/catch_reporter_automake.cpp b/src/catch2/reporters/catch_reporter_automake.cpp
index 73cdf552..56e3b3d2 100644
--- a/src/catch2/reporters/catch_reporter_automake.cpp
+++ b/src/catch2/reporters/catch_reporter_automake.cpp
@@ -5,6 +5,8 @@
 
 #include <catch2/reporters/catch_reporter_automake.hpp>
 
+#include <ostream>
+
 namespace Catch {
 
     AutomakeReporter::~AutomakeReporter() {}
diff --git a/src/catch2/reporters/catch_reporter_bases.cpp b/src/catch2/reporters/catch_reporter_bases.cpp
index e716167d..abb47e68 100644
--- a/src/catch2/reporters/catch_reporter_bases.cpp
+++ b/src/catch2/reporters/catch_reporter_bases.cpp
@@ -15,6 +15,7 @@
 #include <cstring>
 #include <cfloat>
 #include <cstdio>
+#include <ostream>
 #include <cassert>
 #include <memory>
 
diff --git a/src/catch2/reporters/catch_reporter_bases.hpp b/src/catch2/reporters/catch_reporter_bases.hpp
index 128362a3..09e6d545 100644
--- a/src/catch2/reporters/catch_reporter_bases.hpp
+++ b/src/catch2/reporters/catch_reporter_bases.hpp
@@ -16,7 +16,7 @@
 #include <cstdio>
 #include <cassert>
 #include <memory>
-#include <ostream>
+#include <iosfwd>
 
 namespace Catch {
     void prepareExpandedExpression(AssertionResult& result);
diff --git a/src/catch2/reporters/catch_reporter_compact.cpp b/src/catch2/reporters/catch_reporter_compact.cpp
index 8d498e44..22699e8a 100644
--- a/src/catch2/reporters/catch_reporter_compact.cpp
+++ b/src/catch2/reporters/catch_reporter_compact.cpp
@@ -10,6 +10,8 @@
 #include <catch2/internal/catch_console_colour.hpp>
 #include <catch2/internal/catch_string_manip.hpp>
 
+#include <ostream>
+
 namespace {
 
 #ifdef CATCH_PLATFORM_MAC
diff --git a/src/catch2/reporters/catch_reporter_tap.cpp b/src/catch2/reporters/catch_reporter_tap.cpp
index e5b7bae7..fb8993a2 100644
--- a/src/catch2/reporters/catch_reporter_tap.cpp
+++ b/src/catch2/reporters/catch_reporter_tap.cpp
@@ -8,6 +8,7 @@
 #include <catch2/internal/catch_string_manip.hpp>
 
 #include <algorithm>
+#include <ostream>
 
 namespace Catch {