[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)

Urvi Rav via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 30 00:04:40 PDT 2025


================
@@ -1660,6 +1660,10 @@ def err_omp_expected_colon : Error<"missing ':' in %0">;
 def err_omp_missing_comma : Error< "missing ',' after %0">;
 def err_omp_expected_context_selector
     : Error<"expected valid context selector in %0">;
+def err_omp_unknown_clause
+    : Error<"expected an OpenMP clause">;
+def warn_omp_default_deprecated : Warning<"'default' clause for"
----------------
ravurvi20 wrote:

I agree that consolidating into a single message with arguments would be a cleaner approach. For now, I’d appreciate it if we could proceed with this version, and I’ll take up the refactoring in a follow-up patch.

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


More information about the cfe-commits mailing list