[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 06:55:41 PST 2024


================
@@ -11326,6 +11326,8 @@ def err_omp_device_type_mismatch : Error<
 def err_omp_wrong_device_function_call : Error<
   "function with 'device_type(%0)' is not available on %select{device|host}1">;
 def note_omp_marked_device_type_here : Note<"marked as 'device_type(%0)' here">;
+def err_omp_declare_target_has_local_vars : Error<
+  "local variable '%0' ignored in 'declare target' directive; ">;
----------------
alexey-bataev wrote:

"ignored" is not good for the error message. Maybe "local variable '%0' should be used in 'declare target' directive."?

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


More information about the cfe-commits mailing list