Running astyle for the previous commits
This commit is contained in:
parent
7adcd0c355
commit
7da34ed249
|
@ -77,7 +77,7 @@ void CheckDangerousFunctionsClass::dangerousFunctions()
|
|||
ostr << _tokenizer->fileLine(tok) << ": Found 'mktemp'. You should use 'mkstemp' instead";
|
||||
_errorLogger->reportErr(ostr.str());
|
||||
}
|
||||
else if (Token::Match(tok, "gets|scanf ("))
|
||||
else if (Token::Match(tok, "gets|scanf ("))
|
||||
{
|
||||
std::ostringstream ostr;
|
||||
ostr << _tokenizer->fileLine(tok) << ": Found '" << tok->str() << "'. You should use 'fgets' instead";
|
||||
|
|
|
@ -93,7 +93,7 @@ private:
|
|||
check("void f()\n"
|
||||
"{\n"
|
||||
" char *x;\n"
|
||||
" scanf(\"%s\", x);\n"
|
||||
" scanf(\"%s\", x);\n"
|
||||
"}\n");
|
||||
ASSERT_EQUALS(std::string("[test.cpp:4]: Found 'scanf'. You should use 'fgets' instead\n"), errout.str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue