Skip to content

Commit 1d345ec

Browse files
committed
Clang format patch
1 parent c21b9df commit 1d345ec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

clang/test/CodeGenSYCL/stdtypes_kernel_type.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ class T;
4545
class U;
4646
} // namespace std
4747

48-
template <typename T> struct Templated_kernel_name;
48+
template <typename T>
49+
struct Templated_kernel_name;
4950

5051
template <typename name, typename Func>
5152
__attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
@@ -54,10 +55,10 @@ __attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
5455

5556
int main() {
5657
#ifdef CHECK_ERROR
57-
kernel_single_task<std::nullptr_t>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
58-
kernel_single_task<std::T>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
58+
kernel_single_task<std::nullptr_t>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
59+
kernel_single_task<std::T>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
5960
kernel_single_task<Templated_kernel_name<std::nullptr_t>>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
60-
kernel_single_task<Templated_kernel_name<std::U>>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
61+
kernel_single_task<Templated_kernel_name<std::U>>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
6162
#endif
6263

6364
// Although in the std namespace, these resolve to builtins such as `int` that are allowed in kernel names

0 commit comments

Comments
 (0)