From 8cbbb99a572db263d43f5219fe9d42b76d2bf75e Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 14 Oct 2025 23:06:29 +0200 Subject: [PATCH] testrunner: removed unnecessary default constructor from test options --- test/testautovariables.cpp | 1 - test/testbool.cpp | 1 - test/testbufferoverrun.cpp | 1 - test/testclass.cpp | 2 -- test/testcondition.cpp | 1 - test/testconstructors.cpp | 1 - test/testexceptionsafety.cpp | 1 - test/testfunctions.cpp | 1 - test/testincompletestatement.cpp | 1 - test/testio.cpp | 1 - test/testleakautovar.cpp | 1 - test/testnullpointer.cpp | 1 - test/testother.cpp | 3 --- test/testprocessexecutor.cpp | 1 - test/testsimplifytemplate.cpp | 1 - test/testsimplifytokens.cpp | 2 -- test/testsimplifytypedef.cpp | 1 - test/testsimplifyusing.cpp | 1 - test/testsingleexecutor.cpp | 1 - test/teststl.cpp | 1 - test/teststring.cpp | 1 - test/testthreadexecutor.cpp | 1 - test/testtype.cpp | 2 -- test/testuninitvar.cpp | 1 - test/testunusedfunctions.cpp | 1 - test/testunusedprivfunc.cpp | 1 - test/testunusedvar.cpp | 2 -- test/testvarid.cpp | 1 - 28 files changed, 34 deletions(-) diff --git a/test/testautovariables.cpp b/test/testautovariables.cpp index 3b098e58908..a56e65ba5cd 100644 --- a/test/testautovariables.cpp +++ b/test/testautovariables.cpp @@ -34,7 +34,6 @@ class TestAutoVariables : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool inconclusive = true; bool cpp = true; }; diff --git a/test/testbool.cpp b/test/testbool.cpp index dd43cf9b19a..70860a8c169 100644 --- a/test/testbool.cpp +++ b/test/testbool.cpp @@ -78,7 +78,6 @@ class TestBool : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool cpp = true; }; diff --git a/test/testbufferoverrun.cpp b/test/testbufferoverrun.cpp index b57665d613e..66bc18955f1 100644 --- a/test/testbufferoverrun.cpp +++ b/test/testbufferoverrun.cpp @@ -39,7 +39,6 @@ class TestBufferOverrun : public TestFixture { struct CheckOptions { - CheckOptions() = default; const Settings* s = nullptr; bool cpp = true; }; diff --git a/test/testclass.cpp b/test/testclass.cpp index 2b87cfd842b..6ae06b3907e 100644 --- a/test/testclass.cpp +++ b/test/testclass.cpp @@ -2633,7 +2633,6 @@ class TestClass : public TestFixture { struct CheckVirtualDestructorOptions { - CheckVirtualDestructorOptions() = default; bool inconclusive = false; }; @@ -3656,7 +3655,6 @@ class TestClass : public TestFixture { struct CheckConstOptions { - CheckConstOptions() = default; const Settings *s = nullptr; bool inconclusive = true; }; diff --git a/test/testcondition.cpp b/test/testcondition.cpp index d1b7137377f..9bde30f36b5 100644 --- a/test/testcondition.cpp +++ b/test/testcondition.cpp @@ -130,7 +130,6 @@ class TestCondition : public TestFixture { struct CheckOptions { - CheckOptions() = default; const Settings* s = nullptr; bool cpp = true; bool inconclusive = false; diff --git a/test/testconstructors.cpp b/test/testconstructors.cpp index 8023990f629..f247c47c7ac 100644 --- a/test/testconstructors.cpp +++ b/test/testconstructors.cpp @@ -34,7 +34,6 @@ class TestConstructors : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool inconclusive = false; const Settings* s = nullptr; }; diff --git a/test/testexceptionsafety.cpp b/test/testexceptionsafety.cpp index 0ec92c982e7..af5f54ac219 100644 --- a/test/testexceptionsafety.cpp +++ b/test/testexceptionsafety.cpp @@ -61,7 +61,6 @@ class TestExceptionSafety : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool inconclusive = false; const Settings *s = nullptr; }; diff --git a/test/testfunctions.cpp b/test/testfunctions.cpp index f78356395f7..db52237f994 100644 --- a/test/testfunctions.cpp +++ b/test/testfunctions.cpp @@ -116,7 +116,6 @@ class TestFunctions : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool cpp = true; const Settings* s = nullptr; }; diff --git a/test/testincompletestatement.cpp b/test/testincompletestatement.cpp index 1ac971b3497..e2efce8dacd 100644 --- a/test/testincompletestatement.cpp +++ b/test/testincompletestatement.cpp @@ -34,7 +34,6 @@ class TestIncompleteStatement : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool inconclusive = false; bool cpp = true; }; diff --git a/test/testio.cpp b/test/testio.cpp index 609edd81fe8..788ff17ebbe 100644 --- a/test/testio.cpp +++ b/test/testio.cpp @@ -86,7 +86,6 @@ class TestIO : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool inconclusive = false; bool portability = false; Platform::Type platform = Platform::Type::Unspecified; diff --git a/test/testleakautovar.cpp b/test/testleakautovar.cpp index 043771ce471..ce98d375e0f 100644 --- a/test/testleakautovar.cpp +++ b/test/testleakautovar.cpp @@ -216,7 +216,6 @@ class TestLeakAutoVar : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool cpp = false; const Settings *s = nullptr; }; diff --git a/test/testnullpointer.cpp b/test/testnullpointer.cpp index 88338447ade..f4d0ca61813 100644 --- a/test/testnullpointer.cpp +++ b/test/testnullpointer.cpp @@ -180,7 +180,6 @@ class TestNullPointer : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool inconclusive = false; bool cpp = true; Standards::cstd_t cstd = Standards::CLatest; diff --git a/test/testother.cpp b/test/testother.cpp index 51b6b229a79..e363642684d 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -330,7 +330,6 @@ class TestOther : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool cpp = true; bool inconclusive = true; bool verbose = false; @@ -365,7 +364,6 @@ class TestOther : public TestFixture { struct CheckPOptions { - CheckPOptions() = default; bool cpp = true; }; @@ -2265,7 +2263,6 @@ class TestOther : public TestFixture { struct CheckInvalidPointerCastOptions { - CheckInvalidPointerCastOptions() = default; bool portability = true; bool inconclusive = false; }; diff --git a/test/testprocessexecutor.cpp b/test/testprocessexecutor.cpp index ff404f11c66..a2c61b5cf26 100644 --- a/test/testprocessexecutor.cpp +++ b/test/testprocessexecutor.cpp @@ -51,7 +51,6 @@ class TestProcessExecutorBase : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool quiet = true; SHOWTIME_MODES showtime = SHOWTIME_MODES::SHOWTIME_NONE; const char* plistOutput = nullptr; diff --git a/test/testsimplifytemplate.cpp b/test/testsimplifytemplate.cpp index a1bd0023921..a17646854e9 100644 --- a/test/testsimplifytemplate.cpp +++ b/test/testsimplifytemplate.cpp @@ -321,7 +321,6 @@ class TestSimplifyTemplate : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool debugwarnings = false; }; diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 395039fa6c9..f55b1e83fc7 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -166,7 +166,6 @@ class TestSimplifyTokens : public TestFixture { struct TokOptions { - TokOptions() = default; bool cpp = true; Platform::Type type = Platform::Type::Native; }; @@ -184,7 +183,6 @@ class TestSimplifyTokens : public TestFixture { struct TokenizeAndStringifyOptions { - TokenizeAndStringifyOptions() = default; Platform::Type platform = Platform::Type::Native; bool cpp = true; }; diff --git a/test/testsimplifytypedef.cpp b/test/testsimplifytypedef.cpp index d72f45521ae..3a7c491cbad 100644 --- a/test/testsimplifytypedef.cpp +++ b/test/testsimplifytypedef.cpp @@ -259,7 +259,6 @@ class TestSimplifyTypedef : public TestFixture { struct TokOptions { - TokOptions() = default; bool simplify = true; bool debugwarnings = true; }; diff --git a/test/testsimplifyusing.cpp b/test/testsimplifyusing.cpp index 9c6abf2dbfb..fa067f822ce 100644 --- a/test/testsimplifyusing.cpp +++ b/test/testsimplifyusing.cpp @@ -101,7 +101,6 @@ class TestSimplifyUsing : public TestFixture { struct TokOptions { - TokOptions() = default; Platform::Type type = Platform::Type::Native; bool debugwarnings = true; bool preprocess = false; diff --git a/test/testsingleexecutor.cpp b/test/testsingleexecutor.cpp index 25eb43ac4bc..f5be2dc9790 100644 --- a/test/testsingleexecutor.cpp +++ b/test/testsingleexecutor.cpp @@ -60,7 +60,6 @@ class TestSingleExecutorBase : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool quiet = true; SHOWTIME_MODES showtime = SHOWTIME_MODES::SHOWTIME_NONE; const char* plistOutput = nullptr; diff --git a/test/teststl.cpp b/test/teststl.cpp index c86b628d9e8..73e12426bf4 100644 --- a/test/teststl.cpp +++ b/test/teststl.cpp @@ -180,7 +180,6 @@ class TestStl : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool inconclusive = false; Standards::cppstd_t cppstandard = Standards::CPPLatest; }; diff --git a/test/teststring.cpp b/test/teststring.cpp index c9a31247f58..3969e48aec2 100644 --- a/test/teststring.cpp +++ b/test/teststring.cpp @@ -62,7 +62,6 @@ class TestString : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool cpp = true; }; diff --git a/test/testthreadexecutor.cpp b/test/testthreadexecutor.cpp index d96e219153a..cc7208e0eaf 100644 --- a/test/testthreadexecutor.cpp +++ b/test/testthreadexecutor.cpp @@ -51,7 +51,6 @@ class TestThreadExecutorBase : public TestFixture { struct CheckOptions { - CheckOptions() = default; bool quiet = true; SHOWTIME_MODES showtime = SHOWTIME_MODES::SHOWTIME_NONE; const char* plistOutput = nullptr; diff --git a/test/testtype.cpp b/test/testtype.cpp index d85e6d8ca74..a076774e109 100644 --- a/test/testtype.cpp +++ b/test/testtype.cpp @@ -48,7 +48,6 @@ class TestType : public TestFixture { struct CheckOptions { - CheckOptions() = default; const Settings* settings = nullptr; Standards::cppstd_t standard = Standards::cppstd_t::CPP11; }; @@ -80,7 +79,6 @@ class TestType : public TestFixture { struct CheckPOptions { - CheckPOptions() = default; const Settings* settings = nullptr; bool cpp = true; }; diff --git a/test/testuninitvar.cpp b/test/testuninitvar.cpp index 051649ac77a..cf96efe22da 100644 --- a/test/testuninitvar.cpp +++ b/test/testuninitvar.cpp @@ -108,7 +108,6 @@ class TestUninitVar : public TestFixture { struct CheckUninitVarOptions { - CheckUninitVarOptions() = default; bool cpp = true; bool debugwarnings = false; const Settings *s = nullptr; diff --git a/test/testunusedfunctions.cpp b/test/testunusedfunctions.cpp index 8db3015f9cc..b1d807654af 100644 --- a/test/testunusedfunctions.cpp +++ b/test/testunusedfunctions.cpp @@ -90,7 +90,6 @@ class TestUnusedFunctions : public TestFixture { struct CheckOptions { - CheckOptions() = default; Platform::Type platform = Platform::Type::Native; const Settings* s = nullptr; bool cpp = true; diff --git a/test/testunusedprivfunc.cpp b/test/testunusedprivfunc.cpp index d3ae98a975f..530624f89fa 100644 --- a/test/testunusedprivfunc.cpp +++ b/test/testunusedprivfunc.cpp @@ -88,7 +88,6 @@ class TestUnusedPrivateFunction : public TestFixture { struct CheckOptions { - CheckOptions() = default; Platform::Type platform = Platform::Type::Native; }; diff --git a/test/testunusedvar.cpp b/test/testunusedvar.cpp index 74d745b9f46..adc72c7f6ec 100644 --- a/test/testunusedvar.cpp +++ b/test/testunusedvar.cpp @@ -269,7 +269,6 @@ class TestUnusedVar : public TestFixture { struct FunctionVariableUsageOptions { - FunctionVariableUsageOptions() = default; bool cpp = true; }; @@ -286,7 +285,6 @@ class TestUnusedVar : public TestFixture { struct CheckStructMemberUsageOptions { - CheckStructMemberUsageOptions() = default; const std::list* directives = nullptr; bool cpp = true; }; diff --git a/test/testvarid.cpp b/test/testvarid.cpp index d509ece2f13..f3d13eafc51 100644 --- a/test/testvarid.cpp +++ b/test/testvarid.cpp @@ -260,7 +260,6 @@ class TestVarID : public TestFixture { struct TokenizeOptions { - TokenizeOptions() = default; bool cpp = true; const Settings *s = nullptr; };