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,8 +40,11 @@ public:
|
|||
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
|
||||
{
|
||||
CheckDangerousFunctionsClass checkDangerousFunctionsClass(tokenizer, settings, errorLogger);
|
||||
if (settings->_checkCodingStyle)
|
||||
{
|
||||
checkDangerousFunctionsClass.dangerousFunctions();
|
||||
}
|
||||
}
|
||||
|
||||
/** Check for dangerous functions */
|
||||
void dangerousFunctions();
|
||||
|
|
Loading…
Reference in New Issue