================
@@ -6898,10 +6898,18 @@ class Sema final {
BinaryOperatorKind Operator);
//// ActOnCXXThis - Parse 'this' pointer.
- ExprResult ActOnCXXThis(SourceLocation loc);
+ ///
+ /// \param SkipLambdaCaptureCheck Whether to skip the 'this' check for a
+ /// lambda because 'this' is the lambda's 'this'-pointer.
+ ExprResult ActOnCXXThis(SourceLocation loc,
+ bool SkipLambdaCaptureCheck = false);
----------------
erichkeane wrote:
Maybe something like, `IsNonStaticLambda`? But I guess this only applies in a
coroutine situation, so perhaps that is imperfect too. I might have to think
it through.
Perhaps @ChuanqiXu9 can come up with something.
https://github.com/llvm/llvm-project/pull/84193
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits