Skip to content

Commit 348e741

Browse files
committed
[libc++][NFC] Run clang-format on libcxx/include
This re-formats a few headers that had become out-of-sync with respect to formatting since we ran clang-format on the whole codebase. There's surprisingly few instances of it.
1 parent 1faa9c8 commit 348e741

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+105
-113
lines changed

libcxx/include/__chrono/leap_second.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class leap_second {
122122

123123
} // namespace chrono
124124

125-
# endif //_LIBCPP_STD_VER >= 20
125+
# endif // _LIBCPP_STD_VER >= 20
126126

127127
_LIBCPP_END_NAMESPACE_STD
128128

libcxx/include/__chrono/parser_std_format_spec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ class _LIBCPP_TEMPLATE_VIS __parser_chrono {
409409

410410
} // namespace __format_spec
411411

412-
#endif //_LIBCPP_STD_VER >= 20
412+
#endif // _LIBCPP_STD_VER >= 20
413413

414414
_LIBCPP_END_NAMESPACE_STD
415415

libcxx/include/__chrono/statically_widen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr const _CharT* __statically_widen(const char* __s
4545
# define _LIBCPP_STATICALLY_WIDEN(_CharT, __str) ::std::__statically_widen<_CharT>(__str)
4646
# endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS
4747

48-
#endif //_LIBCPP_STD_VER >= 20
48+
#endif // _LIBCPP_STD_VER >= 20
4949

5050
_LIBCPP_END_NAMESPACE_STD
5151

libcxx/include/__chrono/time_zone_link.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ operator<=>(const time_zone_link& __x, const time_zone_link& __y) noexcept {
6868

6969
} // namespace chrono
7070

71-
# endif //_LIBCPP_STD_VER >= 20
71+
# endif // _LIBCPP_STD_VER >= 20
7272

7373
_LIBCPP_END_NAMESPACE_STD
7474

libcxx/include/__expected/expected.h

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -503,25 +503,24 @@ class expected : private __expected_base<_Tp, _Err> {
503503

504504
private:
505505
template <class _Up, class _OtherErr, class _UfQual, class _OtherErrQual>
506-
using __can_convert =
507-
_And< is_constructible<_Tp, _UfQual>,
508-
is_constructible<_Err, _OtherErrQual>,
509-
_If<_Not<is_same<remove_cv_t<_Tp>, bool>>::value,
510-
_And<
511-
_Not<_And<is_same<_Tp, _Up>, is_same<_Err, _OtherErr>>>, // use the copy constructor instead, see #92676
512-
_Not<is_constructible<_Tp, expected<_Up, _OtherErr>&>>,
513-
_Not<is_constructible<_Tp, expected<_Up, _OtherErr>>>,
514-
_Not<is_constructible<_Tp, const expected<_Up, _OtherErr>&>>,
515-
_Not<is_constructible<_Tp, const expected<_Up, _OtherErr>>>,
516-
_Not<is_convertible<expected<_Up, _OtherErr>&, _Tp>>,
517-
_Not<is_convertible<expected<_Up, _OtherErr>&&, _Tp>>,
518-
_Not<is_convertible<const expected<_Up, _OtherErr>&, _Tp>>,
519-
_Not<is_convertible<const expected<_Up, _OtherErr>&&, _Tp>>>,
520-
true_type>,
521-
_Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>&>>,
522-
_Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>>>,
523-
_Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>&>>,
524-
_Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>>> >;
506+
using __can_convert = _And<
507+
is_constructible<_Tp, _UfQual>,
508+
is_constructible<_Err, _OtherErrQual>,
509+
_If<_Not<is_same<remove_cv_t<_Tp>, bool>>::value,
510+
_And< _Not<_And<is_same<_Tp, _Up>, is_same<_Err, _OtherErr>>>, // use the copy constructor instead, see #92676
511+
_Not<is_constructible<_Tp, expected<_Up, _OtherErr>&>>,
512+
_Not<is_constructible<_Tp, expected<_Up, _OtherErr>>>,
513+
_Not<is_constructible<_Tp, const expected<_Up, _OtherErr>&>>,
514+
_Not<is_constructible<_Tp, const expected<_Up, _OtherErr>>>,
515+
_Not<is_convertible<expected<_Up, _OtherErr>&, _Tp>>,
516+
_Not<is_convertible<expected<_Up, _OtherErr>&&, _Tp>>,
517+
_Not<is_convertible<const expected<_Up, _OtherErr>&, _Tp>>,
518+
_Not<is_convertible<const expected<_Up, _OtherErr>&&, _Tp>>>,
519+
true_type>,
520+
_Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>&>>,
521+
_Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>>>,
522+
_Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>&>>,
523+
_Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>>> >;
525524

526525
template <class _Func, class... _Args>
527526
_LIBCPP_HIDE_FROM_ABI constexpr explicit expected(

libcxx/include/__format/buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ class _LIBCPP_TEMPLATE_VIS __retarget_buffer {
646646

647647
} // namespace __format
648648

649-
#endif //_LIBCPP_STD_VER >= 20
649+
#endif // _LIBCPP_STD_VER >= 20
650650

651651
_LIBCPP_END_NAMESPACE_STD
652652

libcxx/include/__format/concepts.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ template <class _Tp>
7575
concept __fmt_pair_like =
7676
__is_specialization_v<_Tp, pair> || (__is_specialization_v<_Tp, tuple> && tuple_size_v<_Tp> == 2);
7777

78-
# endif //_LIBCPP_STD_VER >= 23
79-
#endif //_LIBCPP_STD_VER >= 20
78+
# endif // _LIBCPP_STD_VER >= 23
79+
#endif // _LIBCPP_STD_VER >= 20
8080

8181
_LIBCPP_END_NAMESPACE_STD
8282

libcxx/include/__format/container_adaptor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ template <class _CharT, class _Tp, formattable<_CharT> _Container>
6666
struct _LIBCPP_TEMPLATE_VIS formatter<stack<_Tp, _Container>, _CharT>
6767
: public __formatter_container_adaptor<stack<_Tp, _Container>, _CharT> {};
6868

69-
#endif //_LIBCPP_STD_VER >= 23
69+
#endif // _LIBCPP_STD_VER >= 23
7070

7171
_LIBCPP_END_NAMESPACE_STD
7272

libcxx/include/__format/enable_insertable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ inline constexpr bool __enable_insertable = false;
2828

2929
} // namespace __format
3030

31-
#endif //_LIBCPP_STD_VER >= 20
31+
#endif // _LIBCPP_STD_VER >= 20
3232

3333
_LIBCPP_END_NAMESPACE_STD
3434

libcxx/include/__format/escaped_output_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ _LIBCPP_HIDE_FROM_ABI inline constexpr uint32_t __entries[711] = {
856856
// clang-format on
857857
} // namespace __escaped_output_table
858858

859-
#endif //_LIBCPP_STD_VER >= 23
859+
#endif // _LIBCPP_STD_VER >= 23
860860

861861
_LIBCPP_END_NAMESPACE_STD
862862

0 commit comments

Comments
 (0)