Skip to content

Commit 5dcf420

Browse files
ClangFormat changes
Signed-off-by: Elizabeth Andrews <[email protected]>
1 parent 4e1220a commit 5dcf420

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sycl/test/functor/functor_inheritance.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct InnerField : public InnerFieldBase {
2626
};
2727

2828
struct Base {
29-
Base (int _B, int _C, int _D) : B(_B), InnerObj(_C, _D) {}
29+
Base(int _B, int _C, int _D) : B(_B), InnerObj(_C, _D) {}
3030
int B;
3131
InnerField InnerObj;
3232
};
@@ -35,7 +35,7 @@ struct Derived : public Base, public SecondBase {
3535
Derived(
3636
int _A, int _B, int _C, int _D, int _E,
3737
cl::sycl::accessor<int, 1, sycl_read_write, sycl_global_buffer> &_Acc)
38-
: A(_A), Acc(_Acc), /*Out(_Out),*/ Base(_B, _C, _D), SecondBase(_E) {}
38+
: A(_A), Acc(_Acc), /*Out(_Out),*/ Base(_B, _C, _D), SecondBase(_E) {}
3939
void operator()() {
4040
Acc[0] = this->A + this->B + this->InnerObj.C + this->InnerObj.D + this->E;
4141
}
@@ -45,18 +45,17 @@ struct Derived : public Base, public SecondBase {
4545
};
4646

4747
int main() {
48-
int A[] = { 10 };
48+
int A[] = {10};
4949
{
5050
cl::sycl::queue Q;
5151
cl::sycl::buffer<int, 1> Buf(A, 1);
5252

5353
Q.submit([&](cl::sycl::handler &cgh) {
5454
auto Acc = Buf.get_access<sycl_read_write, sycl_global_buffer>(cgh);
55-
Derived F = {1, 2, 3, 4, 5, Acc/*, Out*/};
55+
Derived F = {1, 2, 3, 4, 5, Acc /*, Out*/};
5656
cgh.single_task(F);
5757
});
5858
}
5959
assert(A[0] == 15);
6060
return 0;
6161
}
62-

0 commit comments

Comments
 (0)