[clang] [NFC] Factor out common parts of ArraySections into its own class (PR #89639)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 24 10:27:49 PDT 2024


================
@@ -11163,7 +11163,7 @@ def err_omp_declare_mapper_redefinition : Error<
   "redefinition of user-defined mapper for type %0 with name %1">;
 def err_omp_invalid_mapper: Error<
   "cannot find a valid user-defined mapper for type %0 with name %1">;
-def err_omp_array_section_use : Error<"OpenMP array section is not allowed here">;
+def err_array_section_use : Error<"array section is not allowed here">;
----------------
alexey-bataev wrote:

Would be good to select proper extension type here in the diagnostic, at least for OpenMP

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


More information about the cfe-commits mailing list