Skip to content

Commit 61c6672

Browse files
authored
testrunner: made the friend wrapper test classes final (danmar#8137)
1 parent cde1b8d commit 61c6672

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

test/testanalyzerinformation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TestAnalyzerInformation : public TestFixture {
3333
TestAnalyzerInformation() : TestFixture("TestAnalyzerInformation") {}
3434

3535
private:
36-
class AnalyzerInformationTest : public AnalyzerInformation
36+
class AnalyzerInformationTest final : public AnalyzerInformation
3737
{
3838
friend class TestAnalyzerInformation;
3939
};

test/testcmdlineparser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TestCmdlineParser : public TestFixture {
4949
{}
5050

5151
private:
52-
class CmdLineLoggerTest : public CmdLineLogger
52+
class CmdLineLoggerTest final : public CmdLineLogger
5353
{
5454
public:
5555
CmdLineLoggerTest() = default;
@@ -91,7 +91,7 @@ class TestCmdlineParser : public TestFixture {
9191
std::string buf;
9292
};
9393

94-
class CmdLineParserTest : public CmdLineParser
94+
class CmdLineParserTest final : public CmdLineParser
9595
{
9696
friend class TestCmdlineParser;
9797
public:

test/testplatform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class TestPlatform : public TestFixture {
5050
TEST_CASE(wrong_root_node);
5151
}
5252

53-
class PlatformTest : public Platform
53+
class PlatformTest final : public Platform
5454
{
5555
friend class TestPlatform;
5656
};

test/testsimplifytemplate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,12 @@ class TestSimplifyTemplate : public TestFixture {
321321
TEST_CASE(dumpTemplateArgFrom);
322322
}
323323

324-
class TemplateSimplifierTest : public TemplateSimplifier
324+
class TemplateSimplifierTest final : public TemplateSimplifier
325325
{
326326
friend class TestSimplifyTemplate;
327327
};
328328

329-
class TokenizerTest : public Tokenizer
329+
class TokenizerTest final : public Tokenizer
330330
{
331331
friend class TestSimplifyTemplate;
332332
public:

test/testsimplifytypedef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class TestSimplifyTypedef : public TestFixture {
261261
TEST_CASE(typedefInfo3);
262262
}
263263

264-
class TokenizerTest : public Tokenizer
264+
class TokenizerTest final : public Tokenizer
265265
{
266266
friend class TestSimplifyTypedef;
267267
public:

test/testtokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ class TestTokenizer : public TestFixture {
515515
TEST_CASE(simplifyEnum2);
516516
}
517517

518-
class TokenizerTest : public Tokenizer
518+
class TokenizerTest final : public Tokenizer
519519
{
520520
friend class TestTokenizer;
521521
public:

0 commit comments

Comments
 (0)