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

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 8 08:58:22 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:

Why do we want a warning instead of error?

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


More information about the cfe-commits mailing list