Fixed ticket #300 (wrong level given)
Enable checks of dangerous functions only when --style option used. http://apps.sourceforge.net/trac/cppcheck/ticket/300
This commit is contained in:
parent
4bd1c3fb00
commit
b2aaf5d4c7
|
@ -40,7 +40,10 @@ public:
|
||||||
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
|
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
|
||||||
{
|
{
|
||||||
CheckDangerousFunctionsClass checkDangerousFunctionsClass(tokenizer, settings, errorLogger);
|
CheckDangerousFunctionsClass checkDangerousFunctionsClass(tokenizer, settings, errorLogger);
|
||||||
checkDangerousFunctionsClass.dangerousFunctions();
|
if (settings->_checkCodingStyle)
|
||||||
|
{
|
||||||
|
checkDangerousFunctionsClass.dangerousFunctions();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Check for dangerous functions */
|
/** Check for dangerous functions */
|
||||||
|
|
Loading…
Reference in New Issue