astyle formatting

This commit is contained in:
Daniel Marjamäki 2013-07-24 11:20:28 +02:00
parent aa0560fe3b
commit 178467a578
2 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -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());
} }