1 parent a153151 commit 8787eb3Copy full SHA for 8787eb3
1 file changed
lib/tokenlist.cpp
@@ -1631,7 +1631,7 @@ static Token * createAstAtToken(Token *tok)
1631
do {
1632
tok2 = tok2->next();
1633
tok2->setCpp11init(false);
1634
- if (Token::Match(tok2, "decltype|noexcept (")) {
+ if (Token::Match(tok2, "decltype|noexcept|requires (")) {
1635
AST_state state(cpp);
1636
Token *tok3 = tok2->tokAt(2);
1637
compileExpression(tok3, state);
0 commit comments