Skip to content

Commit 5b924a0

Browse files
committed
Fix format errors
Signed-off-by: Soumi Manna <[email protected]>
1 parent 34ba930 commit 5b924a0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

+7-4
Original file line numberDiff line numberDiff line change
@@ -157,23 +157,26 @@ struct TRIFuncObjBad6 {
157157
};
158158

159159
[[sycl::reqd_work_group_size(4, 4, 4)]] // expected-error{{all 'reqd_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}}
160-
void TRIFuncObjBad6::operator()() const {}
160+
void
161+
TRIFuncObjBad6::operator()() const {}
161162

162163
struct TRIFuncObjBad7 {
163164
[[intel::max_global_work_dim(0)]] void
164165
operator()() const;
165166
};
166167

167168
[[sycl::reqd_work_group_size(4, 4, 4)]] // expected-error{{all 'reqd_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}}
168-
void TRIFuncObjBad7::operator()() const {}
169+
void
170+
TRIFuncObjBad7::operator()() const {}
169171

170172
struct TRIFuncObjBad8 {
171173
[[intel::max_global_work_dim(0)]] void
172174
operator()() const;
173175
};
174176

175177
[[intel::max_work_group_size(4, 4, 4)]] // expected-error{{all 'max_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}}
176-
void TRIFuncObjBad8::operator()() const {}
178+
void
179+
TRIFuncObjBad8::operator()() const {}
177180

178181
// Tests for incorrect argument values for Intel FPGA function attributes:
179182
// reqd_work_group_size, max_work_group_size and max_global_work_dim.
@@ -454,7 +457,7 @@ int main() {
454457
h.single_task<class test_kernel28>(TRIFuncObjBad14());
455458

456459
h.single_task<class test_kernel28>(
457-
[]() [[intel::max_global_work_dim(4)]]{}); // expected-error{{'max_global_work_dim' attribute requires integer constant between 0 and 3 inclusive}}
460+
[]() [[intel::max_global_work_dim(4)]] {}); // expected-error{{'max_global_work_dim' attribute requires integer constant between 0 and 3 inclusive}}
458461
#endif // TRIGGER_ERROR
459462
});
460463
return 0;

0 commit comments

Comments
 (0)