CheckFunctions::checkIgnoredReturnValue; Fixed testrunner
This commit is contained in:
parent
cf8a423636
commit
bc05ee62d5
|
@ -205,8 +205,11 @@ void CheckFunctions::checkIgnoredReturnValue()
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const Token *parent = tok->next()->astParent();
|
const Token *parent = tok->next()->astParent();
|
||||||
while (Token::Match(parent, "%cop%"))
|
while (Token::Match(parent, "%cop%")) {
|
||||||
|
if (Token::Match(parent, "<<|>>") && !parent->astParent())
|
||||||
|
break;
|
||||||
parent = parent->astParent();
|
parent = parent->astParent();
|
||||||
|
}
|
||||||
if (parent)
|
if (parent)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue