[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 11 09:06:16 PDT 2025


================
@@ -1497,6 +1497,11 @@ def err_omp_multiple_step_or_linear_modifier : Error<
   "multiple %select{'step size'|'linear modifier'}0 found in linear clause">;
 def err_omp_deprecate_old_syntax: Error<
   "old syntax '%0' on '%1' clause was deprecated, use new syntax '%2'">;
+def warn_omp_deprecate_old_syntax: Warning<
+  "old syntax '%0' on '%1' clause was deprecated, use new syntax '%2'">, 
+  InGroup<Deprecated>;
----------------
alexey-bataev wrote:

The question is: is the old syntax still allowed in 6.0? If not, it should be the error.

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


More information about the cfe-commits mailing list