[clang] [Clang][OpenMP]Default clause variable category (PR #157063)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 11 08:42:54 PDT 2025


================
@@ -73,6 +73,18 @@ enum DefaultDataSharingAttributes {
   DSA_firstprivate = 1 << 3, /// Default data sharing attribute 'firstprivate'.
 };
 
+/// Variable Category attributes to restrict the modifier of the
+/// default clause (DefaultDataSharingAttributes)
+/// Not mentioning any Variable category attribute indicates
+/// the modifier (DefaultDataSharingAttributes) is for all variables.
+enum DefaultDataSharingVCAttributes {
+  DSA_VC_all = 0,              /// for all variables.
+  DSA_VC_aggregate = 1 << 0,   /// for aggregate variables.
----------------
alexey-bataev wrote:

Why need unique bit values here?

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


More information about the cfe-commits mailing list