Dont write syntax error for lambda functions

This commit is contained in:
Daniel Marjamäki 2018-01-25 17:47:27 +01:00
parent 596fc32dd7
commit 1b3248b0fc
1 changed files with 1 additions and 1 deletions

View File

@ -8362,7 +8362,7 @@ const Token * Tokenizer::findGarbageCode() const
return tok;
if (Token::Match(tok, ";|(|[ %comp%"))
return tok;
if (Token::Match(tok, "%cop%|= ]") && tok->str() != "&")
if (Token::Match(tok, "%cop%|= ]") && !(isCPP() && Token::Match(tok->previous(), "[|, &|= ]")))
return tok;
}