Updated wrong comments (looks like after copy&paste).
No code change.
This commit is contained in:
parent
3d648b92ab
commit
3a40c33d7b
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Buffer overrun..
|
// Auto variables checks
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "checkautovariables.h"
|
#include "checkautovariables.h"
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
checkAutoVariables.autoVariables();
|
checkAutoVariables.autoVariables();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Check for buffer overruns */
|
/** Check auto variables */
|
||||||
void autoVariables();
|
void autoVariables();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Buffer overrun..
|
// Dangerous functions
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "checkdangerousfunctions.h"
|
#include "checkdangerousfunctions.h"
|
||||||
|
@ -43,10 +43,6 @@ namespace
|
||||||
CheckDangerousFunctionsClass instance;
|
CheckDangerousFunctionsClass instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// Dangerous functions
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void CheckDangerousFunctionsClass::dangerousFunctions()
|
void CheckDangerousFunctionsClass::dangerousFunctions()
|
||||||
{
|
{
|
||||||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
|
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
checkDangerousFunctionsClass.dangerousFunctions();
|
checkDangerousFunctionsClass.dangerousFunctions();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Check for buffer overruns */
|
/** Check for dangerous functions */
|
||||||
void dangerousFunctions();
|
void dangerousFunctions();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -53,7 +53,7 @@ private:
|
||||||
// Clear the error buffer..
|
// Clear the error buffer..
|
||||||
errout.str("");
|
errout.str("");
|
||||||
|
|
||||||
// Check for buffer overruns..
|
// Check auto variables
|
||||||
Settings settings;
|
Settings settings;
|
||||||
settings._showAll = true;
|
settings._showAll = true;
|
||||||
CheckAutoVariables checkAutoVariables(&tokenizer, &settings, this);
|
CheckAutoVariables checkAutoVariables(&tokenizer, &settings, this);
|
||||||
|
|
|
@ -53,7 +53,7 @@ private:
|
||||||
// Clear the error buffer..
|
// Clear the error buffer..
|
||||||
errout.str("");
|
errout.str("");
|
||||||
|
|
||||||
// Check for buffer overruns..
|
// Check for dangerous functions..
|
||||||
Settings settings;
|
Settings settings;
|
||||||
settings._showAll = true;
|
settings._showAll = true;
|
||||||
CheckDangerousFunctionsClass checkDangerousFunctions(&tokenizer, &settings, this);
|
CheckDangerousFunctionsClass checkDangerousFunctions(&tokenizer, &settings, this);
|
||||||
|
|
Loading…
Reference in New Issue