[libcxx-commits] [libcxx] [String] Allow fancy pointer as pointer type of basic_string allocator (PR #71182)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 3 07:00:15 PDT 2023


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 6e4692c9ee8718eed19288f0e5b2d9d6655cb56d 87be5bc65c9b9b2533f27cd32f55e4e40e5a4f09 -- libcxx/test/libcxx/strings/basic.string/alignof.compile.pass.cpp libcxx/test/libcxx/strings/basic.string/sizeof.compile.pass.cpp libcxx/test/libcxx/strings/basic.string/string.access/assert.back.pass.cpp libcxx/test/libcxx/strings/basic.string/string.access/assert.cback.pass.cpp libcxx/test/libcxx/strings/basic.string/string.access/assert.cfront.pass.cpp libcxx/test/libcxx/strings/basic.string/string.access/assert.cindex.pass.cpp libcxx/test/libcxx/strings/basic.string/string.access/assert.front.pass.cpp libcxx/test/libcxx/strings/basic.string/string.access/assert.index.pass.cpp libcxx/test/libcxx/strings/basic.string/string.capacity/PR53170.pass.cpp libcxx/test/libcxx/strings/basic.string/string.cons/copy_shrunk_long.pass.cpp libcxx/test/libcxx/strings/basic.string/string.iterators/debug.iterator.add.pass.cpp libcxx/test/libcxx/strings/basic.string/string.iterators/debug.iterator.compare.pass.cpp libcxx/test/libcxx/strings/basic.string/string.iterators/debug.iterator.decrement.pass.cpp libcxx/test/libcxx/strings/basic.string/string.iterators/debug.iterator.dereference.pass.cpp libcxx/test/libcxx/strings/basic.string/string.iterators/debug.iterator.increment.pass.cpp libcxx/test/libcxx/strings/basic.string/string.iterators/debug.iterator.index.pass.cpp libcxx/test/libcxx/strings/basic.string/string.iterators/debug.iterator.subtract.pass.cpp libcxx/test/libcxx/strings/basic.string/string.modifiers/assert.erase_iter.null.pass.cpp libcxx/test/libcxx/strings/basic.string/string.modifiers/assert.pop_back.pass.cpp libcxx/test/libcxx/strings/basic.string/string.modifiers/debug.erase.iter.pass.cpp libcxx/test/libcxx/strings/basic.string/string.modifiers/debug.erase.iter_iter.pass.cpp libcxx/test/libcxx/strings/basic.string/string.modifiers/debug.insert.iter_char.pass.cpp libcxx/test/libcxx/strings/basic.string/string.modifiers/debug.insert.iter_iter_iter.pass.cpp libcxx/test/libcxx/strings/basic.string/string.modifiers/debug.insert.iter_size_char.pass.cpp libcxx/test/libcxx/strings/basic.string/string.modifiers/resize_default_initialized.pass.cpp libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp libcxx/test/std/strings/basic.string/string.access/at.pass.cpp libcxx/test/std/strings/basic.string/string.access/back.pass.cpp libcxx/test/std/strings/basic.string/string.access/front.pass.cpp libcxx/test/std/strings/basic.string/string.access/index.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/clear.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/empty.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/length.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/max_size.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/over_max_size.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/reserve.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/reserve_size.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/resize_and_overwrite.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/resize_size.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/resize_size_char.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/shrink_to_fit.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/size.pass.cpp libcxx/test/std/strings/basic.string/string.cons/T_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.cons/alloc.pass.cpp libcxx/test/std/strings/basic.string/string.cons/char_assignment.pass.cpp libcxx/test/std/strings/basic.string/string.cons/copy.pass.cpp libcxx/test/std/strings/basic.string/string.cons/copy_alloc.pass.cpp libcxx/test/std/strings/basic.string/string.cons/copy_assignment.pass.cpp libcxx/test/std/strings/basic.string/string.cons/default.pass.cpp libcxx/test/std/strings/basic.string/string.cons/dtor.pass.cpp libcxx/test/std/strings/basic.string/string.cons/initializer_list.pass.cpp libcxx/test/std/strings/basic.string/string.cons/initializer_list_assignment.pass.cpp libcxx/test/std/strings/basic.string/string.cons/iter_alloc.pass.cpp libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.pass.cpp libcxx/test/std/strings/basic.string/string.cons/move.pass.cpp libcxx/test/std/strings/basic.string/string.cons/move_alloc.pass.cpp libcxx/test/std/strings/basic.string/string.cons/move_assign_noexcept.pass.cpp libcxx/test/std/strings/basic.string/string.cons/move_assignment.pass.cpp libcxx/test/std/strings/basic.string/string.cons/move_noexcept.pass.cpp libcxx/test/std/strings/basic.string/string.cons/pointer_alloc.pass.cpp libcxx/test/std/strings/basic.string/string.cons/pointer_assignment.pass.cpp libcxx/test/std/strings/basic.string/string.cons/pointer_size_alloc.pass.cpp libcxx/test/std/strings/basic.string/string.cons/size_char_alloc.pass.cpp libcxx/test/std/strings/basic.string/string.cons/string_view.pass.cpp libcxx/test/std/strings/basic.string/string.cons/string_view_assignment.pass.cpp libcxx/test/std/strings/basic.string/string.cons/string_view_deduction.pass.cpp libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.pass.cpp libcxx/test/std/strings/basic.string/string.cons/substr.pass.cpp libcxx/test/std/strings/basic.string/string.cons/substr_rvalue.pass.cpp libcxx/test/std/strings/basic.string/string.contains/contains.char.pass.cpp libcxx/test/std/strings/basic.string/string.contains/contains.ptr.pass.cpp libcxx/test/std/strings/basic.string/string.contains/contains.string_view.pass.cpp libcxx/test/std/strings/basic.string/string.ends_with/ends_with.char.pass.cpp libcxx/test/std/strings/basic.string/string.ends_with/ends_with.ptr.pass.cpp libcxx/test/std/strings/basic.string/string.ends_with/ends_with.string_view.pass.cpp libcxx/test/std/strings/basic.string/string.iterators/begin.pass.cpp libcxx/test/std/strings/basic.string/string.iterators/cbegin.pass.cpp libcxx/test/std/strings/basic.string/string.iterators/cend.pass.cpp libcxx/test/std/strings/basic.string/string.iterators/crbegin.pass.cpp libcxx/test/std/strings/basic.string/string.iterators/crend.pass.cpp libcxx/test/std/strings/basic.string/string.iterators/end.pass.cpp libcxx/test/std/strings/basic.string/string.iterators/rbegin.pass.cpp libcxx/test/std/strings/basic.string/string.iterators/rend.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/robust_against_adl.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/T_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/initializer_list.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/iterator.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/pointer.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/push_back.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/size_char.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/string.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/string_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_append/string_view.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/T_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/initializer_list.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/iterator.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/pointer.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/rv_string.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/size_char.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/string.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/string_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_assign/string_view.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_copy/copy.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_erase/iter.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_erase/iter_iter.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_erase/pop_back.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_erase/size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/iter_char.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/iter_initializer_list.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/iter_iter_iter.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/iter_size_char.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/size_T_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/size_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/size_pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/size_size_char.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/size_string.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/size_string_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_insert/string_view.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_op_plus_equal/char.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_op_plus_equal/initializer_list.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_op_plus_equal/pointer.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_op_plus_equal/string.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_initializer_list.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_size_char.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_string.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_T_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_size_char.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_string.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_string_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_swap/swap.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string.io/get_line.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string.io/get_line_delim.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string.io/get_line_delim_rv.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string.io/get_line_rv.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string.io/stream_extract.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string.io/stream_insert.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string.special/swap.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op!=/pointer_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op!=/string_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op!=/string_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op!=/string_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op!=/string_view_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/char_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/pointer_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string_char.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_operator==/pointer_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_operator==/string_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_operator==/string_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_operator==/string_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_operator==/string_view_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt/pointer_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt/string_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt/string_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt/string_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt/string_view_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt=/pointer_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt=/string_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt=/string_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt=/string_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_opgt=/string_view_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt/pointer_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt/string_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt/string_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt/string_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt/string_view_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt=/pointer_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt=/string_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt=/string_string.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt=/string_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.nonmembers/string_oplt=/string_view_string.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string.accessors/c_str.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string.accessors/data.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string.accessors/get_allocator.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/pointer.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_T_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_pointer.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string_view.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/string.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_compare/string_view.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/char_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/pointer_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/string_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/string_view_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/char_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/pointer_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/string_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/string_view_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/char_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/pointer_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/string_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/string_view_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/char_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/pointer_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/string_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/string_view_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find/char_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find/pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find/pointer_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find/string_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_find/string_view_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_rfind/char_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_rfind/pointer_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_rfind/pointer_size_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_rfind/string_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_rfind/string_view_size.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_substr/substr.pass.cpp libcxx/test/std/strings/basic.string/string.ops/string_substr/substr_rvalue.pass.cpp libcxx/test/std/strings/basic.string/string.require/contiguous.pass.cpp libcxx/test/std/strings/basic.string/string.starts_with/starts_with.char.pass.cpp libcxx/test/std/strings/basic.string/string.starts_with/starts_with.ptr.pass.cpp libcxx/test/std/strings/basic.string/string.starts_with/starts_with.string_view.pass.cpp libcxx/test/std/strings/basic.string/types.pass.cpp libcxx/test/std/strings/strings.erasure/erase.pass.cpp libcxx/test/std/strings/strings.erasure/erase_if.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/strings/basic.string/string.cons/dtor.pass.cpp b/libcxx/test/std/strings/basic.string/string.cons/dtor.pass.cpp
index 82f60cf07f98..ab799e809048 100644
--- a/libcxx/test/std/strings/basic.string/string.cons/dtor.pass.cpp
+++ b/libcxx/test/std/strings/basic.string/string.cons/dtor.pass.cpp
@@ -36,8 +36,9 @@ std::wstring unused_wide_string;
 static_assert(std::is_nothrow_destructible<std::string>::value, "");
 static_assert(
     std::is_nothrow_destructible< std::basic_string<char, std::char_traits<char>, test_allocator<char>>>::value, "");
-static_assert(
-    std::is_nothrow_destructible< std::basic_string<char, std::char_traits<char>, fancy_pointer_allocator<char>>>::value, "");
+static_assert(std::is_nothrow_destructible<
+                  std::basic_string<char, std::char_traits<char>, fancy_pointer_allocator<char>>>::value,
+              "");
 LIBCPP_STATIC_ASSERT(
     !std::is_nothrow_destructible< std::basic_string<char, std::char_traits<char>, throwing_alloc<char>>>::value, "");
 
diff --git a/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.pass.cpp b/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.pass.cpp
index 7424ffb4a5d6..9d0b76a4ff46 100644
--- a/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.pass.cpp
+++ b/libcxx/test/std/strings/basic.string/string.cons/iter_alloc_deduction.pass.cpp
@@ -98,7 +98,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
     static_assert(std::is_same_v<S::allocator_type, min_allocator<char16_t>>, "");
     assert(s1.size() == 10);
     assert(s1.compare(0, s1.size(), s, s1.size()) == 0);
-  }  
+  }
   {
     const char16_t* s = u"12345678901234";
     std::basic_string s1{s, s + 10, fancy_pointer_allocator<char16_t>{}};
diff --git a/libcxx/test/std/strings/basic.string/string.cons/string_view_deduction.pass.cpp b/libcxx/test/std/strings/basic.string/string.cons/string_view_deduction.pass.cpp
index 0b12dae87bfd..a5287a233213 100644
--- a/libcxx/test/std/strings/basic.string/string.cons/string_view_deduction.pass.cpp
+++ b/libcxx/test/std/strings/basic.string/string.cons/string_view_deduction.pass.cpp
@@ -86,7 +86,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
     static_assert(std::is_same_v<S::allocator_type, test_allocator<wchar_t>>, "");
     assert(s1.size() == sv.size());
     assert(s1.compare(0, s1.size(), sv.data(), s1.size()) == 0);
-  }  
+  }
   {
     std::wstring_view sv = L"12345678901234";
     std::basic_string s1{sv, fancy_pointer_allocator<wchar_t>{}};
@@ -108,7 +108,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
     static_assert(std::is_same_v<S::allocator_type, min_allocator<char8_t>>, "");
     assert(s1.size() == sv.size());
     assert(s1.compare(0, s1.size(), sv.data(), s1.size()) == 0);
-  }  
+  }
   {
     std::u8string_view sv = u8"12345678901234";
     std::basic_string s1{sv, fancy_pointer_allocator<char8_t>{}};

``````````

</details>


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


More information about the libcxx-commits mailing list