[libcxx-commits] [libcxx] [libc++] Optimize vector growing of trivially relocatable types (PR #76657)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 31 08:57:38 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 888501bc631c4f6d373b4081ff6c504a1ce4a682 f99f079a5c8bb33e0c3c4da0afa7b477e31927d5 -- libcxx/include/__type_traits/is_trivially_relocatable.h libcxx/test/libcxx/type_traits/is_trivially_relocatable.compile.pass.cpp libcxx/benchmarks/ContainerBenchmarks.h libcxx/benchmarks/vector_operations.bench.cpp libcxx/include/__memory/uninitialized_algorithms.h libcxx/include/__memory/unique_ptr.h libcxx/include/string libcxx/include/vector libcxx/test/support/count_new.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/support/count_new.h b/libcxx/test/support/count_new.h
index b2c5b7e0ec..1b1b982273 100644
--- a/libcxx/test/support/count_new.h
+++ b/libcxx/test/support/count_new.h
@@ -99,10 +99,10 @@ public:
void deleteCalled(void * p)
{
- if (p) {
- --outstanding_new;
- ++delete_called;
- }
+ if (p) {
+ --outstanding_new;
+ ++delete_called;
+ }
}
void alignedDeleteCalled(void *p, std::size_t a) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/76657
More information about the libcxx-commits
mailing list