Dont write syntax error for lambda functions
This commit is contained in:
parent
596fc32dd7
commit
1b3248b0fc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue