Use OVERRIDE in test

This commit is contained in:
Daniel Marjamäki 2019-01-12 15:45:25 +01:00
parent 792419a591
commit 8dd641b8be
56 changed files with 63 additions and 63 deletions

View File

@ -31,7 +31,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("portability");
TEST_CASE(novardecl);

View File

@ -44,7 +44,7 @@ private:
checkAssert.runSimplifiedChecks(&tokenizer, &settings, this);
}
void run() override {
void run() OVERRIDE {
settings.addEnabled("warning");
TEST_CASE(assignmentInAssert);

View File

@ -32,7 +32,7 @@ public:
private:
void run() override {
void run() OVERRIDE {
TEST_CASE(findLambdaEndToken);
TEST_CASE(isReturnScope);
TEST_CASE(isVariableChanged);

View File

@ -55,7 +55,7 @@ private:
}
}
void run() override {
void run() OVERRIDE {
settings.addEnabled("warning");
settings.addEnabled("style");
LOAD_LIB_2(settings.library, "std.cfg");

View File

@ -31,7 +31,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("style");
settings.addEnabled("warning");
settings.inconclusive = true;

View File

@ -31,7 +31,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("style");
settings.addEnabled("performance");

View File

@ -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");

View File

@ -32,7 +32,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.platform(Settings::Unspecified);
settings.addEnabled("warning");
settings.addEnabled("portability");

View File

@ -34,7 +34,7 @@ private:
Settings settings0;
Settings settings1;
void run() override {
void run() OVERRIDE {
settings0.addEnabled("style");
settings1.addEnabled("warning");

View File

@ -42,7 +42,7 @@ private:
Settings settings;
CmdLineParser defParser;
void run() override {
void run() OVERRIDE {
TEST_CASE(nooptions);
TEST_CASE(helpshort);
TEST_CASE(helplong);

View File

@ -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");

View File

@ -48,7 +48,7 @@ private:
checkClass.constructors();
}
void run() override {
void run() OVERRIDE {
settings.addEnabled("style");
settings.addEnabled("warning");

View File

@ -45,7 +45,7 @@ private:
}
};
void run() override {
void run() OVERRIDE {
TEST_CASE(instancesSorted);
TEST_CASE(classInfoFormat);
TEST_CASE(getErrorMessages);

View File

@ -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);

View File

@ -31,7 +31,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("all");
TEST_CASE(destructors);

View File

@ -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");

View File

@ -34,7 +34,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("style");
settings.addEnabled("warning");
settings.addEnabled("portability");

View File

@ -34,7 +34,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.debugwarnings = true;
settings.addEnabled("style");
settings.addEnabled("warning");

View File

@ -38,7 +38,7 @@ public:
private:
void run() override {
void run() OVERRIDE {
TEST_CASE(setDefines);
TEST_CASE(setIncludePaths1);
TEST_CASE(setIncludePaths2);

View File

@ -59,7 +59,7 @@ private:
checkOther.checkIncompleteStatement();
}
void run() override {
void run() OVERRIDE {
settings.addEnabled("warning");
TEST_CASE(test1);

View File

@ -31,7 +31,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("internal");
TEST_CASE(simplePatternInTokenMatch)

View File

@ -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");

View File

@ -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);

View File

@ -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);

View File

@ -30,7 +30,7 @@ public:
private:
void run() override {
void run() OVERRIDE {
TEST_CASE(isint);
TEST_CASE(isbin);
TEST_CASE(isdec);

View File

@ -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);

View File

@ -39,7 +39,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
// Load std.cfg configuration
{
const char xmldata[] = "<?xml version=\"1.0\"?>\n"

View File

@ -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);

View File

@ -38,7 +38,7 @@ public:
private:
Settings _settings;
void run() override {
void run() OVERRIDE {
LOAD_LIB_2(_settings.library, "std.cfg");

View File

@ -29,7 +29,7 @@ public:
private:
void run() override {
void run() OVERRIDE {
TEST_CASE(removeQuotationMarks);
TEST_CASE(acceptFile);
TEST_CASE(getCurrentPath);

View File

@ -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);

View File

@ -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);

View File

@ -46,7 +46,7 @@ private:
checkPostfixOperator.postfixOperator();
}
void run() override {
void run() OVERRIDE {
settings.addEnabled("performance");
TEST_CASE(testsimple);

View File

@ -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);

View File

@ -44,7 +44,7 @@ public:
private:
void run() override {
void run() OVERRIDE {
TEST_CASE(runSamples);
TEST_CASE(runConsoleCodePageTranslationOnWindows);
}

View File

@ -36,7 +36,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("portability");
TEST_CASE(template1);

View File

@ -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");

View File

@ -38,7 +38,7 @@ private:
Settings settings1;
Settings settings2;
void run() override {
void run() OVERRIDE {
settings0.addEnabled("style");
settings2.addEnabled("style");

View File

@ -33,7 +33,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("warning");
settings.addEnabled("portability");
settings.inconclusive = true;

View File

@ -34,7 +34,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("warning");
settings.addEnabled("style");
settings.addEnabled("performance");

View File

@ -31,7 +31,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("warning");
settings.addEnabled("style");

View File

@ -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

View File

@ -104,7 +104,7 @@ private:
return 0;
}
void run() override {
void run() OVERRIDE {
LOAD_LIB_2(settings1.library, "std.cfg");
settings2.platform(Settings::Unspecified);

View File

@ -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);

View File

@ -29,7 +29,7 @@ public:
private:
void run() override {
void run() OVERRIDE {
TEST_CASE(result);
}

View File

@ -42,7 +42,7 @@ private:
std::vector<std::string> extendedOps;
std::vector<std::string> assignmentOps;
void run() override {
void run() OVERRIDE {
arithmeticalOps = { "+", "-", "*", "/", "%", "<<", ">>" };
logicalOps = { "&&", "||", "!" };
comparisonOps = { "==", "!=", "<", "<=", ">", ">=" };

View File

@ -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);

View File

@ -32,7 +32,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
TEST_CASE(testaddtoken1);
TEST_CASE(testaddtoken2);
TEST_CASE(inc);

View File

@ -32,7 +32,7 @@ public:
private:
void run() override {
void run() OVERRIDE {
TEST_CASE(checkTooBigShift_Unix32);
TEST_CASE(checkIntegerOverflow);
TEST_CASE(signConversion);

View File

@ -36,7 +36,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
LOAD_LIB_2(settings.library, "std.cfg");
TEST_CASE(uninitvar1);

View File

@ -33,7 +33,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("style");
TEST_CASE(incondition);

View File

@ -34,7 +34,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
settings.addEnabled("style");
TEST_CASE(test1);

View File

@ -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.

View File

@ -44,7 +44,7 @@ private:
checkVaarg.runSimplifiedChecks(&tokenizer, &settings, this);
}
void run() override {
void run() OVERRIDE {
settings.addEnabled("warning");
TEST_CASE(wrongParameterTo_va_start);

View File

@ -41,7 +41,7 @@ public:
private:
Settings settings;
void run() override {
void run() OVERRIDE {
// strcpy, abort cfg
const char cfg[] = "<?xml version=\"1.0\"?>\n"
"<def>\n"

View File

@ -34,7 +34,7 @@ public:
}
private:
void run() override {
void run() OVERRIDE {
TEST_CASE(varid1);
TEST_CASE(varid2);
TEST_CASE(varid3);