[clang] [Clang][Parser] Have the depth of the abbreviated generic lambdas inside a requires clause differ from the surrounding generic lambda (PR #80656)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 22 04:15:38 PST 2024
================
@@ -1385,6 +1385,16 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
Diag(RAngleLoc,
diag::err_lambda_template_parameter_list_empty);
} else {
+ // We increase the template depth before recursing into a requires-clause.
+ //
+ // This depth is used for setting up a LambdaScopeInfo (at
+ // Sema::RecordParsingTemplateParameterDepth), which participates in the
+ // invented template parameters later at InventTemplateParameter.
----------------
cor3ntin wrote:
```suggestion
// Sema::RecordParsingTemplateParameterDepth), which is used later when inventing
// template parameters in InventTemplateParameter.
```
https://github.com/llvm/llvm-project/pull/80656
More information about the cfe-commits
mailing list