Skip to content

Commit 18c4695

Browse files
committed
[libc++][NFC] Fix whitespace problems in the files added to ignore_format.txt in D151115
Reviewed By: ldionne, #libc, Mordante Spies: arichardson, Mordante, libcxx-commits Differential Revision: https://reviews.llvm.org/D151119
1 parent 70aad4e commit 18c4695

File tree

9 files changed

+11
-19
lines changed

9 files changed

+11
-19
lines changed

libcxx/include/__chrono/statically_widen.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr const _CharT* __statically_widen(const char* __s
3333
return __wstr;
3434
}
3535
# define _LIBCPP_STATICALLY_WIDEN(_CharT, __str) ::std::__statically_widen<_CharT>(__str, L##__str)
36-
# else // _LIBCPP_HAS_NO_WIDE_CHARACTERS
36+
# else // _LIBCPP_HAS_NO_WIDE_CHARACTERS
3737

3838
// Without this indirection the unit test test/libcxx/modules_include.sh.cpp
3939
// fails for the CI build "No wide characters". This seems like a bug.
@@ -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/__exception/exception_ptr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _LIBCPP_HIDE_FROM_ABI exception_ptr make_exception_ptr(_Ep __e) _NOEXCEPT {
6262
# endif
6363
}
6464

65-
#else // _LIBCPP_ABI_MICROSOFT
65+
#else // _LIBCPP_ABI_MICROSOFT
6666

