Skip to content

Commit

Permalink
Mark first party reporters final
Browse files Browse the repository at this point in the history
They are not intended to be derived from, so forbidding it
explicitly improves our ability to refactor them later.
  • Loading branch information
horenmar committed Sep 15, 2021
1 parent 785436c commit 2c82f82
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/catch2/reporters/catch_reporter_automake.hpp
Expand Up @@ -12,7 +12,7 @@

namespace Catch {

struct AutomakeReporter : StreamingReporterBase {
struct AutomakeReporter final : StreamingReporterBase {
AutomakeReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config )
{}
Expand Down
2 changes: 1 addition & 1 deletion src/catch2/reporters/catch_reporter_compact.hpp
Expand Up @@ -14,7 +14,7 @@

namespace Catch {

struct CompactReporter : StreamingReporterBase {
struct CompactReporter final : StreamingReporterBase {

using StreamingReporterBase::StreamingReporterBase;

Expand Down
2 changes: 1 addition & 1 deletion src/catch2/reporters/catch_reporter_console.hpp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/catch2/reporters/catch_reporter_junit.hpp
Expand Up @@ -15,7 +15,7 @@

namespace Catch {

class JunitReporter : public CumulativeReporterBase {
class JunitReporter final : public CumulativeReporterBase {
public:
JunitReporter(ReporterConfig const& _config);

Expand Down
2 changes: 1 addition & 1 deletion src/catch2/reporters/catch_reporter_sonarqube.hpp
Expand Up @@ -14,7 +14,7 @@

namespace Catch {

struct SonarQubeReporter : CumulativeReporterBase {
struct SonarQubeReporter final : CumulativeReporterBase {

SonarQubeReporter(ReporterConfig const& config)
: CumulativeReporterBase(config)
Expand Down
2 changes: 1 addition & 1 deletion src/catch2/reporters/catch_reporter_tap.hpp
Expand Up @@ -12,7 +12,7 @@

namespace Catch {

struct TAPReporter : StreamingReporterBase {
struct TAPReporter final : StreamingReporterBase {

TAPReporter( ReporterConfig const& config ):
StreamingReporterBase( config ) {
Expand Down
2 changes: 1 addition & 1 deletion src/catch2/reporters/catch_reporter_teamcity.hpp
Expand Up @@ -20,7 +20,7 @@

namespace Catch {

struct TeamCityReporter : StreamingReporterBase {
struct TeamCityReporter final : StreamingReporterBase {
TeamCityReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config )
{
Expand Down

0 comments on commit 2c82f82

Please sign in to comment.