We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb9b49 commit dd05ca8Copy full SHA for dd05ca8
lib/tokenize.cpp
@@ -8855,7 +8855,7 @@ void Tokenizer::findGarbageCode() const
8855
syntaxError(tok, code);
8856
}
8857
8858
- if (Token::Match(tok, "%num%|%bool%|%char%|%str% %num%|%bool%|%char%|%str%") && !Token::Match(tok, "%str% %str%"))
+ if (Token::Match(tok, "%num%|%bool%|%char%|%str% %num%|%bool%|%char%|%str%|::") && !Token::Match(tok, "%str% %str%"))
8859
syntaxError(tok);
8860
if (Token::Match(tok, "%num%|%bool%|%char%|%str% {|(")) {
8861
if (tok->strAt(1) == "(")
0 commit comments