6767
class _LIBCPP_TYPE_VIS exception_ptr {
6868
_LIBCPP_DIAGNOSTIC_PUSH

libcxx/include/__expected/unexpected.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class unexpected {
6464
_LIBCPP_HIDE_FROM_ABI constexpr unexpected(unexpected&&) = default;
6565

6666
template <class _Error = _Err>
67-
requires(!is_same_v<remove_cvref_t<_Error>, unexpected> && //
68-
!is_same_v<remove_cvref_t<_Error>, in_place_t> && //
67+
requires(!is_same_v<remove_cvref_t<_Error>, unexpected> && //
68+
!is_same_v<remove_cvref_t<_Error>, in_place_t> && //
6969
is_constructible_v<_Err, _Error>)
7070
_LIBCPP_HIDE_FROM_ABI constexpr explicit unexpected(_Error&& __error) //
7171
noexcept(is_nothrow_constructible_v<_Err, _Error>) // strengthened

libcxx/include/__pstl/internal/algorithm_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4162,7 +4162,7 @@ bool __brick_lexicographical_compare(
41624162
_RandomAccessIterator2 __last2,
41634163
_Compare __comp,
41644164
/* __is_vector = */ std::true_type) noexcept {
4165-
if (__first2 == __last2) { // if second sequence is empty
4165+
if (__first2 == __last2) { // if second sequence is empty
41664166
return false;
41674167
} else if (__first1 == __last1) { // if first sequence is empty
41684168
return true;
@@ -4213,7 +4213,7 @@ bool __pattern_lexicographical_compare(
42134213
_Compare __comp) noexcept {
42144214
using __backend_tag = typename decltype(__tag)::__backend_tag;
42154215

4216-
if (__first2 == __last2) { // if second sequence is empty
4216+
if (__first2 == __last2) { // if second sequence is empty
42174217
return false;
42184218
} else if (__first1 == __last1) { // if first sequence is empty
42194219
return true;

libcxx/include/__system_error/error_category.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class _LIBCPP_TYPE_VIS error_category {
5151
return compare_three_way()(this, std::addressof(__rhs));
5252
}
5353

54-
#else // _LIBCPP_STD_VER >= 20
54+
#else // _LIBCPP_STD_VER >= 20
5555

5656
_LIBCPP_HIDE_FROM_ABI bool operator!=(const error_category& __rhs) const _NOEXCEPT { return !(*this == __rhs); }
5757

libcxx/include/__system_error/error_code.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator<(const error_code& __x, const error_c
123123
return __x.category() < __y.category() || (__x.category() == __y.category() && __x.value() < __y.value());
124124
}
125125

126-
#else // _LIBCPP_STD_VER <= 17
126+
#else // _LIBCPP_STD_VER <= 17
127127

128128
inline _LIBCPP_HIDE_FROM_ABI strong_ordering operator<=>(const error_code& __x, const error_code& __y) noexcept {
129129
if (auto __c = __x.category() <=> __y.category(); __c != 0)

libcxx/include/__system_error/error_condition.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator<(const error_condition& __x, const er
108108
return __x.category() < __y.category() || (__x.category() == __y.category() && __x.value() < __y.value());
109109
}
110110

111-
#else // _LIBCPP_STD_VER <= 17
111+
#else // _LIBCPP_STD_VER <= 17
112112

113113
inline _LIBCPP_HIDE_FROM_ABI strong_ordering
114114
operator<=>(const error_condition& __x, const error_condition& __y) noexcept {

libcxx/include/__utility/terminate_on_exception.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ _LIBCPP_HIDE_FROM_ABI auto __terminate_on_exception(_Func __func) {
3131
}
3232
}
3333

34-
# else // _LIBCPP_HAS_NO_EXCEPTIONS
34+
# else // _LIBCPP_HAS_NO_EXCEPTIONS
3535

3636
template <class _Func>
3737
_LIBCPP_HIDE_FROM_ABI auto __terminate_on_exception(_Func __func) {

libcxx/utils/data/ignore_format.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ libcxx/include/__chrono/literals.h
250250
libcxx/include/__chrono/monthday.h
251251
libcxx/include/__chrono/month.h
252252
libcxx/include/__chrono/month_weekday.h
253-
libcxx/include/__chrono/statically_widen.h
254253
libcxx/include/__chrono/steady_clock.h
255254
libcxx/include/__chrono/system_clock.h
256255
libcxx/include/__chrono/time_point.h
@@ -308,10 +307,8 @@ libcxx/include/__debug
308307
libcxx/include/__debug_utils/randomize_range.h
309308
libcxx/include/deque
310309
libcxx/include/errno.h
311-
libcxx/include/__exception/exception_ptr.h
312310
libcxx/include/expected
313311
libcxx/include/__expected/expected.h
314-
libcxx/include/__expected/unexpected.h
315312
libcxx/include/experimental/__config
316313
libcxx/include/experimental/iterator
317314
libcxx/include/experimental/map
@@ -506,7 +503,6 @@ libcxx/include/__numeric/transform_inclusive_scan.h
506503
libcxx/include/__numeric/transform_reduce.h
507504
libcxx/include/optional
508505
libcxx/include/ostream
509-
libcxx/include/__pstl/internal/algorithm_impl.h
510506
libcxx/include/__pstl/internal/numeric_impl.h
511507
libcxx/include/__pstl/internal/omp/parallel_for_each.h
512508
libcxx/include/__pstl/internal/omp/parallel_for.h
@@ -628,9 +624,6 @@ libcxx/include/__support/newlib/xlocale.h
628624
libcxx/include/__support/win32/locale_win32.h
629625
libcxx/include/__support/xlocale/__nop_locale_mgmt.h
630626
libcxx/include/__system_error/errc.h
631-
libcxx/include/__system_error/error_category.h
632-
libcxx/include/__system_error/error_code.h
633-
libcxx/include/__system_error/error_condition.h
634627
libcxx/include/thread
635628
libcxx/include/__threading_support
636629
libcxx/include/__thread/poll_with_backoff.h
@@ -777,7 +770,6 @@ libcxx/include/__utility/pair.h
777770
libcxx/include/__utility/piecewise_construct.h
778771
libcxx/include/__utility/priority_tag.h
779772
libcxx/include/__utility/rel_ops.h
780-
libcxx/include/__utility/terminate_on_exception.h
781773
libcxx/include/__utility/to_underlying.h
782774
libcxx/include/__utility/unreachable.h
783775
libcxx/include/valarray

0 commit comments

Comments
 (0)