[clang] [clang][SYCL] Implement address space attributes for SYCL (PR #200849)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 15 23:21:40 PDT 2026


================
@@ -0,0 +1,388 @@
+// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -std=c++20 -verify %s
+// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -std=c++20 -verify %s
+
+// The SYCL address space attributes are type attributes that may only appear on
+// the object type of an object pointer or object reference type. This test
+// exercises that appropriate diagnostics are issued for other uses.
----------------
tahonermann wrote:

```suggestion
// The SYCL address space attributes are type attributes that may be applied
// to non-function non-reference types. This test exercises that appropriate
// diagnostics are issued for other uses.
```

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


More information about the cfe-commits mailing list