Updated wrong comments (looks like after copy&paste).

No code change.
This commit is contained in:
Slava Semushin 2009-05-22 12:51:30 +07:00
parent 3d648b92ab
commit 3a40c33d7b
6 changed files with 6 additions and 10 deletions

View File

@ -18,7 +18,7 @@
*/ */
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Buffer overrun.. // Auto variables checks
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#include "checkautovariables.h" #include "checkautovariables.h"

View File

@ -45,7 +45,7 @@ public:
checkAutoVariables.autoVariables(); checkAutoVariables.autoVariables();
} }
/** Check for buffer overruns */ /** Check auto variables */
void autoVariables(); void autoVariables();
private: private:

View File

@ -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())

View File

@ -43,7 +43,7 @@ public:
checkDangerousFunctionsClass.dangerousFunctions(); checkDangerousFunctionsClass.dangerousFunctions();
} }
/** Check for buffer overruns */ /** Check for dangerous functions */
void dangerousFunctions(); void dangerousFunctions();
private: private:

View File

@ -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);

View File

@ -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);