Skip to content

Commit

Permalink
fix #12605
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Feb 19, 2025
1 parent c900871 commit e27da0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e27da0e

Please sign in to comment.