Skip to content

Commit

Permalink
fix #13636
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Feb 13, 2025
1 parent 26b1060 commit 80b3a54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/tokenlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1587,12 +1587,13 @@ static Token * createAstAtToken(Token *tok)
do {
tok2 = tok2->next();
tok2->setCpp11init(false);
if (Token::simpleMatch(tok2, "decltype")) {
if (Token::Match(tok2, "decltype|noexcept (")) {
AST_state state(cpp);
Token *tok3 = tok2->tokAt(2);
compileExpression(tok3, state);
tok2 = tok2->linkAt(1);
}
} while (tok2 != endTok);
} while (tok2 != endTok && !precedes(endTok, tok2));
}
return endTok;
}
Expand Down

0 comments on commit 80b3a54

Please sign in to comment.