[clang] [SYCL] Add sycl_external attribute (PR #140282)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 10 09:03:08 PDT 2025


================
@@ -12746,6 +12746,11 @@ def err_sycl_special_type_num_init_method : Error<
   "types with 'sycl_special_class' attribute must have one and only one '__init' "
   "method defined">;
 
+//SYCL external attribute diagnostics
+def err_sycl_attribute_internal_decl
+    : Error<"%0 attribute cannot be applied to a %select{function|variable}1"
+            " without external linkage">;
----------------
schittir wrote:

Planning to address this and add missing diagnostics in a subsequent PR. 

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


More information about the cfe-commits mailing list