[clang] [llvm] [clang-tools-extra] [clang] reject to capture variable in `RequiresExprBodyDecl` (PR #78598)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 06:19:19 PST 2024


================
@@ -19706,22 +19706,29 @@ static void buildLambdaCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI,
   }
 }
 
+static DeclContext *ignoreReuquiresBodyDecl(DeclContext *DC) {
----------------
HerrCai0907 wrote:

I think inline it will be better since we only call it once.

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


More information about the cfe-commits mailing list