testcppcheck: cleanup

This commit is contained in:
Daniel Marjamäki 2011-01-16 16:45:00 +01:00
parent 66be74a5af
commit 615c92c83b
1 changed files with 0 additions and 43 deletions

View File

@ -45,29 +45,12 @@ public:
private: private:
void check(const std::string &data)
{
errout.str("");
output.str("");
CppCheck cppCheck(*this);
cppCheck.addFile("file.cpp", data);
cppCheck.check();
}
void run() void run()
{ {
//TEST_CASE(getErrorMessages); //TEST_CASE(getErrorMessages);
} }
#if 0 #if 0
bool argCheck(int argc, const char *argv[])
{
errout.str("");
output.str("");
CppCheck cppCheck(*this);
return cppCheck.parseFromArgs(argc, argv);
}
bool argCheckWithCoutCerrRedirect(int argc, const char * argv[]) bool argCheckWithCoutCerrRedirect(int argc, const char * argv[])
{ {
// redirect cout and cerr // redirect cout and cerr
@ -94,32 +77,6 @@ private:
return result; return result;
} }
bool argCheckWithCheck(int argc, const char *argv[], const std::string &data)
{
errout.str("");
output.str("");
CppCheck cppCheck(*this);
cppCheck.addFile("file.cpp", data);
bool result = cppCheck.parseFromArgs(argc, argv);
if (result)
cppCheck.check();
return result;
}
bool argCheckReturnSettings(int argc, const char *argv[], Settings &settings)
{
errout.str("");
output.str("");
CppCheck cppCheck(*this);
cppCheck.addFile("file.cpp", "void foo(){}");
bool result = cppCheck.parseFromArgs(argc, argv);
if (result)
settings = cppCheck.settings();
return result;
}
#endif #endif
void parseErrorList(const char* xmlData) void parseErrorList(const char* xmlData)