Skip to content

Commit 92157e6

Browse files
committed
address clang-formant complains
1 parent aa829c8 commit 92157e6

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

sycl/include/CL/sycl/detail/buffer_impl.hpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ class __SYCL_EXPORT buffer_impl final : public SYCLMemObjT {
108108
: BaseT(SizeInBytes, Props, std::move(Allocator)) {
109109

110110
if (Props.has_property<sycl::property::buffer::use_host_ptr>())
111-
throw sycl::invalid_object_error("Buffer constructor from a pair of iterator "
112-
"values cannot have the use_host_ptr property.",
113-
PI_INVALID_OPERATION);
111+
throw sycl::invalid_object_error(
112+
"Buffer constructor from a pair of iterator values cannot have the "
113+
"use_host_ptr property.",
114+
PI_INVALID_OPERATION);
114115

115116
BaseT::handleHostData(First, Last, RequiredAlign);
116117
}
@@ -127,9 +128,10 @@ class __SYCL_EXPORT buffer_impl final : public SYCLMemObjT {
127128
: BaseT(SizeInBytes, Props, std::move(Allocator)) {
128129

129130
if (Props.has_property<sycl::property::buffer::use_host_ptr>())
130-
throw sycl::invalid_object_error("Buffer constructor from a pair of iterator "
131-
"values cannot have the use_host_ptr property.",
132-
PI_INVALID_OPERATION);
131+
throw sycl::invalid_object_error(
132+
"Buffer constructor from a pair of iterator values cannot have the "
133+
"use_host_ptr property.",
134+
PI_INVALID_OPERATION);
133135

134136
BaseT::handleHostData(First, Last, RequiredAlign);
135137
}

sycl/include/CL/sycl/property_list.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ namespace detail {
228228
namespace buffer_ {
229229
class use_pinned_host_memory
230230
: public detail::Prop<detail::PropKind::BufferUsePinnedHostMemory> {};
231-
} // namespace buffer
231+
} // namespace buffer_
232232
} // namespace detail
233233

234234
namespace queue {

0 commit comments

Comments
 (0)