[libcxx-commits] [libcxx] [WG21] Draft PR for discussion of the P2687 trivial relocation approach (PR #116714)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 27 11:55:19 PST 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 632c5d29919ce93dc5f33fd729a0b97adc7c831b 892ed1badb94a4c165339a816cd24f45462638da --extensions ,cpp,h -- libcxx/include/__memory/destroy.h libcxx/include/__memory/is_trivially_allocator_relocatable.h libcxx/include/__memory/relocate_at.h libcxx/include/__memory/uninitialized_relocate.h libcxx/include/__type_traits/is_replaceable.h libcxx/test/libcxx/memory/uninitialized_allocator_relocate.pass.cpp libcxx/test/libcxx/type_traits/is_replaceable.compile.pass.cpp libcxx/test/std/containers/sequences/vector/addressof.compile.pass.cpp libcxx/include/__exception/exception_ptr.h libcxx/include/__expected/expected.h libcxx/include/__locale libcxx/include/__memory/construct_at.h libcxx/include/__memory/ranges_construct_at.h libcxx/include/__memory/shared_ptr.h libcxx/include/__memory/temp_value.h libcxx/include/__memory/uninitialized_algorithms.h libcxx/include/__memory/unique_ptr.h libcxx/include/__pstl/backends/libdispatch.h libcxx/include/__split_buffer libcxx/include/__utility/pair.h libcxx/include/__vector/vector.h libcxx/include/array libcxx/include/deque libcxx/include/optional libcxx/include/string libcxx/include/tuple libcxx/include/variant libcxx/test/std/containers/sequences/vector/vector.modifiers/common.h libcxx/test/std/containers/sequences/vector/vector.modifiers/emplace.pass.cpp libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__memory/uninitialized_algorithms.h b/libcxx/include/__memory/uninitialized_algorithms.h
index 6e4951813e..68e1e4cfd7 100644
--- a/libcxx/include/__memory/uninitialized_algorithms.h
+++ b/libcxx/include/__memory/uninitialized_algorithms.h
@@ -18,9 +18,9 @@
#include <__iterator/iterator_traits.h>
#include <__iterator/reverse_iterator.h>
#include <__memory/addressof.h>
-#include <__memory/destroy.h>
#include <__memory/allocator_traits.h>
#include <__memory/construct_at.h>
+#include <__memory/destroy.h>
#include <__memory/is_trivially_allocator_relocatable.h>
#include <__memory/pointer_traits.h>
#include <__type_traits/enable_if.h>
``````````
</details>
https://github.com/llvm/llvm-project/pull/116714
More information about the libcxx-commits
mailing list