diff --git a/test/test64bit.cpp b/test/test64bit.cpp index bc46aa2c9..e961d768b 100644 --- a/test/test64bit.cpp +++ b/test/test64bit.cpp @@ -31,7 +31,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("portability"); TEST_CASE(novardecl); diff --git a/test/testassert.cpp b/test/testassert.cpp index e264ee1d7..a22d80794 100644 --- a/test/testassert.cpp +++ b/test/testassert.cpp @@ -44,7 +44,7 @@ private: checkAssert.runSimplifiedChecks(&tokenizer, &settings, this); } - void run() override { + void run() OVERRIDE { settings.addEnabled("warning"); TEST_CASE(assignmentInAssert); diff --git a/test/testastutils.cpp b/test/testastutils.cpp index 79fef5980..f94de7695 100644 --- a/test/testastutils.cpp +++ b/test/testastutils.cpp @@ -32,7 +32,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(findLambdaEndToken); TEST_CASE(isReturnScope); TEST_CASE(isVariableChanged); diff --git a/test/testautovariables.cpp b/test/testautovariables.cpp index e2fd19f15..aa2389d9c 100644 --- a/test/testautovariables.cpp +++ b/test/testautovariables.cpp @@ -55,7 +55,7 @@ private: } } - void run() override { + void run() OVERRIDE { settings.addEnabled("warning"); settings.addEnabled("style"); LOAD_LIB_2(settings.library, "std.cfg"); diff --git a/test/testbool.cpp b/test/testbool.cpp index 1be8a2d46..230c5a97b 100644 --- a/test/testbool.cpp +++ b/test/testbool.cpp @@ -31,7 +31,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("style"); settings.addEnabled("warning"); settings.inconclusive = true; diff --git a/test/testboost.cpp b/test/testboost.cpp index 89dc3532f..5e4472d97 100644 --- a/test/testboost.cpp +++ b/test/testboost.cpp @@ -31,7 +31,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("style"); settings.addEnabled("performance"); diff --git a/test/testbufferoverrun.cpp b/test/testbufferoverrun.cpp index 759232e29..e5a870cee 100644 --- a/test/testbufferoverrun.cpp +++ b/test/testbufferoverrun.cpp @@ -73,7 +73,7 @@ private: checkBufferOverrun.runSimplifiedChecks(&tokenizer, &settings, this); } - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings0.library, "std.cfg"); settings0.addEnabled("warning"); diff --git a/test/testcharvar.cpp b/test/testcharvar.cpp index 3567e1056..187592837 100644 --- a/test/testcharvar.cpp +++ b/test/testcharvar.cpp @@ -32,7 +32,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.platform(Settings::Unspecified); settings.addEnabled("warning"); settings.addEnabled("portability"); diff --git a/test/testclass.cpp b/test/testclass.cpp index a9c03f327..c22f84cff 100644 --- a/test/testclass.cpp +++ b/test/testclass.cpp @@ -34,7 +34,7 @@ private: Settings settings0; Settings settings1; - void run() override { + void run() OVERRIDE { settings0.addEnabled("style"); settings1.addEnabled("warning"); diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index 44c87e807..199798a97 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -42,7 +42,7 @@ private: Settings settings; CmdLineParser defParser; - void run() override { + void run() OVERRIDE { TEST_CASE(nooptions); TEST_CASE(helpshort); TEST_CASE(helplong); diff --git a/test/testcondition.cpp b/test/testcondition.cpp index 2127bdf7d..8f8226e66 100644 --- a/test/testcondition.cpp +++ b/test/testcondition.cpp @@ -36,7 +36,7 @@ private: Settings settings0; Settings settings1; - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings0.library, "qt.cfg"); LOAD_LIB_2(settings0.library, "std.cfg"); diff --git a/test/testconstructors.cpp b/test/testconstructors.cpp index 1d3c37a53..37358797a 100644 --- a/test/testconstructors.cpp +++ b/test/testconstructors.cpp @@ -48,7 +48,7 @@ private: checkClass.constructors(); } - void run() override { + void run() OVERRIDE { settings.addEnabled("style"); settings.addEnabled("warning"); diff --git a/test/testcppcheck.cpp b/test/testcppcheck.cpp index 28c120af0..8b19b7592 100644 --- a/test/testcppcheck.cpp +++ b/test/testcppcheck.cpp @@ -45,7 +45,7 @@ private: } }; - void run() override { + void run() OVERRIDE { TEST_CASE(instancesSorted); TEST_CASE(classInfoFormat); TEST_CASE(getErrorMessages); diff --git a/test/testerrorlogger.cpp b/test/testerrorlogger.cpp index e174cb8f3..de7f43258 100644 --- a/test/testerrorlogger.cpp +++ b/test/testerrorlogger.cpp @@ -35,7 +35,7 @@ private: const ErrorLogger::ErrorMessage::FileLocation fooCpp5; const ErrorLogger::ErrorMessage::FileLocation barCpp8; - void run() override { + void run() OVERRIDE { TEST_CASE(PatternSearchReplace); TEST_CASE(FileLocationDefaults); TEST_CASE(FileLocationSetFile); diff --git a/test/testexceptionsafety.cpp b/test/testexceptionsafety.cpp index 3db431f0a..5629e19b4 100644 --- a/test/testexceptionsafety.cpp +++ b/test/testexceptionsafety.cpp @@ -31,7 +31,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("all"); TEST_CASE(destructors); diff --git a/test/testfilelister.cpp b/test/testfilelister.cpp index 8eb23a3a0..c22b010cc 100644 --- a/test/testfilelister.cpp +++ b/test/testfilelister.cpp @@ -37,7 +37,7 @@ public: } private: - void run() override { + void run() OVERRIDE { // bail out if the tests are not executed from the base folder { std::ifstream fin("test/testfilelister.cpp"); diff --git a/test/testfunctions.cpp b/test/testfunctions.cpp index e7141daf8..85bd362fd 100644 --- a/test/testfunctions.cpp +++ b/test/testfunctions.cpp @@ -34,7 +34,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("style"); settings.addEnabled("warning"); settings.addEnabled("portability"); diff --git a/test/testgarbage.cpp b/test/testgarbage.cpp index be2e05c20..1246a7658 100644 --- a/test/testgarbage.cpp +++ b/test/testgarbage.cpp @@ -34,7 +34,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.debugwarnings = true; settings.addEnabled("style"); settings.addEnabled("warning"); diff --git a/test/testimportproject.cpp b/test/testimportproject.cpp index 148c72854..bbd0eadc8 100644 --- a/test/testimportproject.cpp +++ b/test/testimportproject.cpp @@ -38,7 +38,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(setDefines); TEST_CASE(setIncludePaths1); TEST_CASE(setIncludePaths2); diff --git a/test/testincompletestatement.cpp b/test/testincompletestatement.cpp index 2805c81d4..b2d7e20c6 100644 --- a/test/testincompletestatement.cpp +++ b/test/testincompletestatement.cpp @@ -59,7 +59,7 @@ private: checkOther.checkIncompleteStatement(); } - void run() override { + void run() OVERRIDE { settings.addEnabled("warning"); TEST_CASE(test1); diff --git a/test/testinternal.cpp b/test/testinternal.cpp index e7303f183..5d6010463 100644 --- a/test/testinternal.cpp +++ b/test/testinternal.cpp @@ -31,7 +31,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("internal"); TEST_CASE(simplePatternInTokenMatch) diff --git a/test/testio.cpp b/test/testio.cpp index 345cad93b..30c17439e 100644 --- a/test/testio.cpp +++ b/test/testio.cpp @@ -32,7 +32,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings.library, "std.cfg"); LOAD_LIB_2(settings.library, "windows.cfg"); LOAD_LIB_2(settings.library, "qt.cfg"); diff --git a/test/testleakautovar.cpp b/test/testleakautovar.cpp index e23ff248c..f891d5b2e 100644 --- a/test/testleakautovar.cpp +++ b/test/testleakautovar.cpp @@ -32,7 +32,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { int id = 0; while (!settings.library.ismemory(++id)); settings.library.setalloc("malloc", id, -1); @@ -1635,7 +1635,7 @@ private: checkLeak.runSimplifiedChecks(&tokenizer, &settings, this); } - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings.library, "windows.cfg"); TEST_CASE(heapDoubleFree); diff --git a/test/testlibrary.cpp b/test/testlibrary.cpp index 516630927..3e9b55f92 100644 --- a/test/testlibrary.cpp +++ b/test/testlibrary.cpp @@ -39,7 +39,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { TEST_CASE(empty); TEST_CASE(function); TEST_CASE(function_match_scope); diff --git a/test/testmathlib.cpp b/test/testmathlib.cpp index c269742bd..6baacb412 100644 --- a/test/testmathlib.cpp +++ b/test/testmathlib.cpp @@ -30,7 +30,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(isint); TEST_CASE(isbin); TEST_CASE(isdec); diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index 9fb70dca0..a77d64990 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -42,7 +42,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { TEST_CASE(testFunctionReturnType); TEST_CASE(open); } @@ -152,7 +152,7 @@ private: } - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings1.library, "std.cfg"); LOAD_LIB_2(settings1.library, "posix.cfg"); LOAD_LIB_2(settings2.library, "std.cfg"); @@ -3556,7 +3556,7 @@ private: checkMemoryLeak.check(); } - void run() override { + void run() OVERRIDE { settings.addEnabled("warning"); settings.addEnabled("style"); @@ -4730,7 +4730,7 @@ private: checkMemoryLeakStructMember.check(); } - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings.library, "std.cfg"); LOAD_LIB_2(settings.library, "posix.cfg"); @@ -5195,7 +5195,7 @@ private: checkMemoryLeakNoVar.check(); } - void run() override { + void run() OVERRIDE { settings.inconclusive = true; settings.standards.posix = true; settings.addEnabled("warning"); @@ -5539,7 +5539,7 @@ private: checkMemoryLeak4.check(); } - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings.library, "gtk.cfg"); settings.addEnabled("all"); return; @@ -5653,7 +5653,7 @@ private: checkMemoryLeak.checkReallocUsage(); } - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings.library, "windows.cfg"); return; TEST_CASE(openfileNoLeak); diff --git a/test/testnullpointer.cpp b/test/testnullpointer.cpp index 64db1006c..1d2de94b0 100644 --- a/test/testnullpointer.cpp +++ b/test/testnullpointer.cpp @@ -39,7 +39,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { // Load std.cfg configuration { const char xmldata[] = "\n" diff --git a/test/testoptions.cpp b/test/testoptions.cpp index 504d8ce78..b3df9bd41 100644 --- a/test/testoptions.cpp +++ b/test/testoptions.cpp @@ -26,7 +26,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(which_test); TEST_CASE(which_test_method); TEST_CASE(no_test_method); diff --git a/test/testother.cpp b/test/testother.cpp index ce634f1c6..ca9c31534 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -38,7 +38,7 @@ public: private: Settings _settings; - void run() override { + void run() OVERRIDE { LOAD_LIB_2(_settings.library, "std.cfg"); diff --git a/test/testpath.cpp b/test/testpath.cpp index c549dbbc5..ef181e5ef 100644 --- a/test/testpath.cpp +++ b/test/testpath.cpp @@ -29,7 +29,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(removeQuotationMarks); TEST_CASE(acceptFile); TEST_CASE(getCurrentPath); diff --git a/test/testpathmatch.cpp b/test/testpathmatch.cpp index 537220da1..9144878f0 100644 --- a/test/testpathmatch.cpp +++ b/test/testpathmatch.cpp @@ -39,7 +39,7 @@ private: const PathMatch fooCppMatcher; const PathMatch srcFooCppMatcher; - void run() override { + void run() OVERRIDE { TEST_CASE(emptymaskemptyfile); TEST_CASE(emptymaskpath1); TEST_CASE(emptymaskpath2); diff --git a/test/testplatform.cpp b/test/testplatform.cpp index b2db0a382..cd4c5e312 100644 --- a/test/testplatform.cpp +++ b/test/testplatform.cpp @@ -28,7 +28,7 @@ public: TestPlatform() : TestFixture("TestPlatform") { } private: - void run() override { + void run() OVERRIDE { TEST_CASE(empty); TEST_CASE(valid_config_native_1); TEST_CASE(valid_config_native_2); diff --git a/test/testpostfixoperator.cpp b/test/testpostfixoperator.cpp index 0ec9a5c93..17832359d 100644 --- a/test/testpostfixoperator.cpp +++ b/test/testpostfixoperator.cpp @@ -46,7 +46,7 @@ private: checkPostfixOperator.postfixOperator(); } - void run() override { + void run() OVERRIDE { settings.addEnabled("performance"); TEST_CASE(testsimple); diff --git a/test/testpreprocessor.cpp b/test/testpreprocessor.cpp index 3df51a192..73beedff0 100644 --- a/test/testpreprocessor.cpp +++ b/test/testpreprocessor.cpp @@ -69,7 +69,7 @@ private: Settings settings0; Preprocessor preprocessor0; - void run() override { + void run() OVERRIDE { // The bug that started the whole work with the new preprocessor TEST_CASE(Bug2190219); diff --git a/test/testsamples.cpp b/test/testsamples.cpp index e19b02444..53a347ed9 100644 --- a/test/testsamples.cpp +++ b/test/testsamples.cpp @@ -44,7 +44,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(runSamples); TEST_CASE(runConsoleCodePageTranslationOnWindows); } diff --git a/test/testsimplifytemplate.cpp b/test/testsimplifytemplate.cpp index 7cd85f947..24a561ad7 100644 --- a/test/testsimplifytemplate.cpp +++ b/test/testsimplifytemplate.cpp @@ -36,7 +36,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("portability"); TEST_CASE(template1); diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 49e1da461..ff239d98f 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -39,7 +39,7 @@ private: Settings settings_std; Settings settings_windows; - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings_std.library, "std.cfg"); LOAD_LIB_2(settings_windows.library, "windows.cfg"); settings0.addEnabled("portability"); diff --git a/test/testsimplifytypedef.cpp b/test/testsimplifytypedef.cpp index 9fb0e019e..2b74abc5c 100644 --- a/test/testsimplifytypedef.cpp +++ b/test/testsimplifytypedef.cpp @@ -38,7 +38,7 @@ private: Settings settings1; Settings settings2; - void run() override { + void run() OVERRIDE { settings0.addEnabled("style"); settings2.addEnabled("style"); diff --git a/test/testsizeof.cpp b/test/testsizeof.cpp index 848ed7864..2df0b0de6 100644 --- a/test/testsizeof.cpp +++ b/test/testsizeof.cpp @@ -33,7 +33,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("warning"); settings.addEnabled("portability"); settings.inconclusive = true; diff --git a/test/teststl.cpp b/test/teststl.cpp index 135b54f16..f3a845715 100644 --- a/test/teststl.cpp +++ b/test/teststl.cpp @@ -34,7 +34,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("warning"); settings.addEnabled("style"); settings.addEnabled("performance"); diff --git a/test/teststring.cpp b/test/teststring.cpp index 5460b22ec..4acc2f4e3 100644 --- a/test/teststring.cpp +++ b/test/teststring.cpp @@ -31,7 +31,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("warning"); settings.addEnabled("style"); diff --git a/test/testsuppressions.cpp b/test/testsuppressions.cpp index 9cc443797..a41535d67 100644 --- a/test/testsuppressions.cpp +++ b/test/testsuppressions.cpp @@ -38,7 +38,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(suppressionsBadId1); TEST_CASE(suppressionsDosFormat); // Ticket #1836 TEST_CASE(suppressionsFileNameWithColon); // Ticket #1919 - filename includes colon diff --git a/test/testsymboldatabase.cpp b/test/testsymboldatabase.cpp index 1c2a37677..9fd770dc9 100644 --- a/test/testsymboldatabase.cpp +++ b/test/testsymboldatabase.cpp @@ -104,7 +104,7 @@ private: return 0; } - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings1.library, "std.cfg"); settings2.platform(Settings::Unspecified); diff --git a/test/testthreadexecutor.cpp b/test/testthreadexecutor.cpp index 221a07572..e01a4853e 100644 --- a/test/testthreadexecutor.cpp +++ b/test/testthreadexecutor.cpp @@ -61,7 +61,7 @@ private: ASSERT_EQUALS(result, executor.check()); } - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings.library, "std.cfg"); TEST_CASE(deadlock_with_many_errors); diff --git a/test/testtimer.cpp b/test/testtimer.cpp index 25c10b343..8b0204bec 100644 --- a/test/testtimer.cpp +++ b/test/testtimer.cpp @@ -29,7 +29,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(result); } diff --git a/test/testtoken.cpp b/test/testtoken.cpp index e44b5c7a4..dcc7a2d85 100644 --- a/test/testtoken.cpp +++ b/test/testtoken.cpp @@ -42,7 +42,7 @@ private: std::vector extendedOps; std::vector assignmentOps; - void run() override { + void run() OVERRIDE { arithmeticalOps = { "+", "-", "*", "/", "%", "<<", ">>" }; logicalOps = { "&&", "||", "!" }; comparisonOps = { "==", "!=", "<", "<=", ">", ">=" }; diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index db671b0f9..a1b3eb5ab 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -44,7 +44,7 @@ private: Settings settings2; Settings settings_windows; - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings_windows.library, "windows.cfg"); TEST_CASE(tokenize1); diff --git a/test/testtokenlist.cpp b/test/testtokenlist.cpp index 2291e4744..c61f37a3d 100644 --- a/test/testtokenlist.cpp +++ b/test/testtokenlist.cpp @@ -32,7 +32,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { TEST_CASE(testaddtoken1); TEST_CASE(testaddtoken2); TEST_CASE(inc); diff --git a/test/testtype.cpp b/test/testtype.cpp index 7c14edd30..b0345d1f4 100644 --- a/test/testtype.cpp +++ b/test/testtype.cpp @@ -32,7 +32,7 @@ public: private: - void run() override { + void run() OVERRIDE { TEST_CASE(checkTooBigShift_Unix32); TEST_CASE(checkIntegerOverflow); TEST_CASE(signConversion); diff --git a/test/testuninitvar.cpp b/test/testuninitvar.cpp index 61bf41d17..53a20fe94 100644 --- a/test/testuninitvar.cpp +++ b/test/testuninitvar.cpp @@ -36,7 +36,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { LOAD_LIB_2(settings.library, "std.cfg"); TEST_CASE(uninitvar1); diff --git a/test/testunusedfunctions.cpp b/test/testunusedfunctions.cpp index 75b4c3d74..85e206af0 100644 --- a/test/testunusedfunctions.cpp +++ b/test/testunusedfunctions.cpp @@ -33,7 +33,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("style"); TEST_CASE(incondition); diff --git a/test/testunusedprivfunc.cpp b/test/testunusedprivfunc.cpp index aa1e13cd2..889b38259 100644 --- a/test/testunusedprivfunc.cpp +++ b/test/testunusedprivfunc.cpp @@ -34,7 +34,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("style"); TEST_CASE(test1); diff --git a/test/testunusedvar.cpp b/test/testunusedvar.cpp index f1b7f0d43..33f3cc46f 100644 --- a/test/testunusedvar.cpp +++ b/test/testunusedvar.cpp @@ -31,7 +31,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { settings.addEnabled("style"); TEST_CASE(emptyclass); // #5355 - False positive: Variable is not assigned a value. diff --git a/test/testvaarg.cpp b/test/testvaarg.cpp index 9d089ba76..7ea7a0ac8 100644 --- a/test/testvaarg.cpp +++ b/test/testvaarg.cpp @@ -44,7 +44,7 @@ private: checkVaarg.runSimplifiedChecks(&tokenizer, &settings, this); } - void run() override { + void run() OVERRIDE { settings.addEnabled("warning"); TEST_CASE(wrongParameterTo_va_start); diff --git a/test/testvalueflow.cpp b/test/testvalueflow.cpp index f59ee37c5..9cb9d53ba 100644 --- a/test/testvalueflow.cpp +++ b/test/testvalueflow.cpp @@ -41,7 +41,7 @@ public: private: Settings settings; - void run() override { + void run() OVERRIDE { // strcpy, abort cfg const char cfg[] = "\n" "\n" diff --git a/test/testvarid.cpp b/test/testvarid.cpp index 3ea1b597e..d8d660bb2 100644 --- a/test/testvarid.cpp +++ b/test/testvarid.cpp @@ -34,7 +34,7 @@ public: } private: - void run() override { + void run() OVERRIDE { TEST_CASE(varid1); TEST_CASE(varid2); TEST_CASE(varid3);