Skip to content

Commit 0c83d18

Browse files
committed
[SYCL][ESIMD] Rename test_proxy state getter
Also the class attribute code style was aligned with other ESIMD API headers Signed-off-by: Kochetkov, Yuriy <[email protected]>
1 parent 0080b4e commit 0c83d18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/include/sycl/ext/intel/experimental/esimd/detail/test_proxy.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ namespace sycl::ext::intel::experimental::esimd::detail::test {
7171
// Therefore the following expression is expected to return `true` only if the
7272
// move constructor or move operator was called for the instance of the class
7373
// under test:
74-
// instance.get_test_proxy().was_moved()
74+
// instance.get_test_proxy().was_move_destination()
7575
//
7676
class test_proxy {
7777
// Define the default value to use for every constructor
78-
bool m_moved = false;
78+
bool M_move_destination = false;
7979

8080
public:
8181
test_proxy() { __esimd_dbg_print(test_proxy()); }
@@ -85,18 +85,18 @@ class test_proxy {
8585
}
8686
test_proxy(test_proxy &&) {
8787
__esimd_dbg_print(test_proxy(test_proxy && other));
88-
m_moved = true;
88+
M_move_destination = true;
8989
}
9090
test_proxy &operator=(const test_proxy &) {
9191
__esimd_dbg_print(test_proxy::operator=(const test_proxy &other));
9292
return *this;
9393
}
9494
test_proxy &operator=(test_proxy &&) {
9595
__esimd_dbg_print(test_proxy::operator=(test_proxy &&other));
96-
m_moved = true;
96+
M_move_destination = true;
9797
return *this;
9898
}
99-
bool was_moved() const { return m_moved; }
99+
bool was_move_destination() const { return M_move_destination; }
100100
};
101101

102102
} // namespace sycl::ext::intel::experimental::esimd::detail::test

0 commit comments

Comments
 (0)