[clang] [OpenMP] Support capturing structured bindings in OpenMP regions. (PR #190832)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 10 07:53:25 PDT 2026


================
@@ -19514,6 +19516,12 @@ static bool captureInLambda(LambdaScopeInfo *LSI, ValueDecl *Var,
     ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref);
   }
 
+  if (auto *BD = dyn_cast<BindingDecl>(Var)) {
----------------
alexey-bataev wrote:

Same, I think need some special check of the immediate OpenMP context here

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


More information about the cfe-commits mailing list