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:
Martin Hořeňovský 2021-09-15 21:29:10 +02:00
parent 785436cd74
commit 2c82f82ee2
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
7 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@
namespace Catch {
struct AutomakeReporter : StreamingReporterBase {
struct AutomakeReporter final : StreamingReporterBase {
AutomakeReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config )
{}

View File

@ -14,7 +14,7 @@
namespace Catch {
struct CompactReporter : StreamingReporterBase {
struct CompactReporter final : StreamingReporterBase {
using StreamingReporterBase::StreamingReporterBase;

View File

@ -16,7 +16,7 @@ namespace Catch {
struct SummaryColumn;
class TablePrinter;
struct ConsoleReporter : StreamingReporterBase {
struct ConsoleReporter final : StreamingReporterBase {
Detail::unique_ptr<TablePrinter> m_tablePrinter;
ConsoleReporter(ReporterConfig const& config);

View File

@ -15,7 +15,7 @@
namespace Catch {
class JunitReporter : public CumulativeReporterBase {
class JunitReporter final : public CumulativeReporterBase {
public:
JunitReporter(ReporterConfig const& _config);

View File

@ -14,7 +14,7 @@
namespace Catch {
struct SonarQubeReporter : CumulativeReporterBase {
struct SonarQubeReporter final : CumulativeReporterBase {
SonarQubeReporter(ReporterConfig const& config)
: CumulativeReporterBase(config)

View File

@ -12,7 +12,7 @@
namespace Catch {
struct TAPReporter : StreamingReporterBase {
struct TAPReporter final : StreamingReporterBase {
TAPReporter( ReporterConfig const& config ):
StreamingReporterBase( config ) {

View File

@ -20,7 +20,7 @@
namespace Catch {
struct TeamCityReporter : StreamingReporterBase {
struct TeamCityReporter final : StreamingReporterBase {
TeamCityReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config )
{