From e27da0e55c3acd25412c4881030fc7931335b96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludvig=20Gunne=20Lindstr=C3=B6m?= Date: Mon, 17 Feb 2025 20:29:14 +0100 Subject: [PATCH] fix #12605 --- lib/tokenize.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 75aa3fe4d57..28e88dbeace 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -9585,6 +9585,10 @@ void Tokenizer::simplifyKeyword() if (mSettings.standards.c >= Standards::C11) { while (tok->str() == "_Atomic") { + if (Token::simpleMatch(tok->next(), "(")) { + tok->linkAt(1)->deleteThis(); + tok->next()->deleteThis(); + } for (Token* temp: getTypeTokens()) temp->isAtomic(true); tok->deleteThis();