Skip to content

Commit 85fc597

Browse files
committed
Fix
1 parent ff9166b commit 85fc597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8708,7 +8708,7 @@ void Tokenizer::findGarbageCode() const
87088708
syntaxError(tok);
87098709
if (Token::Match(tok, "typedef [,;:]"))
87108710
syntaxError(tok);
8711-
if (Token::Match(tok, "! %comp%"))
8711+
if (Token::Match(tok, "!|~ %comp%"))
87128712
syntaxError(tok);
87138713
if (Token::Match(tok, "] %name%") && (!isCPP() || !(tok->tokAt(-1) && Token::simpleMatch(tok->tokAt(-2), "delete [")))) {
87148714
if (tok->next()->isUpperCaseName())

0 commit comments

Comments
 (0)