mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-06 06:43:52 +00:00
Doing this removes `<map>` from the include set of the base reporter interface, and thus from bunch more TUs. This provides about 1.5% improvements in the debug build of the static library, and 1% in release build.
86 lines
2.5 KiB
C++
86 lines
2.5 KiB
C++
/** \file
|
|
* This is a special TU that combines what would otherwise be a very
|
|
* small interfaces-related TUs into one bigger TU.
|
|
*
|
|
* The reason for this is compilation performance improvements by
|
|
* avoiding reparsing headers for many small TUs, instead having this
|
|
* one TU include bit more, but having it all parsed only once.
|
|
*
|
|
* To avoid heavy-tail problem with compilation times, each "subpart"
|
|
* of Catch2 has its own combined TU like this.
|
|
*/
|
|
|
|
///////////////////////////////////////////////////
|
|
// vvv formerly catch_interfaces_capture.cpp vvv //
|
|
///////////////////////////////////////////////////
|
|
|
|
#include <catch2/interfaces/catch_interfaces_capture.hpp>
|
|
|
|
namespace Catch {
|
|
IResultCapture::~IResultCapture() = default;
|
|
}
|
|
|
|
|
|
//////////////////////////////////////////////////
|
|
// vvv formerly catch_interfaces_config.cpp vvv //
|
|
//////////////////////////////////////////////////
|
|
|
|
#include <catch2/interfaces/catch_interfaces_config.hpp>
|
|
|
|
namespace Catch {
|
|
IConfig::~IConfig() = default;
|
|
}
|
|
|
|
|
|
/////////////////////////////////////////////////////
|
|
// vvv formerly catch_interfaces_exception.cpp vvv //
|
|
/////////////////////////////////////////////////////
|
|
|
|
#include <catch2/interfaces/catch_interfaces_exception.hpp>
|
|
|
|
namespace Catch {
|
|
IExceptionTranslator::~IExceptionTranslator() = default;
|
|
IExceptionTranslatorRegistry::~IExceptionTranslatorRegistry() = default;
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////
|
|
// vvv formerly catch_interfaces_registry_hub.cpp vvv //
|
|
////////////////////////////////////////////////////////
|
|
|
|
#include <catch2/interfaces/catch_interfaces_registry_hub.hpp>
|
|
|
|
namespace Catch {
|
|
IRegistryHub::~IRegistryHub() = default;
|
|
IMutableRegistryHub::~IMutableRegistryHub() = default;
|
|
}
|
|
|
|
|
|
//////////////////////////////////////////////////
|
|
// vvv formerly catch_interfaces_runner.cpp vvv //
|
|
//////////////////////////////////////////////////
|
|
|
|
#include <catch2/interfaces/catch_interfaces_runner.hpp>
|
|
|
|
namespace Catch {
|
|
IRunner::~IRunner() = default;
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////
|
|
// vvv formerly catch_interfaces_testcase.cpp vvv //
|
|
////////////////////////////////////////////////////
|
|
|
|
#include <catch2/interfaces/catch_interfaces_testcase.hpp>
|
|
|
|
namespace Catch {
|
|
ITestInvoker::~ITestInvoker() = default;
|
|
ITestCaseRegistry::~ITestCaseRegistry() = default;
|
|
}
|
|
|
|
|
|
#include <catch2/interfaces/catch_interfaces_reporter_registry.hpp>
|
|
namespace Catch {
|
|
IReporterRegistry::~IReporterRegistry() = default;
|
|
}
|