From f97af3255c960ae8ed7b0e5a656af5e3574221ee Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 10 Nov 2025 01:28:59 +0100 Subject: [PATCH] Tokenizer: add missing end token in `__typeof` matching in `setVarIDPass1()` --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 4b01b0fcf97..608991ce596 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -4811,7 +4811,7 @@ void Tokenizer::setVarIdPass1() if (cpp || mSettings.standards.c >= Standards::C23) { declTypeTok = Token::findmatch(tok, "decltype|typeof (", tok2); } else { - declTypeTok = Token::findsimplematch(tok, "__typeof ("); + declTypeTok = Token::findsimplematch(tok, "__typeof (", tok2); } if (declTypeTok) {