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

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 18 06:37:16 PDT 2026


================
@@ -2078,14 +2090,23 @@ bool Sema::DiagnoseUnusedLambdaCapture(SourceRange CaptureRange,
 
 /// Create a field within the lambda class or captured statement record for the
 /// given capture.
-FieldDecl *Sema::BuildCaptureField(RecordDecl *RD,
-                                   const sema::Capture &Capture) {
+FieldDecl *Sema::BuildCaptureField(RecordDecl *RD, const sema::Capture &Capture,
+                                   bool isOpenMP) {
----------------
alexey-bataev wrote:

```suggestion
                                   bool IsOpenMP) {
```

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


More information about the cfe-commits mailing list