[libcxx-commits] [libcxx] Change 'grow_by' to use precise size for the first SSO --> long allocation (PR #69967)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 23 13:49:24 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 853fb0a8ac053a31fef3405d1d4dd545ad9a6167 83edeb004fe3fd8aa3c636490758c4e999ebe4a8 -- libcxx/test/libcxx/strings/basic.string/string.capacity/allocation_size.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/libcxx/strings/basic.string/string.capacity/allocation_size.pass.cpp b/libcxx/test/libcxx/strings/basic.string/string.capacity/allocation_size.pass.cpp
index 787e99172587..c65c76bcba3d 100644
--- a/libcxx/test/libcxx/strings/basic.string/string.capacity/allocation_size.pass.cpp
+++ b/libcxx/test/libcxx/strings/basic.string/string.capacity/allocation_size.pass.cpp
@@ -42,7 +42,6 @@ void test_size_wrt_alignment() {
   }
 }
 
-
 void test_resize_from_small_size() {
   // Test that we don't waste additional bytes when growing from the SSO
   // to a specific size. The size of the SSO is an implementation detail

``````````

</details>


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


More information about the libcxx-commits mailing list