[clang] [clang][OpenMP] Add const-qualified `getIteratorModifier` to OMPMapClause (PR #86666)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 07:13:14 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Krzysztof Parzyszek (kparzysz)

<details>
<summary>Changes</summary>

NFC

---
Full diff: https://github.com/llvm/llvm-project/pull/86666.diff


1 Files Affected:

- (modified) clang/include/clang/AST/OpenMPClause.h (+5) 


``````````diff
diff --git a/clang/include/clang/AST/OpenMPClause.h b/clang/include/clang/AST/OpenMPClause.h
index 325a1baa446142..bf814c81665eb7 100644
--- a/clang/include/clang/AST/OpenMPClause.h
+++ b/clang/include/clang/AST/OpenMPClause.h
@@ -6050,6 +6050,11 @@ class OMPMapClause final : public OMPMappableExprListClause<OMPMapClause>,
     return getTrailingObjects<Expr *>()[2 * varlist_size()];
   }
 
+  /// Fetches Expr * of iterator modifier.
+  Expr *getIteratorModifier() const {
+    return getTrailingObjects<Expr *>()[2 * varlist_size()];
+  }
+
   /// Fetches mapping kind for the clause.
   OpenMPMapClauseKind getMapType() const LLVM_READONLY { return MapType; }
 

``````````

</details>


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


More information about the cfe-commits mailing list