astyle formatting
This commit is contained in:
parent
aa0560fe3b
commit
178467a578
|
@ -457,8 +457,9 @@ void CheckIO::checkWrongPrintfScanfArguments()
|
|||
}
|
||||
}
|
||||
|
||||
if (!formatString.empty()) { /* formatstring found in library */ }
|
||||
else if (Token::Match(tok, "printf|scanf|wprintf|wscanf ( %str%")) {
|
||||
if (!formatString.empty()) {
|
||||
/* formatstring found in library */
|
||||
} else if (Token::Match(tok, "printf|scanf|wprintf|wscanf ( %str%")) {
|
||||
formatString = tok->strAt(2);
|
||||
if (tok->strAt(3) == ",") {
|
||||
argListTok = tok->tokAt(4);
|
||||
|
|
|
@ -4955,7 +4955,7 @@ private:
|
|||
" int (*t)(void *a, void *b);\n"
|
||||
" if (t(a, b) < 0)\n"
|
||||
" bar();\n"
|
||||
"}");
|
||||
"}");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
check_signOfUnsignedVariable(
|
||||
|
@ -4963,7 +4963,7 @@ private:
|
|||
" int (*t)(void *a, void *b);\n"
|
||||
" if (0 > t(a, b))\n"
|
||||
" bar();\n"
|
||||
"}");
|
||||
"}");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue