[llvm-branch-commits] [libcxx] [libc++][C++03] Remove code that is not used in C++03 (PR #134045)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 2 00:58:14 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions ,h -- libcxx/include/__cxx03/__algorithm/equal.h libcxx/include/__cxx03/__algorithm/for_each.h libcxx/include/__cxx03/__algorithm/is_permutation.h libcxx/include/__cxx03/__algorithm/iterator_operations.h libcxx/include/__cxx03/__algorithm/make_projected.h libcxx/include/__cxx03/__algorithm/max.h libcxx/include/__cxx03/__algorithm/min.h libcxx/include/__cxx03/__algorithm/minmax.h libcxx/include/__cxx03/__algorithm/mismatch.h libcxx/include/__cxx03/__algorithm/search.h libcxx/include/__cxx03/__algorithm/shuffle.h libcxx/include/__cxx03/__algorithm/simd_utils.h libcxx/include/__cxx03/__algorithm/sort.h libcxx/include/__cxx03/__algorithm/three_way_comp_ref_type.h libcxx/include/__cxx03/__algorithm/uniform_random_bit_generator_adaptor.h libcxx/include/__cxx03/__algorithm/unwrap_iter.h libcxx/include/__cxx03/__algorithm/unwrap_range.h libcxx/include/__cxx03/__atomic/aliases.h libcxx/include/__cxx03/__atomic/atomic.h libcxx/include/__cxx03/__atomic/atomic_base.h libcxx/include/__cxx03/__atomic/atomic_flag.h libcxx/include/__cxx03/__atomic/atomic_init.h libcxx/include/__cxx03/__atomic/cxx_atomic_impl.h libcxx/include/__cxx03/__atomic/memory_order.h libcxx/include/__cxx03/__bit/countl.h libcxx/include/__cxx03/__bit/countr.h libcxx/include/__cxx03/__bit/popcount.h libcxx/include/__cxx03/__bit/rotate.h libcxx/include/__cxx03/__bit_reference libcxx/include/__cxx03/__chrono/duration.h libcxx/include/__cxx03/__chrono/system_clock.h libcxx/include/__cxx03/__chrono/time_point.h libcxx/include/__cxx03/__config libcxx/include/__cxx03/__configuration/language.h libcxx/include/__cxx03/__debug_utils/randomize_range.h libcxx/include/__cxx03/__exception/operations.h libcxx/include/__cxx03/__functional/binary_function.h libcxx/include/__cxx03/__functional/binary_negate.h libcxx/include/__cxx03/__functional/bind.h libcxx/include/__cxx03/__functional/binder1st.h libcxx/include/__cxx03/__functional/binder2nd.h libcxx/include/__cxx03/__functional/hash.h libcxx/include/__cxx03/__functional/identity.h libcxx/include/__cxx03/__functional/mem_fun_ref.h libcxx/include/__cxx03/__functional/operations.h libcxx/include/__cxx03/__functional/pointer_to_binary_function.h libcxx/include/__cxx03/__functional/pointer_to_unary_function.h libcxx/include/__cxx03/__functional/reference_wrapper.h libcxx/include/__cxx03/__functional/unary_function.h libcxx/include/__cxx03/__functional/unary_negate.h libcxx/include/__cxx03/__functional/weak_result_type.h libcxx/include/__cxx03/__fwd/array.h libcxx/include/__cxx03/__fwd/complex.h libcxx/include/__cxx03/__fwd/pair.h libcxx/include/__cxx03/__fwd/string.h libcxx/include/__cxx03/__fwd/tuple.h libcxx/include/__cxx03/__hash_table libcxx/include/__cxx03/__iterator/access.h libcxx/include/__cxx03/__iterator/advance.h libcxx/include/__cxx03/__iterator/back_insert_iterator.h libcxx/include/__cxx03/__iterator/bounded_iter.h libcxx/include/__cxx03/__iterator/cpp17_iterator_concepts.h libcxx/include/__cxx03/__iterator/distance.h libcxx/include/__cxx03/__iterator/front_insert_iterator.h libcxx/include/__cxx03/__iterator/insert_iterator.h libcxx/include/__cxx03/__iterator/istream_iterator.h libcxx/include/__cxx03/__iterator/istreambuf_iterator.h libcxx/include/__cxx03/__iterator/iterator_traits.h libcxx/include/__cxx03/__iterator/move_iterator.h libcxx/include/__cxx03/__iterator/next.h libcxx/include/__cxx03/__iterator/ostream_iterator.h libcxx/include/__cxx03/__iterator/ostreambuf_iterator.h libcxx/include/__cxx03/__iterator/prev.h libcxx/include/__cxx03/__iterator/reverse_iterator.h libcxx/include/__cxx03/__iterator/wrap_iter.h libcxx/include/__cxx03/__locale libcxx/include/__cxx03/__locale_dir/locale_base_api/ibm.h libcxx/include/__cxx03/__math/hypot.h libcxx/include/__cxx03/__memory/addressof.h libcxx/include/__cxx03/__memory/aligned_alloc.h libcxx/include/__cxx03/__memory/allocate_at_least.h libcxx/include/__cxx03/__memory/allocator.h libcxx/include/__cxx03/__memory/allocator_arg_t.h libcxx/include/__cxx03/__memory/allocator_traits.h libcxx/include/__cxx03/__memory/assume_aligned.h libcxx/include/__cxx03/__memory/auto_ptr.h libcxx/include/__cxx03/__memory/compressed_pair.h libcxx/include/__cxx03/__memory/construct_at.h libcxx/include/__cxx03/__memory/pointer_traits.h libcxx/include/__cxx03/__memory/raw_storage_iterator.h libcxx/include/__cxx03/__memory/shared_ptr.h libcxx/include/__cxx03/__memory/swap_allocator.h libcxx/include/__cxx03/__memory/temp_value.h libcxx/include/__cxx03/__memory/uninitialized_algorithms.h libcxx/include/__cxx03/__memory/unique_ptr.h libcxx/include/__cxx03/__memory/uses_allocator.h libcxx/include/__cxx03/__mutex/once_flag.h libcxx/include/__cxx03/__mutex/tag_types.h libcxx/include/__cxx03/__numeric/accumulate.h libcxx/include/__cxx03/__numeric/adjacent_difference.h libcxx/include/__cxx03/__numeric/inner_product.h libcxx/include/__cxx03/__numeric/partial_sum.h libcxx/include/__cxx03/__ostream/basic_ostream.h libcxx/include/__cxx03/__random/bernoulli_distribution.h libcxx/include/__cxx03/__random/binomial_distribution.h libcxx/include/__cxx03/__random/cauchy_distribution.h libcxx/include/__cxx03/__random/chi_squared_distribution.h libcxx/include/__cxx03/__random/discard_block_engine.h libcxx/include/__cxx03/__random/discrete_distribution.h libcxx/include/__cxx03/__random/exponential_distribution.h libcxx/include/__cxx03/__random/extreme_value_distribution.h libcxx/include/__cxx03/__random/fisher_f_distribution.h libcxx/include/__cxx03/__random/gamma_distribution.h libcxx/include/__cxx03/__random/generate_canonical.h libcxx/include/__cxx03/__random/geometric_distribution.h libcxx/include/__cxx03/__random/independent_bits_engine.h libcxx/include/__cxx03/__random/linear_congruential_engine.h libcxx/include/__cxx03/__random/lognormal_distribution.h libcxx/include/__cxx03/__random/mersenne_twister_engine.h libcxx/include/__cxx03/__random/negative_binomial_distribution.h libcxx/include/__cxx03/__random/normal_distribution.h libcxx/include/__cxx03/__random/piecewise_constant_distribution.h libcxx/include/__cxx03/__random/piecewise_linear_distribution.h libcxx/include/__cxx03/__random/poisson_distribution.h libcxx/include/__cxx03/__random/random_device.h libcxx/include/__cxx03/__random/seed_seq.h libcxx/include/__cxx03/__random/shuffle_order_engine.h libcxx/include/__cxx03/__random/student_t_distribution.h libcxx/include/__cxx03/__random/subtract_with_carry_engine.h libcxx/include/__cxx03/__random/uniform_int_distribution.h libcxx/include/__cxx03/__random/uniform_real_distribution.h libcxx/include/__cxx03/__random/weibull_distribution.h libcxx/include/__cxx03/__string/char_traits.h libcxx/include/__cxx03/__string/constexpr_c_functions.h libcxx/include/__cxx03/__system_error/error_category.h libcxx/include/__cxx03/__system_error/error_code.h libcxx/include/__cxx03/__system_error/error_condition.h libcxx/include/__cxx03/__thread/id.h libcxx/include/__cxx03/__thread/thread.h libcxx/include/__cxx03/__tree libcxx/include/__cxx03/__tuple/find_index.h libcxx/include/__cxx03/__tuple/make_tuple_types.h libcxx/include/__cxx03/__tuple/sfinae_helpers.h libcxx/include/__cxx03/__tuple/tuple_element.h libcxx/include/__cxx03/__tuple/tuple_indices.h libcxx/include/__cxx03/__tuple/tuple_like.h libcxx/include/__cxx03/__tuple/tuple_like_ext.h libcxx/include/__cxx03/__tuple/tuple_like_no_subrange.h libcxx/include/__cxx03/__tuple/tuple_size.h libcxx/include/__cxx03/__type_traits/add_const.h libcxx/include/__cxx03/__type_traits/add_cv.h libcxx/include/__cxx03/__type_traits/add_lvalue_reference.h libcxx/include/__cxx03/__type_traits/add_pointer.h libcxx/include/__cxx03/__type_traits/add_rvalue_reference.h libcxx/include/__cxx03/__type_traits/add_volatile.h libcxx/include/__cxx03/__type_traits/aligned_storage.h libcxx/include/__cxx03/__type_traits/aligned_union.h libcxx/include/__cxx03/__type_traits/alignment_of.h libcxx/include/__cxx03/__type_traits/common_type.h libcxx/include/__cxx03/__type_traits/conditional.h libcxx/include/__cxx03/__type_traits/conjunction.h libcxx/include/__cxx03/__type_traits/decay.h libcxx/include/__cxx03/__type_traits/disjunction.h libcxx/include/__cxx03/__type_traits/enable_if.h libcxx/include/__cxx03/__type_traits/extent.h libcxx/include/__cxx03/__type_traits/has_virtual_destructor.h libcxx/include/__cxx03/__type_traits/integral_constant.h libcxx/include/__cxx03/__type_traits/invoke.h libcxx/include/__cxx03/__type_traits/is_abstract.h libcxx/include/__cxx03/__type_traits/is_arithmetic.h libcxx/include/__cxx03/__type_traits/is_array.h libcxx/include/__cxx03/__type_traits/is_assignable.h libcxx/include/__cxx03/__type_traits/is_base_of.h libcxx/include/__cxx03/__type_traits/is_bounded_array.h libcxx/include/__cxx03/__type_traits/is_class.h libcxx/include/__cxx03/__type_traits/is_compound.h libcxx/include/__cxx03/__type_traits/is_const.h libcxx/include/__cxx03/__type_traits/is_constant_evaluated.h libcxx/include/__cxx03/__type_traits/is_constructible.h libcxx/include/__cxx03/__type_traits/is_convertible.h libcxx/include/__cxx03/__type_traits/is_destructible.h libcxx/include/__cxx03/__type_traits/is_empty.h libcxx/include/__cxx03/__type_traits/is_enum.h libcxx/include/__cxx03/__type_traits/is_execution_policy.h libcxx/include/__cxx03/__type_traits/is_final.h libcxx/include/__cxx03/__type_traits/is_floating_point.h libcxx/include/__cxx03/__type_traits/is_function.h libcxx/include/__cxx03/__type_traits/is_fundamental.h libcxx/include/__cxx03/__type_traits/is_implicitly_default_constructible.h libcxx/include/__cxx03/__type_traits/is_integral.h libcxx/include/__cxx03/__type_traits/is_literal_type.h libcxx/include/__cxx03/__type_traits/is_member_pointer.h libcxx/include/__cxx03/__type_traits/is_nothrow_assignable.h libcxx/include/__cxx03/__type_traits/is_nothrow_constructible.h libcxx/include/__cxx03/__type_traits/is_nothrow_destructible.h libcxx/include/__cxx03/__type_traits/is_null_pointer.h libcxx/include/__cxx03/__type_traits/is_object.h libcxx/include/__cxx03/__type_traits/is_pod.h libcxx/include/__cxx03/__type_traits/is_pointer.h libcxx/include/__cxx03/__type_traits/is_polymorphic.h libcxx/include/__cxx03/__type_traits/is_reference.h libcxx/include/__cxx03/__type_traits/is_same.h libcxx/include/__cxx03/__type_traits/is_scalar.h libcxx/include/__cxx03/__type_traits/is_signed.h libcxx/include/__cxx03/__type_traits/is_specialization.h libcxx/include/__cxx03/__type_traits/is_standard_layout.h libcxx/include/__cxx03/__type_traits/is_swappable.h libcxx/include/__cxx03/__type_traits/is_trivial.h libcxx/include/__cxx03/__type_traits/is_trivially_assignable.h libcxx/include/__cxx03/__type_traits/is_trivially_constructible.h libcxx/include/__cxx03/__type_traits/is_trivially_copyable.h libcxx/include/__cxx03/__type_traits/is_trivially_destructible.h libcxx/include/__cxx03/__type_traits/is_unbounded_array.h libcxx/include/__cxx03/__type_traits/is_union.h libcxx/include/__cxx03/__type_traits/is_unsigned.h libcxx/include/__cxx03/__type_traits/is_void.h libcxx/include/__cxx03/__type_traits/is_volatile.h libcxx/include/__cxx03/__type_traits/make_32_64_or_128_bit.h libcxx/include/__cxx03/__type_traits/make_signed.h libcxx/include/__cxx03/__type_traits/make_unsigned.h libcxx/include/__cxx03/__type_traits/nat.h libcxx/include/__cxx03/__type_traits/negation.h libcxx/include/__cxx03/__type_traits/noexcept_move_assign_container.h libcxx/include/__cxx03/__type_traits/rank.h libcxx/include/__cxx03/__type_traits/remove_all_extents.h libcxx/include/__cxx03/__type_traits/remove_const.h libcxx/include/__cxx03/__type_traits/remove_cv.h libcxx/include/__cxx03/__type_traits/remove_cvref.h libcxx/include/__cxx03/__type_traits/remove_extent.h libcxx/include/__cxx03/__type_traits/remove_pointer.h libcxx/include/__cxx03/__type_traits/remove_reference.h libcxx/include/__cxx03/__type_traits/remove_volatile.h libcxx/include/__cxx03/__type_traits/result_of.h libcxx/include/__cxx03/__type_traits/strip_signature.h libcxx/include/__cxx03/__type_traits/type_identity.h libcxx/include/__cxx03/__type_traits/underlying_type.h libcxx/include/__cxx03/__type_traits/unwrap_ref.h libcxx/include/__cxx03/__type_traits/void_t.h libcxx/include/__cxx03/__utility/as_lvalue.h libcxx/include/__cxx03/__utility/integer_sequence.h libcxx/include/__cxx03/__utility/pair.h libcxx/include/__cxx03/__utility/piecewise_construct.h libcxx/include/__cxx03/__utility/small_buffer.h libcxx/include/__cxx03/__utility/swap.h libcxx/include/__cxx03/__utility/unreachable.h libcxx/include/__cxx03/__variant/monostate.h libcxx/include/__cxx03/algorithm libcxx/include/__cxx03/array libcxx/include/__cxx03/atomic libcxx/include/__cxx03/bitset libcxx/include/__cxx03/chrono libcxx/include/__cxx03/cmath libcxx/include/__cxx03/codecvt libcxx/include/__cxx03/complex libcxx/include/__cxx03/condition_variable libcxx/include/__cxx03/cstddef libcxx/include/__cxx03/cstdio libcxx/include/__cxx03/cstdlib libcxx/include/__cxx03/ctime libcxx/include/__cxx03/cuchar libcxx/include/__cxx03/cwchar libcxx/include/__cxx03/deque libcxx/include/__cxx03/exception libcxx/include/__cxx03/ext/hash_map libcxx/include/__cxx03/ext/hash_set libcxx/include/__cxx03/forward_list libcxx/include/__cxx03/fstream libcxx/include/__cxx03/functional libcxx/include/__cxx03/future libcxx/include/__cxx03/iomanip libcxx/include/__cxx03/ios libcxx/include/__cxx03/iosfwd libcxx/include/__cxx03/istream libcxx/include/__cxx03/iterator libcxx/include/__cxx03/limits libcxx/include/__cxx03/list libcxx/include/__cxx03/locale libcxx/include/__cxx03/map libcxx/include/__cxx03/memory libcxx/include/__cxx03/mutex libcxx/include/__cxx03/new libcxx/include/__cxx03/numeric libcxx/include/__cxx03/ostream libcxx/include/__cxx03/queue libcxx/include/__cxx03/random libcxx/include/__cxx03/ratio libcxx/include/__cxx03/regex libcxx/include/__cxx03/set libcxx/include/__cxx03/sstream libcxx/include/__cxx03/stack libcxx/include/__cxx03/stdatomic.h libcxx/include/__cxx03/stdexcept libcxx/include/__cxx03/streambuf libcxx/include/__cxx03/string libcxx/include/__cxx03/string_view libcxx/include/__cxx03/strstream libcxx/include/__cxx03/system_error libcxx/include/__cxx03/thread libcxx/include/__cxx03/type_traits libcxx/include/__cxx03/typeindex libcxx/include/__cxx03/typeinfo libcxx/include/__cxx03/uchar.h libcxx/include/__cxx03/unordered_map libcxx/include/__cxx03/unordered_set libcxx/include/__cxx03/utility libcxx/include/__cxx03/valarray libcxx/include/__cxx03/vector libcxx/include/__cxx03/version
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/include/__cxx03/__atomic/cxx_atomic_impl.h b/libcxx/include/__cxx03/__atomic/cxx_atomic_impl.h
index c8dd6e788..2a0bb1a66 100644
--- a/libcxx/include/__cxx03/__atomic/cxx_atomic_impl.h
+++ b/libcxx/include/__cxx03/__atomic/cxx_atomic_impl.h
@@ -44,9 +44,7 @@ _LIBCPP_HIDE_FROM_ABI void __cxx_atomic_assign_volatile(_Tp volatile& __a_value,
 
 template <typename _Tp>
 struct __cxx_atomic_base_impl {
-  _LIBCPP_HIDE_FROM_ABI
-  __cxx_atomic_base_impl() _NOEXCEPT : __a_value() {
-  }
+  _LIBCPP_HIDE_FROM_ABI __cxx_atomic_base_impl() _NOEXCEPT : __a_value() {}
   _LIBCPP_CONSTEXPR explicit __cxx_atomic_base_impl(_Tp value) _NOEXCEPT : __a_value(value) {}
   _Tp __a_value;
 };
@@ -259,9 +257,7 @@ __cxx_atomic_fetch_xor(__cxx_atomic_base_impl<_Tp>* __a, _Tp __pattern, memory_o
 
 template <typename _Tp>
 struct __cxx_atomic_base_impl {
-  _LIBCPP_HIDE_FROM_ABI
-  __cxx_atomic_base_impl() _NOEXCEPT : __a_value() {
-  }
+  _LIBCPP_HIDE_FROM_ABI __cxx_atomic_base_impl() _NOEXCEPT : __a_value() {}
   _LIBCPP_CONSTEXPR explicit __cxx_atomic_base_impl(_Tp __value) _NOEXCEPT : __a_value(__value) {}
   _LIBCPP_DISABLE_EXTENSION_WARNING _Atomic(_Tp) __a_value;
 };
diff --git a/libcxx/include/__cxx03/__functional/reference_wrapper.h b/libcxx/include/__cxx03/__functional/reference_wrapper.h
index 349e12047..a9da98074 100644
--- a/libcxx/include/__cxx03/__functional/reference_wrapper.h
+++ b/libcxx/include/__cxx03/__functional/reference_wrapper.h
@@ -56,8 +56,7 @@ public:
   // invoke
   template <class... _ArgTypes>
   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 typename __invoke_of<type&, _ArgTypes...>::type
-  operator()(_ArgTypes&&... __args) const
-  {
+  operator()(_ArgTypes&&... __args) const {
     return std::__invoke(get(), std::forward<_ArgTypes>(__args)...);
   }
 };
diff --git a/libcxx/include/__cxx03/__hash_table b/libcxx/include/__cxx03/__hash_table
index 55c2bd18f..6148a828d 100644
--- a/libcxx/include/__cxx03/__hash_table
+++ b/libcxx/include/__cxx03/__hash_table
@@ -613,8 +613,8 @@ struct __enforce_unordered_container_requirements {
 };
 
 template <class _Key, class _Hash, class _Equal>
-    typename __enforce_unordered_container_requirements<_Key, _Hash, _Equal>::type
-    __diagnose_unordered_container_requirements(int);
+typename __enforce_unordered_container_requirements<_Key, _Hash, _Equal>::type
+__diagnose_unordered_container_requirements(int);
 
 // This dummy overload is used so that the compiler won't emit a spurious
 // "no matching function for call to __diagnose_unordered_xxx" diagnostic
@@ -1827,8 +1827,7 @@ void __hash_table<_Tp, _Hash, _Equal, _Alloc>::swap(__hash_table& __u)
     _NOEXCEPT_(__is_nothrow_swappable_v<hasher>&& __is_nothrow_swappable_v<key_equal> &&
                (!allocator_traits<__pointer_allocator>::propagate_on_container_swap::value ||
                 __is_nothrow_swappable_v<__pointer_allocator>) &&
-               (!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>))
-{
+               (!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>)) {
   _LIBCPP_ASSERT_COMPATIBLE_ALLOCATOR(
       __node_traits::propagate_on_container_swap::value || this->__node_alloc() == __u.__node_alloc(),
       "unordered container::swap: Either propagate_on_container_swap "
diff --git a/libcxx/include/__cxx03/__iterator/back_insert_iterator.h b/libcxx/include/__cxx03/__iterator/back_insert_iterator.h
index a9e3370c6..a67b6d5b8 100644
--- a/libcxx/include/__cxx03/__iterator/back_insert_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/back_insert_iterator.h
@@ -28,9 +28,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _Container>
-class _LIBCPP_TEMPLATE_VIS back_insert_iterator
-    : public iterator<output_iterator_tag, void, void, void, void>
-{
+class _LIBCPP_TEMPLATE_VIS back_insert_iterator : public iterator<output_iterator_tag, void, void, void, void> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 protected:
diff --git a/libcxx/include/__cxx03/__iterator/front_insert_iterator.h b/libcxx/include/__cxx03/__iterator/front_insert_iterator.h
index ffc4d0eae..ca1edc318 100644
--- a/libcxx/include/__cxx03/__iterator/front_insert_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/front_insert_iterator.h
@@ -28,9 +28,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _Container>
-class _LIBCPP_TEMPLATE_VIS front_insert_iterator
-    : public iterator<output_iterator_tag, void, void, void, void>
-{
+class _LIBCPP_TEMPLATE_VIS front_insert_iterator : public iterator<output_iterator_tag, void, void, void, void> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 protected:
diff --git a/libcxx/include/__cxx03/__iterator/insert_iterator.h b/libcxx/include/__cxx03/__iterator/insert_iterator.h
index df9c6c9e1..3abeca002 100644
--- a/libcxx/include/__cxx03/__iterator/insert_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/insert_iterator.h
@@ -31,9 +31,7 @@ using __insert_iterator_iter_t = typename _Container::iterator;
 
 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _Container>
-class _LIBCPP_TEMPLATE_VIS insert_iterator
-    : public iterator<output_iterator_tag, void, void, void, void>
-{
+class _LIBCPP_TEMPLATE_VIS insert_iterator : public iterator<output_iterator_tag, void, void, void, void> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 protected:
diff --git a/libcxx/include/__cxx03/__iterator/istream_iterator.h b/libcxx/include/__cxx03/__iterator/istream_iterator.h
index 477844b8b..35c556955 100644
--- a/libcxx/include/__cxx03/__iterator/istream_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/istream_iterator.h
@@ -27,8 +27,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _Tp, class _CharT = char, class _Traits = char_traits<_CharT>, class _Distance = ptrdiff_t>
 class _LIBCPP_TEMPLATE_VIS istream_iterator
-    : public iterator<input_iterator_tag, _Tp, _Distance, const _Tp*, const _Tp&>
-{
+    : public iterator<input_iterator_tag, _Tp, _Distance, const _Tp*, const _Tp&> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 public:
diff --git a/libcxx/include/__cxx03/__iterator/istreambuf_iterator.h b/libcxx/include/__cxx03/__iterator/istreambuf_iterator.h
index f0c8693fe..b21e0bc92 100644
--- a/libcxx/include/__cxx03/__iterator/istreambuf_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/istreambuf_iterator.h
@@ -25,8 +25,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _CharT, class _Traits>
 class _LIBCPP_TEMPLATE_VIS istreambuf_iterator
-    : public iterator<input_iterator_tag, _CharT, typename _Traits::off_type, _CharT*, _CharT>
-{
+    : public iterator<input_iterator_tag, _CharT, typename _Traits::off_type, _CharT*, _CharT> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 public:
diff --git a/libcxx/include/__cxx03/__iterator/move_iterator.h b/libcxx/include/__cxx03/__iterator/move_iterator.h
index 95a364c16..200fabd42 100644
--- a/libcxx/include/__cxx03/__iterator/move_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/move_iterator.h
@@ -33,8 +33,7 @@ _LIBCPP_PUSH_MACROS
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <class _Iter>
-class _LIBCPP_TEMPLATE_VIS move_iterator
-{
+class _LIBCPP_TEMPLATE_VIS move_iterator {
 public:
   typedef _Iter iterator_type;
   typedef _If< __has_random_access_iterator_category<_Iter>::value,
diff --git a/libcxx/include/__cxx03/__iterator/ostream_iterator.h b/libcxx/include/__cxx03/__iterator/ostream_iterator.h
index 924ec6cc2..3e00ce2e6 100644
--- a/libcxx/include/__cxx03/__iterator/ostream_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/ostream_iterator.h
@@ -26,9 +26,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _Tp, class _CharT = char, class _Traits = char_traits<_CharT> >
-class _LIBCPP_TEMPLATE_VIS ostream_iterator
-    : public iterator<output_iterator_tag, void, void, void, void>
-{
+class _LIBCPP_TEMPLATE_VIS ostream_iterator : public iterator<output_iterator_tag, void, void, void, void> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 public:
diff --git a/libcxx/include/__cxx03/__iterator/ostreambuf_iterator.h b/libcxx/include/__cxx03/__iterator/ostreambuf_iterator.h
index d5b4f1d7e..27c8152a5 100644
--- a/libcxx/include/__cxx03/__iterator/ostreambuf_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/ostreambuf_iterator.h
@@ -24,9 +24,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _CharT, class _Traits>
-class _LIBCPP_TEMPLATE_VIS ostreambuf_iterator
-    : public iterator<output_iterator_tag, void, void, void, void>
-{
+class _LIBCPP_TEMPLATE_VIS ostreambuf_iterator : public iterator<output_iterator_tag, void, void, void, void> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 public:
diff --git a/libcxx/include/__cxx03/__iterator/reverse_iterator.h b/libcxx/include/__cxx03/__iterator/reverse_iterator.h
index d9664b1cf..a7037003d 100644
--- a/libcxx/include/__cxx03/__iterator/reverse_iterator.h
+++ b/libcxx/include/__cxx03/__iterator/reverse_iterator.h
@@ -42,8 +42,7 @@ class _LIBCPP_TEMPLATE_VIS reverse_iterator
                       typename iterator_traits<_Iter>::value_type,
                       typename iterator_traits<_Iter>::difference_type,
                       typename iterator_traits<_Iter>::pointer,
-                      typename iterator_traits<_Iter>::reference>
-{
+                      typename iterator_traits<_Iter>::reference> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 private:
@@ -61,7 +60,7 @@ public:
       _If<__has_random_access_iterator_category<_Iter>::value,
           random_access_iterator_tag,
           typename iterator_traits<_Iter>::iterator_category>;
-  using pointer = typename iterator_traits<_Iter>::pointer;
+  using pointer         = typename iterator_traits<_Iter>::pointer;
   using value_type      = typename iterator_traits<_Iter>::value_type;
   using difference_type = typename iterator_traits<_Iter>::difference_type;
   using reference       = typename iterator_traits<_Iter>::reference;
@@ -148,43 +147,37 @@ public:
 
 template <class _Iter1, class _Iter2>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 bool
-operator==(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
-{
+operator==(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) {
   return __x.base() == __y.base();
 }
 
 template <class _Iter1, class _Iter2>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 bool
-operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
-{
+operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) {
   return __x.base() > __y.base();
 }
 
 template <class _Iter1, class _Iter2>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 bool
-operator!=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
-{
+operator!=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) {
   return __x.base() != __y.base();
 }
 
 template <class _Iter1, class _Iter2>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 bool
-operator>(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
-{
+operator>(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) {
   return __x.base() < __y.base();
 }
 
 template <class _Iter1, class _Iter2>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 bool
-operator>=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
-{
+operator>=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) {
   return __x.base() <= __y.base();
 }
 
 template <class _Iter1, class _Iter2>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 bool
-operator<=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
-{
+operator<=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) {
   return __x.base() >= __y.base();
 }
 
diff --git a/libcxx/include/__cxx03/__memory/allocator.h b/libcxx/include/__cxx03/__memory/allocator.h
index e527c0582..a20d2354d 100644
--- a/libcxx/include/__cxx03/__memory/allocator.h
+++ b/libcxx/include/__cxx03/__memory/allocator.h
@@ -61,7 +61,7 @@ public:
     typedef allocator<_Up> other;
   };
 };
-#  endif // _LIBCPP_ENABLE_REMOVED_ALLOCATOR_CONST
+#endif // _LIBCPP_ENABLE_REMOVED_ALLOCATOR_CONST
 
 // This class provides a non-trivial default constructor to the class that derives from it
 // if the condition is satisfied.
diff --git a/libcxx/include/__cxx03/__memory/raw_storage_iterator.h b/libcxx/include/__cxx03/__memory/raw_storage_iterator.h
index 4d9facf51..f0944d332 100644
--- a/libcxx/include/__cxx03/__memory/raw_storage_iterator.h
+++ b/libcxx/include/__cxx03/__memory/raw_storage_iterator.h
@@ -29,9 +29,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _OutputIterator, class _Tp>
-class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 raw_storage_iterator
-    : public iterator<output_iterator_tag, void, void, void, void>
-{
+class _LIBCPP_TEMPLATE_VIS
+_LIBCPP_DEPRECATED_IN_CXX17 raw_storage_iterator : public iterator<output_iterator_tag, void, void, void, void> {
   _LIBCPP_SUPPRESS_DEPRECATED_POP
 
 private:
diff --git a/libcxx/include/__cxx03/__memory/shared_ptr.h b/libcxx/include/__cxx03/__memory/shared_ptr.h
index fce9e9942..91dd2fa5d 100644
--- a/libcxx/include/__cxx03/__memory/shared_ptr.h
+++ b/libcxx/include/__cxx03/__memory/shared_ptr.h
@@ -422,7 +422,7 @@ public:
 #endif // _LIBCPP_HAS_NO_EXCEPTIONS
       typedef typename __shared_ptr_default_allocator<_Yp>::type _AllocT;
       typedef __shared_ptr_pointer<_Yp*, _Dp, _AllocT> _CntrlBlk;
-    __cntrl_ = new _CntrlBlk(__p, __d, _AllocT());
+      __cntrl_ = new _CntrlBlk(__p, __d, _AllocT());
       __enable_weak_this(__p, __p);
 #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
     } catch (...) {
@@ -445,8 +445,7 @@ public:
       typedef __allocator_destructor<_A2> _D2;
       _A2 __a2(__a);
       unique_ptr<_CntrlBlk, _D2> __hold2(__a2.allocate(1), _D2(__a2, 1));
-      ::new ((void*)std::addressof(*__hold2.get()))
-        _CntrlBlk(__p, __d, __a);
+      ::new ((void*)std::addressof(*__hold2.get())) _CntrlBlk(__p, __d, __a);
       __cntrl_ = std::addressof(*__hold2.release());
       __enable_weak_this(__p, __p);
 #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
@@ -468,7 +467,7 @@ public:
 #endif // _LIBCPP_HAS_NO_EXCEPTIONS
       typedef typename __shared_ptr_default_allocator<_Tp>::type _AllocT;
       typedef __shared_ptr_pointer<nullptr_t, _Dp, _AllocT> _CntrlBlk;
-    __cntrl_ = new _CntrlBlk(__p, __d, _AllocT());
+      __cntrl_ = new _CntrlBlk(__p, __d, _AllocT());
 #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
     } catch (...) {
       __d(__p);
diff --git a/libcxx/include/__cxx03/__memory/swap_allocator.h b/libcxx/include/__cxx03/__memory/swap_allocator.h
index 7b82cef75..9288c0589 100644
--- a/libcxx/include/__cxx03/__memory/swap_allocator.h
+++ b/libcxx/include/__cxx03/__memory/swap_allocator.h
@@ -23,8 +23,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <typename _Alloc>
 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 void __swap_allocator(_Alloc& __a1, _Alloc& __a2, true_type)
-    _NOEXCEPT_(__is_nothrow_swappable_v<_Alloc>)
-{
+    _NOEXCEPT_(__is_nothrow_swappable_v<_Alloc>) {
   using std::swap;
   swap(__a1, __a2);
 }
@@ -35,8 +34,7 @@ __swap_allocator(_Alloc&, _Alloc&, false_type) _NOEXCEPT {}
 
 template <typename _Alloc>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 void __swap_allocator(_Alloc& __a1, _Alloc& __a2)
-    _NOEXCEPT_(__is_nothrow_swappable_v<_Alloc>)
-{
+    _NOEXCEPT_(__is_nothrow_swappable_v<_Alloc>) {
   std::__swap_allocator(
       __a1, __a2, integral_constant<bool, allocator_traits<_Alloc>::propagate_on_container_swap::value>());
 }
diff --git a/libcxx/include/__cxx03/__numeric/partial_sum.h b/libcxx/include/__cxx03/__numeric/partial_sum.h
index da540fa34..f8689298b 100644
--- a/libcxx/include/__cxx03/__numeric/partial_sum.h
+++ b/libcxx/include/__cxx03/__numeric/partial_sum.h
@@ -30,7 +30,7 @@ partial_sum(_InputIterator __first, _InputIterator __last, _OutputIterator __res
     typename iterator_traits<_InputIterator>::value_type __t(*__first);
     *__result = __t;
     for (++__first, (void)++__result; __first != __last; ++__first, (void)++__result) {
-      __t = __t + *__first;
+      __t       = __t + *__first;
       *__result = __t;
     }
   }
@@ -44,7 +44,7 @@ partial_sum(_InputIterator __first, _InputIterator __last, _OutputIterator __res
     typename iterator_traits<_InputIterator>::value_type __t(*__first);
     *__result = __t;
     for (++__first, (void)++__result; __first != __last; ++__first, (void)++__result) {
-      __t = __binary_op(__t, *__first);
+      __t       = __binary_op(__t, *__first);
       *__result = __t;
     }
   }
diff --git a/libcxx/include/__cxx03/__random/generate_canonical.h b/libcxx/include/__cxx03/__random/generate_canonical.h
index 3afeefe2c..543e989e6 100644
--- a/libcxx/include/__cxx03/__random/generate_canonical.h
+++ b/libcxx/include/__cxx03/__random/generate_canonical.h
@@ -28,7 +28,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 template <class _RealType, size_t __bits, class _URNG>
 _LIBCPP_HIDE_FROM_ABI _RealType generate_canonical(_URNG& __g) {
   const size_t __dt = numeric_limits<_RealType>::digits;
-  const size_t __b  = __dt < __bits ? __dt : __bits;
+  const size_t __b     = __dt < __bits ? __dt : __bits;
   const size_t __log_r = __log2<uint64_t, _URNG::_Max - _URNG::_Min + uint64_t(1)>::value;
   const size_t __k     = __b / __log_r + (__b % __log_r != 0) + (__b == 0);
   const _RealType __rp = static_cast<_RealType>(_URNG::max() - _URNG::min()) + _RealType(1);
diff --git a/libcxx/include/__cxx03/__random/independent_bits_engine.h b/libcxx/include/__cxx03/__random/independent_bits_engine.h
index 8c04cf2c2..0fe41d17c 100644
--- a/libcxx/include/__cxx03/__random/independent_bits_engine.h
+++ b/libcxx/include/__cxx03/__random/independent_bits_engine.h
@@ -57,7 +57,7 @@ private:
   typedef typename _Engine::result_type _Engine_result_type;
   typedef __conditional_t<sizeof(_Engine_result_type) <= sizeof(result_type), result_type, _Engine_result_type>
       _Working_result_type;
-  static const _Working_result_type _Rp = _Engine::_Max - _Engine::_Min + _Working_result_type(1);
+  static const _Working_result_type _Rp                    = _Engine::_Max - _Engine::_Min + _Working_result_type(1);
   static _LIBCPP_CONSTEXPR const size_t __m                = __log2<_Working_result_type, _Rp>::value;
   static _LIBCPP_CONSTEXPR const size_t __n                = __get_n<_Working_result_type, _Rp, __w, __m>::value;
   static _LIBCPP_CONSTEXPR const size_t __w0               = __w / __n;
diff --git a/libcxx/include/__cxx03/__random/uniform_int_distribution.h b/libcxx/include/__cxx03/__random/uniform_int_distribution.h
index 554577489..93b04d397 100644
--- a/libcxx/include/__cxx03/__random/uniform_int_distribution.h
+++ b/libcxx/include/__cxx03/__random/uniform_int_distribution.h
@@ -50,7 +50,7 @@ private:
   _Engine_result_type __mask0_;
   _Engine_result_type __mask1_;
 
-  static const _Working_result_type _Rp = _Engine::_Max - _Engine::_Min + _Working_result_type(1);
+  static const _Working_result_type _Rp      = _Engine::_Max - _Engine::_Min + _Working_result_type(1);
   static _LIBCPP_CONSTEXPR const size_t __m  = __log2<_Working_result_type, _Rp>::value;
   static _LIBCPP_CONSTEXPR const size_t _WDt = numeric_limits<_Working_result_type>::digits;
   static _LIBCPP_CONSTEXPR const size_t _EDt = numeric_limits<_Engine_result_type>::digits;
diff --git a/libcxx/include/__cxx03/__string/constexpr_c_functions.h b/libcxx/include/__cxx03/__string/constexpr_c_functions.h
index 508f47309..95ab64011 100644
--- a/libcxx/include/__cxx03/__string/constexpr_c_functions.h
+++ b/libcxx/include/__cxx03/__string/constexpr_c_functions.h
@@ -129,7 +129,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp* __constexpr_memchr(_Tp*
                 "Calling memchr on non-trivially equality comparable types is unsafe.");
 
   if (__libcpp_is_constant_evaluated()) {
-// use __builtin_char_memchr to optimize constexpr evaluation if we can
+    // use __builtin_char_memchr to optimize constexpr evaluation if we can
 
     for (; __count; --__count) {
       if (*__str == __value)
diff --git a/libcxx/include/__cxx03/__tree b/libcxx/include/__cxx03/__tree
index b1d43b4e2..2a4a6e986 100644
--- a/libcxx/include/__cxx03/__tree
+++ b/libcxx/include/__cxx03/__tree
@@ -1498,8 +1498,7 @@ void __tree<_Tp, _Compare, _Allocator>::destroy(__node_pointer __nd) _NOEXCEPT {
 template <class _Tp, class _Compare, class _Allocator>
 void __tree<_Tp, _Compare, _Allocator>::swap(__tree& __t)
     _NOEXCEPT_(__is_nothrow_swappable_v<value_compare> &&
-               (!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>))
-{
+               (!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>)) {
   using std::swap;
   swap(__begin_node_, __t.__begin_node_);
   swap(__pair1_.first(), __t.__pair1_.first());
diff --git a/libcxx/include/__cxx03/bitset b/libcxx/include/__cxx03/bitset
index 7d22f8e45..a68c656a5 100644
--- a/libcxx/include/__cxx03/bitset
+++ b/libcxx/include/__cxx03/bitset
@@ -233,8 +233,7 @@ private:
 };
 
 template <size_t _N_words, size_t _Size>
-inline _LIBCPP_CONSTEXPR __bitset<_N_words, _Size>::__bitset() _NOEXCEPT
-{
+inline _LIBCPP_CONSTEXPR __bitset<_N_words, _Size>::__bitset() _NOEXCEPT {
   std::fill_n(__first_, _N_words, __storage_type(0));
 }
 
@@ -263,8 +262,7 @@ inline _LIBCPP_HIDE_FROM_ABI void __bitset<_N_words, _Size>::__init(unsigned lon
 }
 
 template <size_t _N_words, size_t _Size>
-inline _LIBCPP_CONSTEXPR __bitset<_N_words, _Size>::__bitset(unsigned long long __v) _NOEXCEPT
-{
+inline _LIBCPP_CONSTEXPR __bitset<_N_words, _Size>::__bitset(unsigned long long __v) _NOEXCEPT {
   __init(__v, integral_constant<bool, sizeof(unsigned long long) == sizeof(__storage_type)>());
 }
 
@@ -598,9 +596,8 @@ public:
   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 explicit bitset(
       const _CharT* __str,
       typename basic_string<_CharT>::size_type __n = basic_string<_CharT>::npos,
-      _CharT __zero = _CharT('0'),
-      _CharT __one  = _CharT('1')) {
-
+      _CharT __zero                                = _CharT('0'),
+      _CharT __one                                 = _CharT('1')) {
     size_t __rlen = std::min(__n, char_traits<_CharT>::length(__str));
     __init_from_string_view(basic_string_view<_CharT>(__str, __rlen), __zero, __one);
   }
diff --git a/libcxx/include/__cxx03/deque b/libcxx/include/__cxx03/deque
index 44b31006e..d37f77e2e 100644
--- a/libcxx/include/__cxx03/deque
+++ b/libcxx/include/__cxx03/deque
@@ -2065,8 +2065,7 @@ void deque<_Tp, _Allocator>::__erase_to_end(const_iterator __f) {
 
 template <class _Tp, class _Allocator>
 inline void deque<_Tp, _Allocator>::swap(deque& __c)
-    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>)
-{
+    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>) {
   __map_.swap(__c.__map_);
   std::swap(__start_, __c.__start_);
   std::swap(__size(), __c.__size());
diff --git a/libcxx/include/__cxx03/forward_list b/libcxx/include/__cxx03/forward_list
index 40e069bce..5090ed1ae 100644
--- a/libcxx/include/__cxx03/forward_list
+++ b/libcxx/include/__cxx03/forward_list
@@ -559,8 +559,7 @@ __forward_list_base<_Tp, _Alloc>::~__forward_list_base() {
 
 template <class _Tp, class _Alloc>
 inline void __forward_list_base<_Tp, _Alloc>::swap(__forward_list_base& __x)
-    _NOEXCEPT_(!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>)
-{
+    _NOEXCEPT_(!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>) {
   std::__swap_allocator(
       __alloc(), __x.__alloc(), integral_constant<bool, __node_traits::propagate_on_container_swap::value>());
   using std::swap;
@@ -684,8 +683,7 @@ public:
   _LIBCPP_HIDE_FROM_ABI iterator erase_after(const_iterator __f, const_iterator __l);
 
   _LIBCPP_HIDE_FROM_ABI void swap(forward_list& __x)
-      _NOEXCEPT_(!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>)
-  {
+      _NOEXCEPT_(!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>) {
     base::swap(__x);
   }
 
diff --git a/libcxx/include/__cxx03/fstream b/libcxx/include/__cxx03/fstream
index 83c221aa2..44bdabc46 100644
--- a/libcxx/include/__cxx03/fstream
+++ b/libcxx/include/__cxx03/fstream
@@ -217,7 +217,6 @@ _LIBCPP_PUSH_MACROS
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
-
 template <class _CharT, class _Traits>
 class _LIBCPP_TEMPLATE_VIS basic_filebuf : public basic_streambuf<_CharT, _Traits> {
 public:
diff --git a/libcxx/include/__cxx03/list b/libcxx/include/__cxx03/list
index 68d1e06b4..037067d53 100644
--- a/libcxx/include/__cxx03/list
+++ b/libcxx/include/__cxx03/list
@@ -597,8 +597,7 @@ void __list_imp<_Tp, _Alloc>::clear() _NOEXCEPT {
 
 template <class _Tp, class _Alloc>
 void __list_imp<_Tp, _Alloc>::swap(__list_imp& __c)
-    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>)
-{
+    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>) {
   _LIBCPP_ASSERT_COMPATIBLE_ALLOCATOR(
       __alloc_traits::propagate_on_container_swap::value || this->__node_alloc() == __c.__node_alloc(),
       "list::swap: Either propagate_on_container_swap must be true"
@@ -722,8 +721,8 @@ public:
   _LIBCPP_HIDE_FROM_ABI iterator insert(const_iterator __p, _InpIter __f, _InpIter __l);
 
   _LIBCPP_HIDE_FROM_ABI void swap(list& __c)
-      _NOEXCEPT_(!__node_alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>)
-  {
+      _NOEXCEPT_(!__node_alloc_traits::propagate_on_container_swap::value ||
+                 __is_nothrow_swappable_v<__node_allocator>) {
     base::swap(__c);
   }
   _LIBCPP_HIDE_FROM_ABI void clear() _NOEXCEPT { base::clear(); }
diff --git a/libcxx/include/__cxx03/new b/libcxx/include/__cxx03/new
index c9994c876..5a8550c30 100644
--- a/libcxx/include/__cxx03/new
+++ b/libcxx/include/__cxx03/new
@@ -181,7 +181,7 @@ enum align_val_t { __zero = 0, __max = (size_t)-1 };
 #endif
 } // namespace std
 
-#  define _THROW_BAD_ALLOC throw(std::bad_alloc)
+#define _THROW_BAD_ALLOC throw(std::bad_alloc)
 
 #if !defined(_LIBCPP_ABI_VCRUNTIME)
 
diff --git a/libcxx/include/__cxx03/string b/libcxx/include/__cxx03/string
index 209ccc98c..574c1ac0a 100644
--- a/libcxx/include/__cxx03/string
+++ b/libcxx/include/__cxx03/string
@@ -2989,8 +2989,7 @@ basic_string<_CharT, _Traits, _Allocator>::copy(value_type* __s, size_type __n,
 
 template <class _CharT, class _Traits, class _Allocator>
 inline _LIBCPP_CONSTEXPR_SINCE_CXX20 void basic_string<_CharT, _Traits, _Allocator>::swap(basic_string& __str)
-    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>)
-{
+    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>) {
   _LIBCPP_ASSERT_COMPATIBLE_ALLOCATOR(
       __alloc_traits::propagate_on_container_swap::value || __alloc_traits::is_always_equal::value ||
           __alloc() == __str.__alloc(),
diff --git a/libcxx/include/__cxx03/vector b/libcxx/include/__cxx03/vector
index 7b82e0c88..5047ed743 100644
--- a/libcxx/include/__cxx03/vector
+++ b/libcxx/include/__cxx03/vector
@@ -412,8 +412,7 @@ public:
       _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value) {}
   _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI explicit vector(const allocator_type& __a)
       _NOEXCEPT_(is_nothrow_copy_constructible<allocator_type>::value)
-      : __end_cap_(nullptr, __a) {
-  }
+      : __end_cap_(nullptr, __a) {}
 
   _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI explicit vector(size_type __n) {
     auto __guard = std::__make_exception_guard(__destroy_vector(*this));
@@ -594,9 +593,7 @@ public:
   _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void push_back(value_type&& __x);
 
   template <class... _Args>
-  _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI
-  void
-  emplace_back(_Args&&... __args);
+  _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void emplace_back(_Args&&... __args);
 
   _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void pop_back();
 
@@ -1370,9 +1367,7 @@ vector<_Tp, _Allocator>::__emplace_back_slow_path(_Args&&... __args) {
 
 template <class _Tp, class _Allocator>
 template <class... _Args>
-_LIBCPP_CONSTEXPR_SINCE_CXX20 inline
-    void
-    vector<_Tp, _Allocator>::emplace_back(_Args&&... __args) {
+_LIBCPP_CONSTEXPR_SINCE_CXX20 inline void vector<_Tp, _Allocator>::emplace_back(_Args&&... __args) {
   pointer __end = this->__end_;
   if (__end < this->__end_cap()) {
     __construct_one_at_end(std::forward<_Args>(__args)...);
@@ -1629,8 +1624,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 void vector<_Tp, _Allocator>::resize(size_type __s
 
 template <class _Tp, class _Allocator>
 _LIBCPP_CONSTEXPR_SINCE_CXX20 void vector<_Tp, _Allocator>::swap(vector& __x)
-    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>)
-{
+    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>) {
   _LIBCPP_ASSERT_COMPATIBLE_ALLOCATOR(
       __alloc_traits::propagate_on_container_swap::value || this->__alloc() == __x.__alloc(),
       "vector::swap: Either propagate_on_container_swap must be true"
@@ -2079,8 +2073,7 @@ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 vector<bool, _Allocat
 template <class _Allocator>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 vector<bool, _Allocator>::vector(const allocator_type& __a)
     _NOEXCEPT_(is_nothrow_copy_constructible<allocator_type>::value)
-    : __begin_(nullptr), __size_(0), __cap_alloc_(0, static_cast<__storage_allocator>(__a)) {
-}
+    : __begin_(nullptr), __size_(0), __cap_alloc_(0, static_cast<__storage_allocator>(__a)) {}
 
 template <class _Allocator>
 _LIBCPP_CONSTEXPR_SINCE_CXX20 vector<bool, _Allocator>::vector(size_type __n)
@@ -2181,9 +2174,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 vector<bool, _Allocator>& vector<bool, _Allocator>
 template <class _Allocator>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 vector<bool, _Allocator>::vector(vector&& __v)
     _NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value)
-    : __begin_(__v.__begin_),
-      __size_(__v.__size_),
-      __cap_alloc_(std::move(__v.__cap_alloc_)) {
+    : __begin_(__v.__begin_), __size_(__v.__size_), __cap_alloc_(std::move(__v.__cap_alloc_)) {
   __v.__begin_ = nullptr;
   __v.__size_  = 0;
   __v.__cap()  = 0;
@@ -2475,8 +2466,7 @@ vector<bool, _Allocator>::erase(const_iterator __first, const_iterator __last) {
 
 template <class _Allocator>
 _LIBCPP_CONSTEXPR_SINCE_CXX20 void vector<bool, _Allocator>::swap(vector& __x)
-    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>)
-{
+    _NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>) {
   std::swap(this->__begin_, __x.__begin_);
   std::swap(this->__size_, __x.__size_);
   std::swap(this->__cap(), __x.__cap());

``````````

</details>


https://github.com/llvm/llvm-project/pull/134045


More information about the llvm-branch-commits mailing list