diff options
| author | Martin Hořeňovský | 2021-09-15 21:29:10 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-09-15 21:29:18 +0200 |
| commit | 2c82f82ee211b011460f2f44647b69e0feaf3d4e (patch) | |
| tree | 1114b9be419ab63cd2774af623dfda95f6c28e09 | |
| parent | 785436cd74ac629fea3bcb98343b9ff18f52598b (diff) | |
| download | catch3-2c82f82ee211b011460f2f44647b69e0feaf3d4e.tar.gz | |
Mark first party reporters final
They are not intended to be derived from, so forbidding it
explicitly improves our ability to refactor them later.
| -rw-r--r-- | src/catch2/reporters/catch_reporter_automake.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_compact.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_console.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_junit.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_sonarqube.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_tap.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_teamcity.hpp | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/src/catch2/reporters/catch_reporter_automake.hpp b/src/catch2/reporters/catch_reporter_automake.hpp index 6e376e90..84fad790 100644 --- a/src/catch2/reporters/catch_reporter_automake.hpp +++ b/src/catch2/reporters/catch_reporter_automake.hpp @@ -12,7 +12,7 @@ namespace Catch { - struct AutomakeReporter : StreamingReporterBase { + struct AutomakeReporter final : StreamingReporterBase { AutomakeReporter( ReporterConfig const& _config ) : StreamingReporterBase( _config ) {} diff --git a/src/catch2/reporters/catch_reporter_compact.hpp b/src/catch2/reporters/catch_reporter_compact.hpp index 0c632f76..b39bd18a 100644 --- a/src/catch2/reporters/catch_reporter_compact.hpp +++ b/src/catch2/reporters/catch_reporter_compact.hpp @@ -14,7 +14,7 @@ namespace Catch { - struct CompactReporter : StreamingReporterBase { + struct CompactReporter final : StreamingReporterBase { using StreamingReporterBase::StreamingReporterBase; diff --git a/src/catch2/reporters/catch_reporter_console.hpp b/src/catch2/reporters/catch_reporter_console.hpp index 5a1765b3..ec743093 100644 --- a/src/catch2/reporters/catch_reporter_console.hpp +++ b/src/catch2/reporters/catch_reporter_console.hpp @@ -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); diff --git a/src/catch2/reporters/catch_reporter_junit.hpp b/src/catch2/reporters/catch_reporter_junit.hpp index 3d68b7f6..6665663c 100644 --- a/src/catch2/reporters/catch_reporter_junit.hpp +++ b/src/catch2/reporters/catch_reporter_junit.hpp @@ -15,7 +15,7 @@ namespace Catch { - class JunitReporter : public CumulativeReporterBase { + class JunitReporter final : public CumulativeReporterBase { public: JunitReporter(ReporterConfig const& _config); diff --git a/src/catch2/reporters/catch_reporter_sonarqube.hpp b/src/catch2/reporters/catch_reporter_sonarqube.hpp index a4f60ea6..720c0ea0 100644 --- a/src/catch2/reporters/catch_reporter_sonarqube.hpp +++ b/src/catch2/reporters/catch_reporter_sonarqube.hpp @@ -14,7 +14,7 @@ namespace Catch { - struct SonarQubeReporter : CumulativeReporterBase { + struct SonarQubeReporter final : CumulativeReporterBase { SonarQubeReporter(ReporterConfig const& config) : CumulativeReporterBase(config) diff --git a/src/catch2/reporters/catch_reporter_tap.hpp b/src/catch2/reporters/catch_reporter_tap.hpp index 87855847..e7c22cfa 100644 --- a/src/catch2/reporters/catch_reporter_tap.hpp +++ b/src/catch2/reporters/catch_reporter_tap.hpp @@ -12,7 +12,7 @@ namespace Catch { - struct TAPReporter : StreamingReporterBase { + struct TAPReporter final : StreamingReporterBase { TAPReporter( ReporterConfig const& config ): StreamingReporterBase( config ) { diff --git a/src/catch2/reporters/catch_reporter_teamcity.hpp b/src/catch2/reporters/catch_reporter_teamcity.hpp index f387cafb..7abe8185 100644 --- a/src/catch2/reporters/catch_reporter_teamcity.hpp +++ b/src/catch2/reporters/catch_reporter_teamcity.hpp @@ -20,7 +20,7 @@ namespace Catch { - struct TeamCityReporter : StreamingReporterBase { + struct TeamCityReporter final : StreamingReporterBase { TeamCityReporter( ReporterConfig const& _config ) : StreamingReporterBase( _config ) { |