astyle formatting
[ci skip]
This commit is contained in:
parent
8ffed6862d
commit
f5f141ff42
@ -161,16 +161,16 @@ void CheckFunctions::checkIgnoredReturnValue()
|
|||||||
tok = tok->linkAt(1);
|
tok = tok->linkAt(1);
|
||||||
|
|
||||||
if (Token::Match(tok->previous(), "%name% (")) {
|
if (Token::Match(tok->previous(), "%name% (")) {
|
||||||
bool semicolon = false;
|
bool semicolon = false;
|
||||||
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2->str() != ")"; tok2 = tok2->next()) {
|
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2->str() != ")"; tok2 = tok2->next()) {
|
||||||
if (tok2->str() == ";")
|
if (tok2->str() == ";")
|
||||||
semicolon = true;
|
semicolon = true;
|
||||||
else if (Token::Match(tok2, "[({]"))
|
else if (Token::Match(tok2, "[({]"))
|
||||||
tok2 = tok2->link();
|
tok2 = tok2->link();
|
||||||
}
|
}
|
||||||
if (semicolon)
|
if (semicolon)
|
||||||
tok = tok->link();
|
tok = tok->link();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tok->varId() || !Token::Match(tok, "%name% ("))
|
if (tok->varId() || !Token::Match(tok, "%name% ("))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user