From e5e9afad167be344939a24337322f5652ab3e7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 16 Feb 2021 14:28:12 +0100 Subject: [PATCH] Fix headers whose surrogate TUs did not compile --- src/catch2/benchmark/catch_constructor.hpp | 1 + src/catch2/benchmark/detail/catch_analyse.hpp | 2 ++ src/catch2/catch_reporter_registrars.hpp | 4 ++++ .../interfaces/catch_interfaces_reporter_factory.hpp | 7 +++++++ src/catch2/internal/catch_container_nonmembers.hpp | 2 ++ 5 files changed, 16 insertions(+) diff --git a/src/catch2/benchmark/catch_constructor.hpp b/src/catch2/benchmark/catch_constructor.hpp index 59600f21..fe651f1c 100644 --- a/src/catch2/benchmark/catch_constructor.hpp +++ b/src/catch2/benchmark/catch_constructor.hpp @@ -11,6 +11,7 @@ #define CATCH_CONSTRUCTOR_HPP_INCLUDED #include +#include namespace Catch { namespace Benchmark { diff --git a/src/catch2/benchmark/detail/catch_analyse.hpp b/src/catch2/benchmark/detail/catch_analyse.hpp index 0a52a845..46382c62 100644 --- a/src/catch2/benchmark/detail/catch_analyse.hpp +++ b/src/catch2/benchmark/detail/catch_analyse.hpp @@ -11,8 +11,10 @@ #define CATCH_ANALYSE_HPP_INCLUDED #include +#include #include #include +#include #include #include diff --git a/src/catch2/catch_reporter_registrars.hpp b/src/catch2/catch_reporter_registrars.hpp index e7375aa7..978d2925 100644 --- a/src/catch2/catch_reporter_registrars.hpp +++ b/src/catch2/catch_reporter_registrars.hpp @@ -9,11 +9,15 @@ #define CATCH_REPORTER_REGISTRARS_HPP_INCLUDED #include +#include #include #include namespace Catch { + struct IStreamingReporter; + using IStreamingReporterPtr = Detail::unique_ptr; + template class ReporterFactory : public IReporterFactory { diff --git a/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp b/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp index 9bcf94f0..5a40d1bd 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp @@ -8,9 +8,16 @@ #ifndef CATCH_INTERFACES_REPORTER_FACTORY_HPP_INCLUDED #define CATCH_INTERFACES_REPORTER_FACTORY_HPP_INCLUDED +#include + +#include + namespace Catch { struct ReporterConfig; + struct IStreamingReporter; + using IStreamingReporterPtr = Detail::unique_ptr; + struct IReporterFactory { virtual ~IReporterFactory(); // = default diff --git a/src/catch2/internal/catch_container_nonmembers.hpp b/src/catch2/internal/catch_container_nonmembers.hpp index f1dedeb6..d6f10eb5 100644 --- a/src/catch2/internal/catch_container_nonmembers.hpp +++ b/src/catch2/internal/catch_container_nonmembers.hpp @@ -10,6 +10,8 @@ #include +#include +#include // We want a simple polyfill over `std::empty`, `std::size` and so on // for C++14 or C++ libraries with incomplete support.