Added headers to the "--errorlist" output
This commit is contained in:
parent
c3072856df
commit
6356db82a9
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
|
|
@ -75,6 +75,7 @@ private:
|
|||
|
||||
void getErrorMessages()
|
||||
{
|
||||
std::cout << "===buffer overruns===" << "\n";
|
||||
arrayIndexOutOfBounds(0);
|
||||
bufferOverrun(0);
|
||||
strncatUsage(0);
|
||||
|
|
|
@ -109,6 +109,7 @@ private:
|
|||
|
||||
void getErrorMessages()
|
||||
{
|
||||
std::cout << "===classes===" << "\n";
|
||||
noConstructorError(0, "classname");
|
||||
uninitVarError(0, "classname", "varname");
|
||||
operatorEqVarError(0, "classname", "");
|
||||
|
|
|
@ -56,6 +56,7 @@ private:
|
|||
|
||||
void getErrorMessages()
|
||||
{
|
||||
std::cout << "===dangerous functions===" << "\n";
|
||||
dangerousFunctionmktemp(0);
|
||||
dangerousFunctiongets(0);
|
||||
dangerousFunctionscanf(0);
|
||||
|
|
|
@ -133,6 +133,7 @@ private:
|
|||
|
||||
void getErrorMessages()
|
||||
{
|
||||
std::cout << "===memory leaks===" << "\n";
|
||||
memleakError(0, "varname");
|
||||
memleakallError(0, "varname");
|
||||
resourceLeakError(0, "varname");
|
||||
|
|
|
@ -147,6 +147,7 @@ private:
|
|||
|
||||
void getErrorMessages()
|
||||
{
|
||||
std::cout << "===other===" << "\n";
|
||||
cstyleCastError(0);
|
||||
redundantIfDelete0Error(0);
|
||||
redundantIfRemoveError(0);
|
||||
|
|
|
@ -54,6 +54,7 @@ private:
|
|||
|
||||
void getErrorMessages()
|
||||
{
|
||||
std::cout << "===security===" << "\n";
|
||||
unvalidatedInput(0);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -98,6 +98,7 @@ private:
|
|||
|
||||
void getErrorMessages()
|
||||
{
|
||||
std::cout << "===stl===" << "\n";
|
||||
iteratorsError(0, "container1", "container2");
|
||||
dereferenceErasedError(0, "iter");
|
||||
stlOutOfBoundsError(0, "i", "foo");
|
||||
|
|
Loading…
Reference in New Issue