Skip to content

Commit afa1c79

Browse files
committed
Formatting and include
1 parent 7141e98 commit afa1c79

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libcxx/include/optional

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,8 @@ public:
629629
// [optional.iterators], iterator support
630630
_LIBCPP_HIDE_FROM_ABI constexpr iterator begin() noexcept {
631631
auto& __derived_self = static_cast<optional<_Tp>&>(*this);
632-
auto __ptr = [&__derived_self]() {
633-
if constexpr (is_lvalue_reference_v<_Tp>) {
632+
auto __ptr = [&__derived_self]() {
633+
if constexpr (is_lvalue_reference_v<_Tp>) {
634634
return __derived_self.has_value() ? std::addressof(__derived_self.__get()) : nullptr;
635635
}
636636
return std::addressof(__derived_self.__get());

libcxx/test/libcxx/utilities/optional/optional.object/optional.object.observe/value_or.compile.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
// template <class U> T optional<T>::value_or(U&&);
1515

16+
#include <concepts>
1617
#include <optional>
1718

1819
template <typename Opt, typename T>

libcxx/test/std/utilities/optional/optional.monadic/and_then.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ constexpr bool test_ref() {
306306
}
307307
// Test && overload
308308
{
309-
310309
//With & qualifier on F's operator()
311310
{
312311
int j = 42;

libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ctor.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main(int, char**)
4242
std::optional<const std::in_place_t> o2; // expected-error-re@optional:* {{static assertion failed{{.*}}instantiation of optional with in_place_t is ill-formed}}
4343
std::optional< volatile std::in_place_t> o3; // expected-error-re@optional:* {{static assertion failed{{.*}}instantiation of optional with in_place_t is ill-formed}}
4444
std::optional<const volatile std::in_place_t> o4; // expected-error-re@optional:* {{static assertion failed{{.*}}instantiation of optional with in_place_t is ill-formed}}
45-
}
45+
}
4646

4747
{
4848
std::optional< std::nullopt_t> o1; // expected-error-re@optional:* {{static assertion failed{{.*}}instantiation of optional with nullopt_t is ill-formed}}

0 commit comments

Comments
 (0)