[libcxx-commits] [libcxx] [libc++] Refactor basic_string::__grow_by calls (PR #126034)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 6 03:36:27 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 4562efc674a5b5e052abdfc40047e82a359d0df0 05b23a9df84031c287dbad0952b8a1f39a425b41 --extensions -- libcxx/include/string
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/string b/libcxx/include/string
index 829723ebd5..1dc039821c 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -2605,7 +2605,7 @@ void _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI basic_string<_CharT, _T
auto __guard = std::__make_scope_guard(__annotate_new_size(*this));
auto __old_cap = capacity();
- auto __old_sz = size();
+ auto __old_sz = size();
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
__grow_by(__old_cap, __new_cap - __old_cap, __old_sz, __n_copy, __n_del, __n_add);
_LIBCPP_SUPPRESS_DEPRECATED_POP
``````````
</details>
https://github.com/llvm/llvm-project/pull/126034
More information about the libcxx-commits
mailing list