[libcxx-commits] [libcxx] [libc++] Fix basic_string not allowing max_size() elements to be stored (PR #125423)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Feb 2 09:13:29 PST 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 6dd07b17c7ff8e61073a7732e09fa828a64f7bec d49f406148c3ad347501331f89a4e059c32d2f73 --extensions ,cpp,h -- libcxx/include/string libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/max_size.pass.cpp libcxx/test/std/strings/basic.string/string.capacity/resize_size.pass.cpp libcxx/test/support/min_allocator.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/support/min_allocator.h b/libcxx/test/support/min_allocator.h
index f050267dc4..1463be722e 100644
--- a/libcxx/test/support/min_allocator.h
+++ b/libcxx/test/support/min_allocator.h
@@ -483,7 +483,7 @@ public:
template <std::size_t MaxSize, class T>
struct tiny_size_allocator {
using value_type = T;
- using size_type = unsigned;
+ using size_type = unsigned;
template <class U>
struct rebind {
``````````
</details>
https://github.com/llvm/llvm-project/pull/125423
More information about the libcxx-commits
mailing list