================
@@ -18750,18 +18809,21 @@ static void buildLambdaCaptureFixit(Sema &Sema,
LambdaScopeInfo *LSI,
}
}
+static auto skipRequiresBody(DeclContext *DC) {
+ while (DC->isRequiresExprBody())
+ DC = DC->getParent();
+ return DC;
+}
+
----------------
zyn0217 wrote:
We could move it to `tryCaptureVariable`, inlining it as a lambda to avoid such
small functions.
https://github.com/llvm/llvm-project/pull/107942
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits