CheckFunctions::checkIgnoredReturnValue; Fixed testrunner

This commit is contained in:
Daniel Marjamäki 2021-04-05 05:17:29 +02:00
parent cf8a423636
commit bc05ee62d5
1 changed files with 4 additions and 1 deletions

View File

@ -205,8 +205,11 @@ void CheckFunctions::checkIgnoredReturnValue()
continue;
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();
}
if (parent)
continue;