mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +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:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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 )
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user