[libcxx-commits] [libcxx] [libc++] Slightly simplify max_size and add new tests for vector (PR #119990)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Dec 14 16:06:06 PST 2024


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 99354f968f64659cbad5c82b0301d851ae54f057 d14c53b55a899e356b5351f673625b6f61fbfb1c --extensions cpp,h -- libcxx/test/std/containers/sequences/vector.bool/max_size.pass.cpp libcxx/test/support/sized_allocator.h libcxx/include/__vector/vector_bool.h libcxx/test/std/containers/sequences/vector/vector.capacity/max_size.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/containers/sequences/vector/vector.capacity/max_size.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.capacity/max_size.pass.cpp
index f74407fb9b..d8136fb922 100644
--- a/libcxx/test/std/containers/sequences/vector/vector.capacity/max_size.pass.cpp
+++ b/libcxx/test/std/containers/sequences/vector/vector.capacity/max_size.pass.cpp
@@ -80,7 +80,7 @@ TEST_CONSTEXPR_CXX20 bool tests() {
     test(std::vector<int, limited_allocator<int, static_cast<std::size_t>(-1) / 2> >());
     test(std::vector<int, limited_allocator<int, static_cast<std::size_t>(-1) / 4> >());
   }
-  
+
 #endif
 
   return true;

``````````

</details>


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


More information about the libcxx-commits mailing list