[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 11 15:01:39 PDT 2025


================
@@ -0,0 +1,70 @@
+// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsycl-is-device -std=c++20 -fsyntax-only -verify -DCPP20 %s
+// Semantic tests for sycl_external attribute
----------------
tahonermann wrote:

Add spacing to avoid potential merge conflicts or careless additions of additional RUN lines in the future.
```suggestion

// Semantic tests for the sycl_external attribute.
```

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


More information about the cfe-commits mailing list