[libcxx-commits] [libcxx] 18c4695 - [libc++][NFC] Fix whitespace problems in the files added to ignore_format.txt in D151115

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 23 08:44:17 PDT 2023


Author: Nikolas Klauser
Date: 2023-05-23T08:44:10-07:00
New Revision: 18c4695dedb4fad1132b50bf2c247afd8413e321

URL: https://github.com/llvm/llvm-project/commit/18c4695dedb4fad1132b50bf2c247afd8413e321
DIFF: https://github.com/llvm/llvm-project/commit/18c4695dedb4fad1132b50bf2c247afd8413e321.diff

LOG: [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

Added: 
    

Modified: 
    libcxx/include/__chrono/statically_widen.h
    libcxx/include/__exception/exception_ptr.h
    libcxx/include/__expected/unexpected.h
    libcxx/include/__pstl/internal/algorithm_impl.h
    libcxx/include/__system_error/error_category.h
    libcxx/include/__system_error/error_code.h
    libcxx/include/__system_error/error_condition.h
    libcxx/include/__utility/terminate_on_exception.h
    libcxx/utils/data/ignore_format.txt

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__chrono/statically_widen.h b/libcxx/include/__chrono/statically_widen.h
index cc1d586d31da5..a18c46f057a81 100644
--- a/libcxx/include/__chrono/statically_widen.h
+++ b/libcxx/include/__chrono/statically_widen.h
@@ -33,7 +33,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr const _CharT* __statically_widen(const char* __s
     return __wstr;
 }
 #    define _LIBCPP_STATICALLY_WIDEN(_CharT, __str) ::std::__statically_widen<_CharT>(__str, L##__str)
-#  else  // _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#  else // _LIBCPP_HAS_NO_WIDE_CHARACTERS
 
 // Without this indirection the unit test test/libcxx/modules_include.sh.cpp
 // 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
 #    define _LIBCPP_STATICALLY_WIDEN(_CharT, __str) ::std::__statically_widen<_CharT>(__str)
 #  endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS
 
-#endif   //_LIBCPP_STD_VER >= 20
+#endif //_LIBCPP_STD_VER >= 20
 
 _LIBCPP_END_NAMESPACE_STD
 

diff  --git a/libcxx/include/__exception/exception_ptr.h b/libcxx/include/__exception/exception_ptr.h
index cac4a887d5a7c..1307481f00526 100644
--- a/libcxx/include/__exception/exception_ptr.h
+++ b/libcxx/include/__exception/exception_ptr.h
@@ -62,7 +62,7 @@ _LIBCPP_HIDE_FROM_ABI exception_ptr make_exception_ptr(_Ep __e) _NOEXCEPT {
 #  endif
 }
 
-#else  // _LIBCPP_ABI_MICROSOFT
+#else // _LIBCPP_ABI_MICROSOFT
 
 class _LIBCPP_TYPE_VIS exception_ptr {
   _LIBCPP_DIAGNOSTIC_PUSH

diff  --git a/libcxx/include/__expected/unexpected.h b/libcxx/include/__expected/unexpected.h
index 75a057bb9c69a..075963a84dedc 100644
--- a/libcxx/include/__expected/unexpected.h
+++ b/libcxx/include/__expected/unexpected.h
@@ -64,8 +64,8 @@ class unexpected {
   _LIBCPP_HIDE_FROM_ABI constexpr unexpected(unexpected&&)      = default;
 
   template <class _Error = _Err>
-    requires(!is_same_v<remove_cvref_t<_Error>, unexpected> &&          //
-             !is_same_v<remove_cvref_t<_Error>, in_place_t> &&          //
+    requires(!is_same_v<remove_cvref_t<_Error>, unexpected> && //
+             !is_same_v<remove_cvref_t<_Error>, in_place_t> && //
              is_constructible_v<_Err, _Error>)
   _LIBCPP_HIDE_FROM_ABI constexpr explicit unexpected(_Error&& __error) //
       noexcept(is_nothrow_constructible_v<_Err, _Error>)                // strengthened

diff  --git a/libcxx/include/__pstl/internal/algorithm_impl.h b/libcxx/include/__pstl/internal/algorithm_impl.h
index c01e5f5c87263..6f35324b12238 100644
--- a/libcxx/include/__pstl/internal/algorithm_impl.h
+++ b/libcxx/include/__pstl/internal/algorithm_impl.h
@@ -4162,7 +4162,7 @@ bool __brick_lexicographical_compare(
     _RandomAccessIterator2 __last2,
     _Compare __comp,
     /* __is_vector = */ std::true_type) noexcept {
-  if (__first2 == __last2) {        // if second sequence is empty
+  if (__first2 == __last2) { // if second sequence is empty
     return false;
   } else if (__first1 == __last1) { // if first sequence is empty
     return true;
@@ -4213,7 +4213,7 @@ bool __pattern_lexicographical_compare(
     _Compare __comp) noexcept {
   using __backend_tag = typename decltype(__tag)::__backend_tag;
 
-  if (__first2 == __last2) {        // if second sequence is empty
+  if (__first2 == __last2) { // if second sequence is empty
     return false;
   } else if (__first1 == __last1) { // if first sequence is empty
     return true;

diff  --git a/libcxx/include/__system_error/error_category.h b/libcxx/include/__system_error/error_category.h
index 5c6bb79b9a7ae..47cc9e2302545 100644
--- a/libcxx/include/__system_error/error_category.h
+++ b/libcxx/include/__system_error/error_category.h
@@ -51,7 +51,7 @@ class _LIBCPP_TYPE_VIS error_category {
     return compare_three_way()(this, std::addressof(__rhs));
   }
 
-#else  // _LIBCPP_STD_VER >= 20
+#else // _LIBCPP_STD_VER >= 20
 
   _LIBCPP_HIDE_FROM_ABI bool operator!=(const error_category& __rhs) const _NOEXCEPT { return !(*this == __rhs); }
 

diff  --git a/libcxx/include/__system_error/error_code.h b/libcxx/include/__system_error/error_code.h
index 3b19a6857e133..78abe5ac447b2 100644
--- a/libcxx/include/__system_error/error_code.h
+++ b/libcxx/include/__system_error/error_code.h
@@ -123,7 +123,7 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator<(const error_code& __x, const error_c
   return __x.category() < __y.category() || (__x.category() == __y.category() && __x.value() < __y.value());
 }
 
-#else  // _LIBCPP_STD_VER <= 17
+#else // _LIBCPP_STD_VER <= 17
 
 inline _LIBCPP_HIDE_FROM_ABI strong_ordering operator<=>(const error_code& __x, const error_code& __y) noexcept {
   if (auto __c = __x.category() <=> __y.category(); __c != 0)

diff  --git a/libcxx/include/__system_error/error_condition.h b/libcxx/include/__system_error/error_condition.h
index cefb499ee7cc9..e3181d1350a82 100644
--- a/libcxx/include/__system_error/error_condition.h
+++ b/libcxx/include/__system_error/error_condition.h
@@ -108,7 +108,7 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator<(const error_condition& __x, const er
   return __x.category() < __y.category() || (__x.category() == __y.category() && __x.value() < __y.value());
 }
 
-#else  // _LIBCPP_STD_VER <= 17
+#else // _LIBCPP_STD_VER <= 17
 
 inline _LIBCPP_HIDE_FROM_ABI strong_ordering
 operator<=>(const error_condition& __x, const error_condition& __y) noexcept {

diff  --git a/libcxx/include/__utility/terminate_on_exception.h b/libcxx/include/__utility/terminate_on_exception.h
index c046dee1e9569..b539db6be978d 100644
--- a/libcxx/include/__utility/terminate_on_exception.h
+++ b/libcxx/include/__utility/terminate_on_exception.h
@@ -31,7 +31,7 @@ _LIBCPP_HIDE_FROM_ABI auto __terminate_on_exception(_Func __func) {
   }
 }
 
-#  else  // _LIBCPP_HAS_NO_EXCEPTIONS
+#  else // _LIBCPP_HAS_NO_EXCEPTIONS
 
 template <class _Func>
 _LIBCPP_HIDE_FROM_ABI auto __terminate_on_exception(_Func __func) {

diff  --git a/libcxx/utils/data/ignore_format.txt b/libcxx/utils/data/ignore_format.txt
index 39379dc3b8c83..0cdc496aafb75 100644
--- a/libcxx/utils/data/ignore_format.txt
+++ b/libcxx/utils/data/ignore_format.txt
@@ -250,7 +250,6 @@ libcxx/include/__chrono/literals.h
 libcxx/include/__chrono/monthday.h
 libcxx/include/__chrono/month.h
 libcxx/include/__chrono/month_weekday.h
-libcxx/include/__chrono/statically_widen.h
 libcxx/include/__chrono/steady_clock.h
 libcxx/include/__chrono/system_clock.h
 libcxx/include/__chrono/time_point.h
@@ -308,10 +307,8 @@ libcxx/include/__debug
 libcxx/include/__debug_utils/randomize_range.h
 libcxx/include/deque
 libcxx/include/errno.h
-libcxx/include/__exception/exception_ptr.h
 libcxx/include/expected
 libcxx/include/__expected/expected.h
-libcxx/include/__expected/unexpected.h
 libcxx/include/experimental/__config
 libcxx/include/experimental/iterator
 libcxx/include/experimental/map
@@ -506,7 +503,6 @@ libcxx/include/__numeric/transform_inclusive_scan.h
 libcxx/include/__numeric/transform_reduce.h
 libcxx/include/optional
 libcxx/include/ostream
-libcxx/include/__pstl/internal/algorithm_impl.h
 libcxx/include/__pstl/internal/numeric_impl.h
 libcxx/include/__pstl/internal/omp/parallel_for_each.h
 libcxx/include/__pstl/internal/omp/parallel_for.h
@@ -628,9 +624,6 @@ libcxx/include/__support/newlib/xlocale.h
 libcxx/include/__support/win32/locale_win32.h
 libcxx/include/__support/xlocale/__nop_locale_mgmt.h
 libcxx/include/__system_error/errc.h
-libcxx/include/__system_error/error_category.h
-libcxx/include/__system_error/error_code.h
-libcxx/include/__system_error/error_condition.h
 libcxx/include/thread
 libcxx/include/__threading_support
 libcxx/include/__thread/poll_with_backoff.h
@@ -777,7 +770,6 @@ libcxx/include/__utility/pair.h
 libcxx/include/__utility/piecewise_construct.h
 libcxx/include/__utility/priority_tag.h
 libcxx/include/__utility/rel_ops.h
-libcxx/include/__utility/terminate_on_exception.h
 libcxx/include/__utility/to_underlying.h
 libcxx/include/__utility/unreachable.h
 libcxx/include/valarray


        


More information about the libcxx-commits mailing list