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 */ }
|
if (!formatString.empty()) {
|
||||||
else if (Token::Match(tok, "printf|scanf|wprintf|wscanf ( %str%")) {
|
/* formatstring found in library */
|
||||||
|
} else if (Token::Match(tok, "printf|scanf|wprintf|wscanf ( %str%")) {
|
||||||
formatString = tok->strAt(2);
|
formatString = tok->strAt(2);
|
||||||
if (tok->strAt(3) == ",") {
|
if (tok->strAt(3) == ",") {
|
||||||
argListTok = tok->tokAt(4);
|
argListTok = tok->tokAt(4);
|
||||||
|
@ -4955,7 +4955,7 @@ private:
|
|||||||
" int (*t)(void *a, void *b);\n"
|
" int (*t)(void *a, void *b);\n"
|
||||||
" if (t(a, b) < 0)\n"
|
" if (t(a, b) < 0)\n"
|
||||||
" bar();\n"
|
" bar();\n"
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
check_signOfUnsignedVariable(
|
check_signOfUnsignedVariable(
|
||||||
@ -4963,7 +4963,7 @@ private:
|
|||||||
" int (*t)(void *a, void *b);\n"
|
" int (*t)(void *a, void *b);\n"
|
||||||
" if (0 > t(a, b))\n"
|
" if (0 > t(a, b))\n"
|
||||||
" bar();\n"
|
" bar();\n"
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user