Skip to content

Commit b48fe30

Browse files
committed
Clang-Format
1 parent 8749857 commit b48fe30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libcxx/include/optional

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ struct __optional_storage_base : __optional_destruct_base<_Tp> {
418418
}
419419

420420
template <class _Up>
421-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val(_Up&& __val){
421+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val(_Up&& __val) {
422422
this->__get() = std::forward<_Up>(__val);
423423
}
424424
};
@@ -476,7 +476,7 @@ struct __optional_storage_base<_Tp, true> {
476476
}
477477

478478
template <class _Up>
479-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val(_Up&& __val){
479+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val(_Up&& __val) {
480480
__value_ = std::addressof(__val);
481481
}
482482
};

libcxx/test/std/utilities/optional/optional.object/optional.object.assign/assign_value.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ constexpr void test_with_ref() {
284284
optional<T&> opt{t};
285285
opt = t2;
286286

287-
assert(std::addressof(*opt) != std::addressof(t));
288-
assert(std::addressof(*opt) == std::addressof(t2));
287+
assert(std::addressof(*opt) != std::addressof(t));
288+
assert(std::addressof(*opt) == std::addressof(t2));
289289
}
290290
// test that reassigning the reference for an optional<T&> doesn't affect the objet it's holding a reference to
291291
{

0 commit comments

Comments
 (0)