[clang] [clang] Fixed predefined expressions after lambda parameters (PR #211811)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 24 08:16:29 PDT 2026


================
@@ -879,6 +879,8 @@ class LambdaScopeInfo final :
   /// is known.
   bool AfterParameterList = true;
 
+  bool BeforeCompoundStatement = false;
+
----------------
cor3ntin wrote:

I think it would be easier to initialize that to `true` and only set it to false at the end of `ActOnStartOfLambdaDefinition`

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


More information about the cfe-commits mailing list