[libcxx-commits] [libcxx] [libc++] Update the status for lwg-3143 (PR #116971)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 15 01:58:09 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 cpp -- libcxx/test/std/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.mem/allocate_growth_factor.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.mem/allocate_growth_factor.pass.cpp b/libcxx/test/std/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.mem/allocate_growth_factor.pass.cpp
index 282ef436a..5b8e7f67d 100644
--- a/libcxx/test/std/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.mem/allocate_growth_factor.pass.cpp
+++ b/libcxx/test/std/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.mem/allocate_growth_factor.pass.cpp
@@ -43,14 +43,14 @@ void test_growth_factor() {
next_buffer_size = globalMemCounter.last_new_size + 1;
#ifdef _LIBCPP_VERSION
- {
- constexpr auto foot_size{4 * sizeof(void*)};
- // LWG 3143: https://cplusplus.github.io/LWG/issue3143
- // Since implementations does geometric progression.
- // a libc++ specific test.
- next_buffer_size = next_buffer_size * 2 - foot_size;
- assert(globalMemCounter.last_new_size == next_buffer_size);
- }
+ {
+ constexpr auto foot_size{4 * sizeof(void*)};
+ // LWG 3143: https://cplusplus.github.io/LWG/issue3143
+ // Since implementations does geometric progression.
+ // a libc++ specific test.
+ next_buffer_size = next_buffer_size * 2 - foot_size;
+ assert(globalMemCounter.last_new_size == next_buffer_size);
+ }
#endif // _LIBCPP_VERSION
new_called += 1;
``````````
</details>
https://github.com/llvm/llvm-project/pull/116971
More information about the libcxx-commits
mailing list