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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 5 07:44:35 PST 2024


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

Name here doesn't match what you're doing here.  Perhaps something closer to `getParentIgnoringRequiresBodyDecl`?  Not a great name either, but better I think?

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


More information about the cfe-commits mailing list