Fix Token::findExpressionStartEndTokens() regression

This commit is contained in:
Daniel Marjamäki 2019-01-20 13:23:19 +01:00
parent 8da4e31c42
commit a26287f491
1 changed files with 3 additions and 2 deletions

View File

@ -1191,8 +1191,9 @@ std::pair<const Token *, const Token *> Token::findExpressionStartEndTokens() co
end = lambdaEnd;
break;
}
} else if (Token::Match(end,"(|[") &&
!(Token::Match(end, "( %type%") && !end->astOperand2())) {
}
if (Token::Match(end,"(|[") &&
!(Token::Match(end, "( %type%") && !end->astOperand2())) {
end = end->link();
break;
}