[all-commits] [llvm/llvm-project] 9de4e0: [SYCL] Restrict the sycl_kernel_entry_point attrib...

Tom Honermann via All-commits all-commits at lists.llvm.org
Thu Jul 31 16:25:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9de4e062d7c443a4a9ef837cca3db4b13903fe12
      https://github.com/llvm/llvm-project/commit/9de4e062d7c443a4a9ef837cca3db4b13903fe12
  Author: Tom Honermann <tom.honermann at intel.com>
  Date:   2025-07-31 (Thu, 31 Jul 2025)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaSYCL.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/test/ASTSYCL/ast-dump-sycl-kernel-entry-point.cpp
    M clang/test/SemaSYCL/sycl-kernel-entry-point-attr-appertainment.cpp
    M clang/test/SemaSYCL/sycl-kernel-entry-point-attr-kernel-name-module.cpp
    M clang/test/SemaSYCL/sycl-kernel-entry-point-attr-kernel-name-pch.cpp
    M clang/test/SemaSYCL/sycl-kernel-entry-point-attr-kernel-name.cpp

  Log Message:
  -----------
  [SYCL] Restrict the sycl_kernel_entry_point attribute spelling to C++11 style. (#151405)

Previously, the `sycl_kernel_entry_point` attribute could be specified
using either the GNU or C++11 spelling styles. Future SYCL attributes
are expected to support only the C++11 spelling style, so support for
the GNU style is being removed.

In order to ensure consistent presentation of the attribute in
diagnostic messages, diagnostics specific to this attribute now require
the attribute to be provided as an argument. This delegates formatting
of the attribute name to the diagnostic engine.

As an additional nicety, "the" is added to some diagnostic messages so
that they read more like proper sentences.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list