Use OVERRIDE in test
This commit is contained in:
parent
792419a591
commit
8dd641b8be
|
@ -31,7 +31,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("portability");
|
settings.addEnabled("portability");
|
||||||
|
|
||||||
TEST_CASE(novardecl);
|
TEST_CASE(novardecl);
|
||||||
|
|
|
@ -44,7 +44,7 @@ private:
|
||||||
checkAssert.runSimplifiedChecks(&tokenizer, &settings, this);
|
checkAssert.runSimplifiedChecks(&tokenizer, &settings, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
|
|
||||||
TEST_CASE(assignmentInAssert);
|
TEST_CASE(assignmentInAssert);
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(findLambdaEndToken);
|
TEST_CASE(findLambdaEndToken);
|
||||||
TEST_CASE(isReturnScope);
|
TEST_CASE(isReturnScope);
|
||||||
TEST_CASE(isVariableChanged);
|
TEST_CASE(isVariableChanged);
|
||||||
|
|
|
@ -55,7 +55,7 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
LOAD_LIB_2(settings.library, "std.cfg");
|
LOAD_LIB_2(settings.library, "std.cfg");
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
settings.inconclusive = true;
|
settings.inconclusive = true;
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
settings.addEnabled("performance");
|
settings.addEnabled("performance");
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ private:
|
||||||
checkBufferOverrun.runSimplifiedChecks(&tokenizer, &settings, this);
|
checkBufferOverrun.runSimplifiedChecks(&tokenizer, &settings, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings0.library, "std.cfg");
|
LOAD_LIB_2(settings0.library, "std.cfg");
|
||||||
|
|
||||||
settings0.addEnabled("warning");
|
settings0.addEnabled("warning");
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.platform(Settings::Unspecified);
|
settings.platform(Settings::Unspecified);
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
settings.addEnabled("portability");
|
settings.addEnabled("portability");
|
||||||
|
|
|
@ -34,7 +34,7 @@ private:
|
||||||
Settings settings0;
|
Settings settings0;
|
||||||
Settings settings1;
|
Settings settings1;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings0.addEnabled("style");
|
settings0.addEnabled("style");
|
||||||
settings1.addEnabled("warning");
|
settings1.addEnabled("warning");
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
CmdLineParser defParser;
|
CmdLineParser defParser;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(nooptions);
|
TEST_CASE(nooptions);
|
||||||
TEST_CASE(helpshort);
|
TEST_CASE(helpshort);
|
||||||
TEST_CASE(helplong);
|
TEST_CASE(helplong);
|
||||||
|
|
|
@ -36,7 +36,7 @@ private:
|
||||||
Settings settings0;
|
Settings settings0;
|
||||||
Settings settings1;
|
Settings settings1;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings0.library, "qt.cfg");
|
LOAD_LIB_2(settings0.library, "qt.cfg");
|
||||||
LOAD_LIB_2(settings0.library, "std.cfg");
|
LOAD_LIB_2(settings0.library, "std.cfg");
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ private:
|
||||||
checkClass.constructors();
|
checkClass.constructors();
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ private:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(instancesSorted);
|
TEST_CASE(instancesSorted);
|
||||||
TEST_CASE(classInfoFormat);
|
TEST_CASE(classInfoFormat);
|
||||||
TEST_CASE(getErrorMessages);
|
TEST_CASE(getErrorMessages);
|
||||||
|
|
|
@ -35,7 +35,7 @@ private:
|
||||||
const ErrorLogger::ErrorMessage::FileLocation fooCpp5;
|
const ErrorLogger::ErrorMessage::FileLocation fooCpp5;
|
||||||
const ErrorLogger::ErrorMessage::FileLocation barCpp8;
|
const ErrorLogger::ErrorMessage::FileLocation barCpp8;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(PatternSearchReplace);
|
TEST_CASE(PatternSearchReplace);
|
||||||
TEST_CASE(FileLocationDefaults);
|
TEST_CASE(FileLocationDefaults);
|
||||||
TEST_CASE(FileLocationSetFile);
|
TEST_CASE(FileLocationSetFile);
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("all");
|
settings.addEnabled("all");
|
||||||
|
|
||||||
TEST_CASE(destructors);
|
TEST_CASE(destructors);
|
||||||
|
|
|
@ -37,7 +37,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
// bail out if the tests are not executed from the base folder
|
// bail out if the tests are not executed from the base folder
|
||||||
{
|
{
|
||||||
std::ifstream fin("test/testfilelister.cpp");
|
std::ifstream fin("test/testfilelister.cpp");
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
settings.addEnabled("portability");
|
settings.addEnabled("portability");
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.debugwarnings = true;
|
settings.debugwarnings = true;
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
|
|
|
@ -38,7 +38,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(setDefines);
|
TEST_CASE(setDefines);
|
||||||
TEST_CASE(setIncludePaths1);
|
TEST_CASE(setIncludePaths1);
|
||||||
TEST_CASE(setIncludePaths2);
|
TEST_CASE(setIncludePaths2);
|
||||||
|
|
|
@ -59,7 +59,7 @@ private:
|
||||||
checkOther.checkIncompleteStatement();
|
checkOther.checkIncompleteStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
|
|
||||||
TEST_CASE(test1);
|
TEST_CASE(test1);
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("internal");
|
settings.addEnabled("internal");
|
||||||
|
|
||||||
TEST_CASE(simplePatternInTokenMatch)
|
TEST_CASE(simplePatternInTokenMatch)
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings.library, "std.cfg");
|
LOAD_LIB_2(settings.library, "std.cfg");
|
||||||
LOAD_LIB_2(settings.library, "windows.cfg");
|
LOAD_LIB_2(settings.library, "windows.cfg");
|
||||||
LOAD_LIB_2(settings.library, "qt.cfg");
|
LOAD_LIB_2(settings.library, "qt.cfg");
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
int id = 0;
|
int id = 0;
|
||||||
while (!settings.library.ismemory(++id));
|
while (!settings.library.ismemory(++id));
|
||||||
settings.library.setalloc("malloc", id, -1);
|
settings.library.setalloc("malloc", id, -1);
|
||||||
|
@ -1635,7 +1635,7 @@ private:
|
||||||
checkLeak.runSimplifiedChecks(&tokenizer, &settings, this);
|
checkLeak.runSimplifiedChecks(&tokenizer, &settings, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings.library, "windows.cfg");
|
LOAD_LIB_2(settings.library, "windows.cfg");
|
||||||
|
|
||||||
TEST_CASE(heapDoubleFree);
|
TEST_CASE(heapDoubleFree);
|
||||||
|
|
|
@ -39,7 +39,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(empty);
|
TEST_CASE(empty);
|
||||||
TEST_CASE(function);
|
TEST_CASE(function);
|
||||||
TEST_CASE(function_match_scope);
|
TEST_CASE(function_match_scope);
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(isint);
|
TEST_CASE(isint);
|
||||||
TEST_CASE(isbin);
|
TEST_CASE(isbin);
|
||||||
TEST_CASE(isdec);
|
TEST_CASE(isdec);
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(testFunctionReturnType);
|
TEST_CASE(testFunctionReturnType);
|
||||||
TEST_CASE(open);
|
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, "std.cfg");
|
||||||
LOAD_LIB_2(settings1.library, "posix.cfg");
|
LOAD_LIB_2(settings1.library, "posix.cfg");
|
||||||
LOAD_LIB_2(settings2.library, "std.cfg");
|
LOAD_LIB_2(settings2.library, "std.cfg");
|
||||||
|
@ -3556,7 +3556,7 @@ private:
|
||||||
checkMemoryLeak.check();
|
checkMemoryLeak.check();
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
|
|
||||||
|
@ -4730,7 +4730,7 @@ private:
|
||||||
checkMemoryLeakStructMember.check();
|
checkMemoryLeakStructMember.check();
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings.library, "std.cfg");
|
LOAD_LIB_2(settings.library, "std.cfg");
|
||||||
LOAD_LIB_2(settings.library, "posix.cfg");
|
LOAD_LIB_2(settings.library, "posix.cfg");
|
||||||
|
|
||||||
|
@ -5195,7 +5195,7 @@ private:
|
||||||
checkMemoryLeakNoVar.check();
|
checkMemoryLeakNoVar.check();
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.inconclusive = true;
|
settings.inconclusive = true;
|
||||||
settings.standards.posix = true;
|
settings.standards.posix = true;
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
|
@ -5539,7 +5539,7 @@ private:
|
||||||
checkMemoryLeak4.check();
|
checkMemoryLeak4.check();
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings.library, "gtk.cfg");
|
LOAD_LIB_2(settings.library, "gtk.cfg");
|
||||||
settings.addEnabled("all");
|
settings.addEnabled("all");
|
||||||
return;
|
return;
|
||||||
|
@ -5653,7 +5653,7 @@ private:
|
||||||
checkMemoryLeak.checkReallocUsage();
|
checkMemoryLeak.checkReallocUsage();
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings.library, "windows.cfg");
|
LOAD_LIB_2(settings.library, "windows.cfg");
|
||||||
return;
|
return;
|
||||||
TEST_CASE(openfileNoLeak);
|
TEST_CASE(openfileNoLeak);
|
||||||
|
|
|
@ -39,7 +39,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
// Load std.cfg configuration
|
// Load std.cfg configuration
|
||||||
{
|
{
|
||||||
const char xmldata[] = "<?xml version=\"1.0\"?>\n"
|
const char xmldata[] = "<?xml version=\"1.0\"?>\n"
|
||||||
|
|
|
@ -26,7 +26,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(which_test);
|
TEST_CASE(which_test);
|
||||||
TEST_CASE(which_test_method);
|
TEST_CASE(which_test_method);
|
||||||
TEST_CASE(no_test_method);
|
TEST_CASE(no_test_method);
|
||||||
|
|
|
@ -38,7 +38,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings _settings;
|
Settings _settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(_settings.library, "std.cfg");
|
LOAD_LIB_2(_settings.library, "std.cfg");
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(removeQuotationMarks);
|
TEST_CASE(removeQuotationMarks);
|
||||||
TEST_CASE(acceptFile);
|
TEST_CASE(acceptFile);
|
||||||
TEST_CASE(getCurrentPath);
|
TEST_CASE(getCurrentPath);
|
||||||
|
|
|
@ -39,7 +39,7 @@ private:
|
||||||
const PathMatch fooCppMatcher;
|
const PathMatch fooCppMatcher;
|
||||||
const PathMatch srcFooCppMatcher;
|
const PathMatch srcFooCppMatcher;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(emptymaskemptyfile);
|
TEST_CASE(emptymaskemptyfile);
|
||||||
TEST_CASE(emptymaskpath1);
|
TEST_CASE(emptymaskpath1);
|
||||||
TEST_CASE(emptymaskpath2);
|
TEST_CASE(emptymaskpath2);
|
||||||
|
|
|
@ -28,7 +28,7 @@ public:
|
||||||
TestPlatform() : TestFixture("TestPlatform") { }
|
TestPlatform() : TestFixture("TestPlatform") { }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(empty);
|
TEST_CASE(empty);
|
||||||
TEST_CASE(valid_config_native_1);
|
TEST_CASE(valid_config_native_1);
|
||||||
TEST_CASE(valid_config_native_2);
|
TEST_CASE(valid_config_native_2);
|
||||||
|
|
|
@ -46,7 +46,7 @@ private:
|
||||||
checkPostfixOperator.postfixOperator();
|
checkPostfixOperator.postfixOperator();
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("performance");
|
settings.addEnabled("performance");
|
||||||
|
|
||||||
TEST_CASE(testsimple);
|
TEST_CASE(testsimple);
|
||||||
|
|
|
@ -69,7 +69,7 @@ private:
|
||||||
Settings settings0;
|
Settings settings0;
|
||||||
Preprocessor preprocessor0;
|
Preprocessor preprocessor0;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
|
|
||||||
// The bug that started the whole work with the new preprocessor
|
// The bug that started the whole work with the new preprocessor
|
||||||
TEST_CASE(Bug2190219);
|
TEST_CASE(Bug2190219);
|
||||||
|
|
|
@ -44,7 +44,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(runSamples);
|
TEST_CASE(runSamples);
|
||||||
TEST_CASE(runConsoleCodePageTranslationOnWindows);
|
TEST_CASE(runConsoleCodePageTranslationOnWindows);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("portability");
|
settings.addEnabled("portability");
|
||||||
|
|
||||||
TEST_CASE(template1);
|
TEST_CASE(template1);
|
||||||
|
|
|
@ -39,7 +39,7 @@ private:
|
||||||
Settings settings_std;
|
Settings settings_std;
|
||||||
Settings settings_windows;
|
Settings settings_windows;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings_std.library, "std.cfg");
|
LOAD_LIB_2(settings_std.library, "std.cfg");
|
||||||
LOAD_LIB_2(settings_windows.library, "windows.cfg");
|
LOAD_LIB_2(settings_windows.library, "windows.cfg");
|
||||||
settings0.addEnabled("portability");
|
settings0.addEnabled("portability");
|
||||||
|
|
|
@ -38,7 +38,7 @@ private:
|
||||||
Settings settings1;
|
Settings settings1;
|
||||||
Settings settings2;
|
Settings settings2;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings0.addEnabled("style");
|
settings0.addEnabled("style");
|
||||||
settings2.addEnabled("style");
|
settings2.addEnabled("style");
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
settings.addEnabled("portability");
|
settings.addEnabled("portability");
|
||||||
settings.inconclusive = true;
|
settings.inconclusive = true;
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
settings.addEnabled("performance");
|
settings.addEnabled("performance");
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(suppressionsBadId1);
|
TEST_CASE(suppressionsBadId1);
|
||||||
TEST_CASE(suppressionsDosFormat); // Ticket #1836
|
TEST_CASE(suppressionsDosFormat); // Ticket #1836
|
||||||
TEST_CASE(suppressionsFileNameWithColon); // Ticket #1919 - filename includes colon
|
TEST_CASE(suppressionsFileNameWithColon); // Ticket #1919 - filename includes colon
|
||||||
|
|
|
@ -104,7 +104,7 @@ private:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings1.library, "std.cfg");
|
LOAD_LIB_2(settings1.library, "std.cfg");
|
||||||
settings2.platform(Settings::Unspecified);
|
settings2.platform(Settings::Unspecified);
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ private:
|
||||||
ASSERT_EQUALS(result, executor.check());
|
ASSERT_EQUALS(result, executor.check());
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings.library, "std.cfg");
|
LOAD_LIB_2(settings.library, "std.cfg");
|
||||||
|
|
||||||
TEST_CASE(deadlock_with_many_errors);
|
TEST_CASE(deadlock_with_many_errors);
|
||||||
|
|
|
@ -29,7 +29,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(result);
|
TEST_CASE(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ private:
|
||||||
std::vector<std::string> extendedOps;
|
std::vector<std::string> extendedOps;
|
||||||
std::vector<std::string> assignmentOps;
|
std::vector<std::string> assignmentOps;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
arithmeticalOps = { "+", "-", "*", "/", "%", "<<", ">>" };
|
arithmeticalOps = { "+", "-", "*", "/", "%", "<<", ">>" };
|
||||||
logicalOps = { "&&", "||", "!" };
|
logicalOps = { "&&", "||", "!" };
|
||||||
comparisonOps = { "==", "!=", "<", "<=", ">", ">=" };
|
comparisonOps = { "==", "!=", "<", "<=", ">", ">=" };
|
||||||
|
|
|
@ -44,7 +44,7 @@ private:
|
||||||
Settings settings2;
|
Settings settings2;
|
||||||
Settings settings_windows;
|
Settings settings_windows;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings_windows.library, "windows.cfg");
|
LOAD_LIB_2(settings_windows.library, "windows.cfg");
|
||||||
|
|
||||||
TEST_CASE(tokenize1);
|
TEST_CASE(tokenize1);
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(testaddtoken1);
|
TEST_CASE(testaddtoken1);
|
||||||
TEST_CASE(testaddtoken2);
|
TEST_CASE(testaddtoken2);
|
||||||
TEST_CASE(inc);
|
TEST_CASE(inc);
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(checkTooBigShift_Unix32);
|
TEST_CASE(checkTooBigShift_Unix32);
|
||||||
TEST_CASE(checkIntegerOverflow);
|
TEST_CASE(checkIntegerOverflow);
|
||||||
TEST_CASE(signConversion);
|
TEST_CASE(signConversion);
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
LOAD_LIB_2(settings.library, "std.cfg");
|
LOAD_LIB_2(settings.library, "std.cfg");
|
||||||
|
|
||||||
TEST_CASE(uninitvar1);
|
TEST_CASE(uninitvar1);
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
|
|
||||||
TEST_CASE(incondition);
|
TEST_CASE(incondition);
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
|
|
||||||
TEST_CASE(test1);
|
TEST_CASE(test1);
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("style");
|
settings.addEnabled("style");
|
||||||
|
|
||||||
TEST_CASE(emptyclass); // #5355 - False positive: Variable is not assigned a value.
|
TEST_CASE(emptyclass); // #5355 - False positive: Variable is not assigned a value.
|
||||||
|
|
|
@ -44,7 +44,7 @@ private:
|
||||||
checkVaarg.runSimplifiedChecks(&tokenizer, &settings, this);
|
checkVaarg.runSimplifiedChecks(&tokenizer, &settings, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
|
|
||||||
TEST_CASE(wrongParameterTo_va_start);
|
TEST_CASE(wrongParameterTo_va_start);
|
||||||
|
|
|
@ -41,7 +41,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
// strcpy, abort cfg
|
// strcpy, abort cfg
|
||||||
const char cfg[] = "<?xml version=\"1.0\"?>\n"
|
const char cfg[] = "<?xml version=\"1.0\"?>\n"
|
||||||
"<def>\n"
|
"<def>\n"
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void run() override {
|
void run() OVERRIDE {
|
||||||
TEST_CASE(varid1);
|
TEST_CASE(varid1);
|
||||||
TEST_CASE(varid2);
|
TEST_CASE(varid2);
|
||||||
TEST_CASE(varid3);
|
TEST_CASE(varid3);
|
||||||
|
|
Loading…
Reference in New Issue