Added headers to the "--errorlist" output

This commit is contained in:
Daniel Marjamäki 2009-06-07 18:53:47 +02:00
parent c3072856df
commit 6356db82a9
8 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,7 @@ private:
void getErrorMessages()
{
std::cout << "===auto variables===" << "\n";
reportError(0, "error", "autoVariables", "Wrong assignement of an auto-variable to an effective parameter of a function");
}
};

View File

@ -75,6 +75,7 @@ private:
void getErrorMessages()
{
std::cout << "===buffer overruns===" << "\n";
arrayIndexOutOfBounds(0);
bufferOverrun(0);
strncatUsage(0);

View File

@ -109,6 +109,7 @@ private:
void getErrorMessages()
{
std::cout << "===classes===" << "\n";
noConstructorError(0, "classname");
uninitVarError(0, "classname", "varname");
operatorEqVarError(0, "classname", "");

View File

@ -56,6 +56,7 @@ private:
void getErrorMessages()
{
std::cout << "===dangerous functions===" << "\n";
dangerousFunctionmktemp(0);
dangerousFunctiongets(0);
dangerousFunctionscanf(0);

View File

@ -133,6 +133,7 @@ private:
void getErrorMessages()
{
std::cout << "===memory leaks===" << "\n";
memleakError(0, "varname");
memleakallError(0, "varname");
resourceLeakError(0, "varname");

View File

@ -147,6 +147,7 @@ private:
void getErrorMessages()
{
std::cout << "===other===" << "\n";
cstyleCastError(0);
redundantIfDelete0Error(0);
redundantIfRemoveError(0);

View File

@ -54,6 +54,7 @@ private:
void getErrorMessages()
{
std::cout << "===security===" << "\n";
unvalidatedInput(0);
}
};

View File

@ -98,6 +98,7 @@ private:
void getErrorMessages()
{
std::cout << "===stl===" << "\n";
iteratorsError(0, "container1", "container2");
dereferenceErasedError(0, "iter");
stlOutOfBoundsError(0, "i", "foo");