mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Mark first party reporters final
They are not intended to be derived from, so forbidding it explicitly improves our ability to refactor them later.
This commit is contained in:
parent
785436cd74
commit
2c82f82ee2
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
struct AutomakeReporter : StreamingReporterBase {
|
struct AutomakeReporter final : StreamingReporterBase {
|
||||||
AutomakeReporter( ReporterConfig const& _config )
|
AutomakeReporter( ReporterConfig const& _config )
|
||||||
: StreamingReporterBase( _config )
|
: StreamingReporterBase( _config )
|
||||||
{}
|
{}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
struct CompactReporter : StreamingReporterBase {
|
struct CompactReporter final : StreamingReporterBase {
|
||||||
|
|
||||||
using StreamingReporterBase::StreamingReporterBase;
|
using StreamingReporterBase::StreamingReporterBase;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ namespace Catch {
|
|||||||
struct SummaryColumn;
|
struct SummaryColumn;
|
||||||
class TablePrinter;
|
class TablePrinter;
|
||||||
|
|
||||||
struct ConsoleReporter : StreamingReporterBase {
|
struct ConsoleReporter final : StreamingReporterBase {
|
||||||
Detail::unique_ptr<TablePrinter> m_tablePrinter;
|
Detail::unique_ptr<TablePrinter> m_tablePrinter;
|
||||||
|
|
||||||
ConsoleReporter(ReporterConfig const& config);
|
ConsoleReporter(ReporterConfig const& config);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
class JunitReporter : public CumulativeReporterBase {
|
class JunitReporter final : public CumulativeReporterBase {
|
||||||
public:
|
public:
|
||||||
JunitReporter(ReporterConfig const& _config);
|
JunitReporter(ReporterConfig const& _config);
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
struct SonarQubeReporter : CumulativeReporterBase {
|
struct SonarQubeReporter final : CumulativeReporterBase {
|
||||||
|
|
||||||
SonarQubeReporter(ReporterConfig const& config)
|
SonarQubeReporter(ReporterConfig const& config)
|
||||||
: CumulativeReporterBase(config)
|
: CumulativeReporterBase(config)
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
struct TAPReporter : StreamingReporterBase {
|
struct TAPReporter final : StreamingReporterBase {
|
||||||
|
|
||||||
TAPReporter( ReporterConfig const& config ):
|
TAPReporter( ReporterConfig const& config ):
|
||||||
StreamingReporterBase( config ) {
|
StreamingReporterBase( config ) {
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
struct TeamCityReporter : StreamingReporterBase {
|
struct TeamCityReporter final : StreamingReporterBase {
|
||||||
TeamCityReporter( ReporterConfig const& _config )
|
TeamCityReporter( ReporterConfig const& _config )
|
||||||
: StreamingReporterBase( _config )
|
: StreamingReporterBase( _config )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user