mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Outline Config destructor to avoid including superfluous header
This commit is contained in:
parent
66fe591477
commit
3b297cf9b5
@ -7,6 +7,7 @@
|
||||
|
||||
#include <catch2/catch_config.hpp>
|
||||
#include <catch2/catch_enforce.h>
|
||||
#include <catch2/catch_stream.h>
|
||||
#include <catch2/catch_stringref.h>
|
||||
|
||||
namespace Catch {
|
||||
@ -36,6 +37,9 @@ namespace Catch {
|
||||
m_testSpec = parser.testSpec();
|
||||
}
|
||||
|
||||
Config::~Config() = default;
|
||||
|
||||
|
||||
std::string const& Config::getFilename() const {
|
||||
return m_data.outputFilename ;
|
||||
}
|
||||
|
@ -11,9 +11,6 @@
|
||||
#include <catch2/catch_test_spec_parser.h>
|
||||
#include <catch2/catch_interfaces_config.h>
|
||||
|
||||
// Libstdc++ doesn't like incomplete classes for unique_ptr
|
||||
#include <catch2/catch_stream.h>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@ -73,7 +70,7 @@ namespace Catch {
|
||||
|
||||
Config() = default;
|
||||
Config( ConfigData const& data );
|
||||
virtual ~Config() = default;
|
||||
~Config() override; // = default in the cpp file
|
||||
|
||||
std::string const& getFilename() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user