mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-20 12: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_config.hpp>
|
||||||
#include <catch2/catch_enforce.h>
|
#include <catch2/catch_enforce.h>
|
||||||
|
#include <catch2/catch_stream.h>
|
||||||
#include <catch2/catch_stringref.h>
|
#include <catch2/catch_stringref.h>
|
||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
@ -36,6 +37,9 @@ namespace Catch {
|
|||||||
m_testSpec = parser.testSpec();
|
m_testSpec = parser.testSpec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Config::~Config() = default;
|
||||||
|
|
||||||
|
|
||||||
std::string const& Config::getFilename() const {
|
std::string const& Config::getFilename() const {
|
||||||
return m_data.outputFilename ;
|
return m_data.outputFilename ;
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,6 @@
|
|||||||
#include <catch2/catch_test_spec_parser.h>
|
#include <catch2/catch_test_spec_parser.h>
|
||||||
#include <catch2/catch_interfaces_config.h>
|
#include <catch2/catch_interfaces_config.h>
|
||||||
|
|
||||||
// Libstdc++ doesn't like incomplete classes for unique_ptr
|
|
||||||
#include <catch2/catch_stream.h>
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -73,7 +70,7 @@ namespace Catch {
|
|||||||
|
|
||||||
Config() = default;
|
Config() = default;
|
||||||
Config( ConfigData const& data );
|
Config( ConfigData const& data );
|
||||||
virtual ~Config() = default;
|
~Config() override; // = default in the cpp file
|
||||||
|
|
||||||
std::string const& getFilename() const;
|
std::string const& getFilename() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user