Skip to content

Commit eb3a32e

Browse files
committed
Fix formatting issues reported by clang-format-check bot
1 parent acb7a65 commit eb3a32e

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

clang/test/SemaSYCL/intel-max-global-work-dim.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ void foo() {
2020

2121
#else // __SYCL_DEVICE_ONLY__
2222

23-
[[intelfpga::max_global_work_dim(2)]]
24-
void func_do_not_ignore() {}
23+
[[intelfpga::max_global_work_dim(2)]] void func_do_not_ignore() {}
2524

2625
struct FuncObj {
2726
[[intelfpga::max_global_work_dim(1)]]
@@ -70,7 +69,7 @@ int main() {
7069
// CHECK-LABEL: FunctionDecl {{.*}}test_kernel3
7170
// CHECK: SYCLIntelMaxGlobalWorkDimAttr {{.*}}
7271
kernel<class test_kernel3>(
73-
[]() {func_do_not_ignore();});
72+
[]() { func_do_not_ignore(); });
7473

7574
kernel<class test_kernel4>(
7675
TRIFuncObjGood1());

clang/test/SemaSYCL/intel-max-work-group-size.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ void foo() {
2020

2121
#else // __SYCL_DEVICE_ONLY__
2222

23-
[[intelfpga::max_work_group_size(2, 2, 2)]]
24-
void func_do_not_ignore() {}
23+
[[intelfpga::max_work_group_size(2, 2, 2)]] void func_do_not_ignore() {}
2524

2625
struct FuncObj {
2726
[[intelfpga::max_work_group_size(4, 4, 4)]]
@@ -55,7 +54,7 @@ int main() {
5554
// CHECK-LABEL: FunctionDecl {{.*}}test_kernel3
5655
// CHECK: SYCLIntelMaxWorkGroupSizeAttr {{.*}}
5756
kernel<class test_kernel3>(
58-
[]() {func_do_not_ignore();});
57+
[]() { func_do_not_ignore(); });
5958

6059
#ifdef TRIGGER_ERROR
6160
[[intelfpga::max_work_group_size(1, 1, 1)]] int Var = 0; // expected-error{{'max_work_group_size' attribute only applies to functions}}

clang/test/SemaSYCL/intel-restrict.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// RUN: %clang_cc1 %s -fsyntax-only -fsycl -fsycl-is-device -triple spir64 -DCHECKDIAG -verify
22
// RUN: %clang_cc1 %s -fsyntax-only -ast-dump -fsycl -fsycl-is-device -triple spir64 | FileCheck %s
33

4-
[[intel::kernel_args_restrict]]
5-
void func_do_not_ignore() {}
4+
[[intel::kernel_args_restrict]] void func_do_not_ignore() {}
65

76
struct FuncObj {
87
[[intel::kernel_args_restrict]]
@@ -31,5 +30,5 @@ int main() {
3130
// CHECK-LABEL: FunctionDecl {{.*}}test_kernel3
3231
// CHECK: SYCLIntelKernelArgsRestrictAttr
3332
kernel<class test_kernel3>(
34-
[]() {func_do_not_ignore();});
33+
[]() { func_do_not_ignore(); });
3534
}

clang/test/SemaSYCL/num_simd_work_items.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ void foo() {
2020

2121
#else // __SYCL_DEVICE_ONLY__
2222

23-
[[intelfpga::num_simd_work_items(2)]]
24-
void func_do_not_ignore() {}
23+
[[intelfpga::num_simd_work_items(2)]] void func_do_not_ignore() {}
2524

2625
struct FuncObj {
2726
[[intelfpga::num_simd_work_items(42)]]
@@ -47,7 +46,7 @@ int main() {
4746
// CHECK-LABEL: FunctionDecl {{.*}}test_kernel3
4847
// CHECK: SYCLIntelNumSimdWorkItemsAttr {{.*}} 2
4948
kernel<class test_kernel3>(
50-
[]() {func_do_not_ignore();});
49+
[]() { func_do_not_ignore(); });
5150

5251
#ifdef TRIGGER_ERROR
5352
[[intelfpga::num_simd_work_items(0)]] int Var = 0; // expected-error{{'num_simd_work_items' attribute only applies to functions}}

0 commit comments

Comments
 (0)