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

Krzysztof Parzyszek via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 07:12:40 PDT 2024


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

NFC

>From 3ffabe11eb01f42ceaeb92895a0eb0f251e6ef9a Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Thu, 21 Mar 2024 06:54:02 -0500
Subject: [PATCH] [clang][OpenMP] Add const-qualified `getIteratorModifier` to
 OMPMapClause

NFC
---
 clang/include/clang/AST/OpenMPClause.h | 5 +++++
 1 file changed, 5 insertions(+)

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; }
 



More information about the cfe-commits mailing list