[clang] [Clang][Lex] Fix parsing of nested requirement to prevent flowing off the end of token stream (PR #73691)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 28 11:27:42 PST 2023


================
@@ -3639,6 +3639,10 @@ ExprResult Parser::ParseRequiresExpression() {
                 //  TryParseParameterDeclarationClause).
----------------
shafik wrote:

I don't think the above fixme above is needed, I don't think there is any other way to handle this, at least based on some of the other places `TryParseParameterDeclarationClause()` is used e.g. `TryParseFunctionDeclarator(...)`

https://github.com/llvm/llvm-project/pull/73691


More information about the cfe-commits mailing list