Skip to content

Commit 47fff87

Browse files
author
Chen, Brox
committed
clang format
1 parent 708b718 commit 47fff87

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sycl/include/sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,12 @@ class annotated_ref {
7171
namespace detail {
7272
template <class T> struct is_ann_ref_impl : std::false_type {};
7373
template <class T, class P>
74-
struct is_ann_ref_impl<annotated_ref<T, P>>
75-
: std::true_type {};
74+
struct is_ann_ref_impl<annotated_ref<T, P>> : std::true_type {};
7675
template <class T, class P>
77-
struct is_ann_ref_impl<const annotated_ref<T, P>>
78-
: std::true_type {};
76+
struct is_ann_ref_impl<const annotated_ref<T, P>> : std::true_type {};
7977
template <class T>
80-
constexpr bool is_ann_ref_v = is_ann_ref_impl<std::remove_reference_t<T>>::value;
78+
constexpr bool is_ann_ref_v =
79+
is_ann_ref_impl<std::remove_reference_t<T>>::value;
8180
} // namespace detail
8281

8382
template <typename T, typename... Props>
@@ -111,8 +110,9 @@ class annotated_ref<T, detail::properties_t<Props...>> {
111110
T operator=(O &&Obj) const {
112111
#ifdef __SYCL_DEVICE_ONLY__
113112
return *__builtin_intel_sycl_ptr_annotation(
114-
m_Ptr, detail::PropertyMetaInfo<Props>::name...,
115-
detail::PropertyMetaInfo<Props>::value...) = std::forward<O>(Obj);
113+
m_Ptr, detail::PropertyMetaInfo<Props>::name...,
114+
detail::PropertyMetaInfo<Props>::value...) =
115+
std::forward<O>(Obj);
116116
#else
117117
return *m_Ptr = std::forward<O>(Obj);
118118
#endif
@@ -127,17 +127,17 @@ class annotated_ref<T, detail::properties_t<Props...>> {
127127
// propagate compound operators
128128
#define PROPAGATE_OP(op) \
129129
template <class O, typename = std::enable_if_t<!detail::is_ann_ref_v<O>>> \
130-
T operator op(O &&rhs) const { \
130+
T operator op(O &&rhs) const { \
131131
T t = *this; \
132-
t op std::forward<O>(rhs); \
132+
t op std::forward<O>(rhs); \
133133
*this = t; \
134134
return t; \
135135
} \
136136
template <class O, class P> \
137-
T operator op(const annotated_ref<O, P> &rhs) const { \
137+
T operator op(const annotated_ref<O, P> &rhs) const { \
138138
T t = *this; \
139139
O t2 = rhs; \
140-
t op t2; \
140+
t op t2; \
141141
*this = t; \
142142
return t; \
143143
}

0 commit comments

Comments
 (0)