From a26287f49160714908f1b1882794e46e0b1c7a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 20 Jan 2019 13:23:19 +0100 Subject: [PATCH] Fix Token::findExpressionStartEndTokens() regression --- lib/token.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/token.cpp b/lib/token.cpp index bb5955283..13c6372e6 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -1191,8 +1191,9 @@ std::pair 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; }