Skip to content

Commit 9992f2a

Browse files
[SYCL] Issue a deprecation warning for <CL/sycl.hpp> (#13569)
1 parent 489466e commit 9992f2a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sycl/include/CL/sycl.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
#pragma once
1010

11+
#if defined(__clang__)
12+
#warning "CL/sycl.hpp is deprecated, use sycl/sycl.hpp"
13+
#endif
14+
1115
#include <sycl/sycl.hpp>
1216

1317
namespace cl {

sycl/test/warnings/sycl_2020_deprecations.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %clangxx %fsycl-host-only -fsyntax-only -ferror-limit=0 -sycl-std=2020 -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
22

3+
// expected-warning@sycl/CL/sycl.hpp:12 {{CL/sycl.hpp is deprecated, use sycl/sycl.hpp}}
34
#include <CL/sycl.hpp>
45
#include <sycl/ext/intel/experimental/online_compiler.hpp>
56

0 commit comments

Comments
 (0)