Skip to content

Conversation

philnik777
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Oct 15, 2025

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff origin/main HEAD --extensions ,h,cpp -- libcxx/include/__tree libcxx/include/map libcxx/include/set libcxx/test/benchmarks/containers/associative/associative_container_benchmarks.h libcxx/test/benchmarks/containers/associative/flat_map.bench.cpp libcxx/test/benchmarks/containers/associative/flat_multimap.bench.cpp libcxx/test/benchmarks/containers/associative/map.bench.cpp libcxx/test/benchmarks/containers/associative/multimap.bench.cpp libcxx/test/benchmarks/containers/associative/multiset.bench.cpp libcxx/test/benchmarks/containers/associative/set.bench.cpp libcxx/test/benchmarks/containers/associative/unordered_map.bench.cpp libcxx/test/benchmarks/containers/associative/unordered_multimap.bench.cpp libcxx/test/benchmarks/containers/associative/unordered_multiset.bench.cpp libcxx/test/benchmarks/containers/associative/unordered_set.bench.cpp --diff_from_common_commit

⚠️
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.
⚠️

View the diff from clang-format here.
diff --git a/libcxx/include/__tree b/libcxx/include/__tree
index caf9e6075..eb833b97a 100644
--- a/libcxx/include/__tree
+++ b/libcxx/include/__tree
@@ -1395,8 +1395,7 @@ private:
 #ifdef _LIBCPP_COMPILER_CLANG_BASED // FIXME: GCC complains about not being able to always_inline a recursive function
   _LIBCPP_HIDE_FROM_ABI
 #endif
-  __node_pointer
-  __construct_from_tree(__node_pointer __src, _NodeConstructor __construct) {
+  __node_pointer __construct_from_tree(__node_pointer __src, _NodeConstructor __construct) {
     if (!__src)
       return nullptr;
 

@philnik777 philnik777 force-pushed the optimize_tree_allocator_construct_assign branch from f1d303f to 3ff4f27 Compare October 17, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant