astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2017-04-07 19:19:41 +02:00
parent 8ffed6862d
commit f5f141ff42
1 changed files with 10 additions and 10 deletions

View File

@ -161,16 +161,16 @@ void CheckFunctions::checkIgnoredReturnValue()
tok = tok->linkAt(1);
if (Token::Match(tok->previous(), "%name% (")) {
bool semicolon = false;
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2->str() != ")"; tok2 = tok2->next()) {
if (tok2->str() == ";")
semicolon = true;
else if (Token::Match(tok2, "[({]"))
tok2 = tok2->link();
}
if (semicolon)
tok = tok->link();
}
bool semicolon = false;
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2->str() != ")"; tok2 = tok2->next()) {
if (tok2->str() == ";")
semicolon = true;
else if (Token::Match(tok2, "[({]"))
tok2 = tok2->link();
}
if (semicolon)
tok = tok->link();
}
if (tok->varId() || !Token::Match(tok, "%name% ("))
continue;