Skip to content

Commit e002ee0

Browse files
committed
Apply comments
Signed-off-by: Mariya Podchishchaeva <[email protected]>
1 parent ab9dd08 commit e002ee0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

clang/include/clang/Basic/LangOptions.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ LANGOPT(GPUMaxThreadsPerBlock, 32, 256, "default max threads per block for kerne
233233
LANGOPT(SYCLIsDevice , 1, 0, "Generate code for SYCL device")
234234
LANGOPT(SYCLIsHost , 1, 0, "SYCL host compilation")
235235
LANGOPT(SYCLAllowFuncPtr , 1, 0, "Allow function pointers in SYCL device code")
236-
LANGOPT(SYCLNewKernelParamReq, 1, 0, "Enable trivially copyable requirement instead of standard layout requirement for SYCL kernel parameters.")
236+
LANGOPT(SYCLNewKernelParamReq, 1, 0, "Enable trivially copyable requirement instead of standard layout requirement for SYCL kernel parameters")
237237
LANGOPT(SYCLUnnamedLambda , 1, 0, "Allow unnamed lambda SYCL kernels")
238238

239239
LANGOPT(HIPUseNewLaunchAPI, 1, 0, "Use new kernel launching API for HIP")

clang/test/SemaSYCL/non-trivially-copyable-kernel-param.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
struct A { int i; };
77

88
struct B {
9-
int i,j;
10-
B (int _i, int _j) : i(_i), j(_j) {};
11-
B (const B& x) : i(x.i), j(1) {};
9+
int i;
10+
B (int _i) : i(_i) {}
11+
B (const B& x) : i(x.i) {}
1212
};
1313

14-
template <typename name, typename Func>
14+
template <typename Name, typename Func>
1515
__attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
1616
kernelFunc();
1717
}
1818

1919
void test() {
2020
A IamGood;
2121
IamGood.i = 0;
22-
B IamBad(1, 0);
22+
B IamBad(1);
2323
kernel_single_task<class kernel_capture_refs>([=] {
2424
int a = IamGood.i;
2525
// expected-error@+1 {{kernel parameter has non-trivially copyable class/struct type}}

clang/test/SemaSYCL/reference-kernel-param.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This test checks if compiler reports compilation error on an attempt to pass
44
// a reference as SYCL kernel parameter.
55

6-
template <typename name, typename Func>
6+
template <typename Name, typename Func>
77
__attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
88
kernelFunc();
99
}

0 commit comments

Comments
 (0)