[all-commits] [llvm/llvm-project] 1723b7: [SYCL] Error on C inputs when compiling with -fsyc...

Srividya Sundaram via All-commits all-commits at lists.llvm.org
Tue Jun 9 07:36:50 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1723b7a301450d7000fe3a86e48adb9f9794d1e9
      https://github.com/llvm/llvm-project/commit/1723b7a301450d7000fe3a86e48adb9f9794d1e9
  Author: Srividya Sundaram <srividya.sundaram at intel.com>
  Date:   2026-06-09 (Tue, 09 Jun 2026)

  Changed paths:
    M clang/lib/Frontend/CompilerInvocation.cpp
    R clang/test/CodeGenSYCL/filescope_asm.c
    A clang/test/CodeGenSYCL/filescope_asm.cpp
    M clang/test/Driver/offload-target.c
    M clang/test/Driver/sycl.cpp
    A clang/test/Frontend/sycl-c-input-error.cpp
    M clang/test/Headers/__cpuidex_conflict.c
    M clang/test/SemaSPIRV/BuiltIns/generic_cast_to_ptr_explicit.c
    M clang/test/SemaSPIRV/BuiltIns/ids_and_ranges.c
    M clang/test/SemaSPIRV/BuiltIns/subgroup-errors.c
    M clang/unittests/Frontend/CompilerInvocationTest.cpp

  Log Message:
  -----------
  [SYCL] Error on C inputs when compiling with -fsycl (#200318)

`SYCL` is a `C++`-based programming model and requires `C++` source
files.
Enforce this invariant in the frontend by rejecting `C` inputs when SYCL
mode is active, ensuring that `LangOpts.SYCL` implies
`LangOpts.CPlusPlus` regardless of how the compiler is invoked.



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