[libcxx-commits] [libcxx] [libc++] Remove some of the uses of aligned_storage inside the library (PR #161635)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 2 00:40:01 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 origin/main HEAD --extensions ,h -- libcxx/include/__memory/temp_value.h libcxx/include/any libcxx/include/future
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libcxx/include/any b/libcxx/include/any
index b523a9c0f..7cf35b2aa 100644
--- a/libcxx/include/any
+++ b/libcxx/include/any
@@ -147,7 +147,7 @@ template <class _ValueType>
 _LIBCPP_HIDE_FROM_ABI add_pointer_t<_ValueType> any_cast(any*) _NOEXCEPT;
 
 namespace __any_imp {
-inline constexpr size_t __small_buffer_size = 3 * sizeof(void*);
+inline constexpr size_t __small_buffer_size      = 3 * sizeof(void*);
 inline constexpr size_t __small_buffer_alignment = alignof(void*);
 
 template <class _Tp>

``````````

</details>


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


More information about the libcxx-commits mailing list