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:18 +02:00
parent 785436cd74
commit 2c82f82ee2
7 changed files with 7 additions and 7 deletions
@@ -12,7 +12,7 @@
namespace Catch {
struct AutomakeReporter : StreamingReporterBase {
struct AutomakeReporter final : StreamingReporterBase {
AutomakeReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config )
{}
@@ -14,7 +14,7 @@
namespace Catch {
struct CompactReporter : StreamingReporterBase {
struct CompactReporter final : StreamingReporterBase {
using StreamingReporterBase::StreamingReporterBase;
@@ -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);
@@ -15,7 +15,7 @@
namespace Catch {
class JunitReporter : public CumulativeReporterBase {
class JunitReporter final : public CumulativeReporterBase {
public:
JunitReporter(ReporterConfig const& _config);
@@ -14,7 +14,7 @@
namespace Catch {
struct SonarQubeReporter : CumulativeReporterBase {
struct SonarQubeReporter final : CumulativeReporterBase {
SonarQubeReporter(ReporterConfig const& config)
: CumulativeReporterBase(config)
+1 -1
View File
@@ -12,7 +12,7 @@
namespace Catch {
struct TAPReporter : StreamingReporterBase {
struct TAPReporter final : StreamingReporterBase {
TAPReporter( ReporterConfig const& config ):
StreamingReporterBase( config ) {
@@ -20,7 +20,7 @@
namespace Catch {
struct TeamCityReporter : StreamingReporterBase {
struct TeamCityReporter final : StreamingReporterBase {
TeamCityReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config )
{