[clang] Add sycl_external attribute (PR #140282)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Fri May 16 20:45:25 PDT 2025


================
@@ -62,6 +62,7 @@ class SemaSYCL : public SemaBase {
                                        ParsedType ParsedTy);
 
   void handleKernelAttr(Decl *D, const ParsedAttr &AL);
+  void handleSYCLExternalAttr(Decl *D, const ParsedAttr &AL);
----------------
tahonermann wrote:

Since this function is a member of the `SemaSYCL` class, I think we can drop "SYCL" from its name. This is consistent with what was done for the other attribute handlers.
```suggestion
  void handleExternalAttr(Decl *D, const ParsedAttr &AL);
```

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


More information about the cfe-commits mailing list