[libcxx-commits] [libcxx] [libc++] Add an ABI setting to harden unique_ptr<T[]>::operator[] (PR #91798)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri May 10 12:44:00 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 9232591b04d7a4586e88bdbd1c3e513775c73560 4841e1ace455896561860283603dd412142ac4bf -- libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/assert.subscript.pass.cpp libcxx/include/__config libcxx/include/__memory/unique_ptr.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__memory/unique_ptr.h b/libcxx/include/__memory/unique_ptr.h
index 2ad28e25a7..bacd2a9e29 100644
--- a/libcxx/include/__memory/unique_ptr.h
+++ b/libcxx/include/__memory/unique_ptr.h
@@ -415,8 +415,8 @@ public:
// Constructor used by make_unique & friends to pass the size that was allocated
template <class _Ptr>
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 explicit unique_ptr(
- __private_constructor_tag, _Ptr __ptr, size_t __size) _NOEXCEPT
+ _LIBCPP_HIDE_FROM_ABI
+ _LIBCPP_CONSTEXPR_SINCE_CXX23 explicit unique_ptr(__private_constructor_tag, _Ptr __ptr, size_t __size) _NOEXCEPT
: __ptr_(__ptr, __value_init_tag())
#ifdef _LIBCPP_ABI_BOUNDED_UNIQUE_PTR
,
``````````
</details>
https://github.com/llvm/llvm-project/pull/91798
More information about the libcxx-commits
mailing list