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 */ }
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);