[libcxx-commits] [libcxx] Refactor vector constructors to eliminate code duplication (PR #113193)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 21 10:55:11 PDT 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 7eb8238a32516008476b717bc6a2be8c59f7f535 e9ec47b71e2a714717ef8d8d075f5c4475d1e5ae --extensions -- libcxx/include/vector
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/vector b/libcxx/include/vector
index 5ee2ca5275..e9f6135c20 100644
--- a/libcxx/include/vector
+++ b/libcxx/include/vector
@@ -1299,7 +1299,8 @@ template <class _Tp, class _Allocator>
_LIBCPP_CONSTEXPR_SINCE_CXX20 inline _LIBCPP_HIDE_FROM_ABI
vector<_Tp, _Allocator>::vector(initializer_list<value_type> __il, const allocator_type& __a)
: __alloc_(__a) {
- __init_with_size(__il.begin(), __il.end(), __il.size());;
+ __init_with_size(__il.begin(), __il.end(), __il.size());
+ ;
}
#endif // _LIBCPP_CXX03_LANG
``````````
</details>
https://github.com/llvm/llvm-project/pull/113193
More information about the libcxx-commits
mailing list