From 82c56213f232ac3e94c0a6c97d9aacec3e039d5a Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Wed, 1 May 2024 22:42:54 +0200 Subject: [PATCH] Fix --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index a5c48907412..10740697850 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -8510,7 +8510,7 @@ void Tokenizer::findGarbageCode() const if (Token::Match(prev, "%op%|%num%|%str%|%char%")) { if (!Token::simpleMatch(tok->tokAt(-2), "operator \"\" if") && !Token::simpleMatch(tok->tokAt(-2), "extern \"C\"") && - !Token::Match(prev, "> typedef|static")) + !Token::simpleMatch(prev, "> typedef")) syntaxError(tok, prev == tok->previous() ? (prev->str() + " " + tok->str()) : (prev->str() + " .. " + tok->str())); } }