[libcxx-commits] [libcxx] hxie/rcu 8bytes (PR #224853)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Sep 19 11:46:29 PDT 2026


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 ,inc,cpp,h -- libcxx/include/__rcu/rcu_domain.h libcxx/include/__rcu/rcu_obj_base.h libcxx/include/rcu libcxx/src/experimental/include/rcu/rcu_list.h libcxx/src/experimental/include/rcu/thread_local_container.h libcxx/src/experimental/rcu.cpp libcxx/test/libcxx/thread/saferecl/saferecl.rcu/saferecl.rcu.base/mandates.verify.cpp libcxx/test/libcxx/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/mandates.verify.cpp libcxx/test/std/language.support/support.limits/support.limits.general/rcu.version.compile.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/general.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/read_write_lock_compare.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/read_write_lock_compare_fair.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/read_write_lock_compare_multi_writer.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/retire.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.base/ctor.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.base/incomplete.compile.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.base/retire.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.base/retire_stress.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/ctor.compile.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/lock_unlock.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_barrier.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_barrier_stress.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_default_domain.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_retire.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_retire_stress.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_synchronize.pass.cpp libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_synchronize_stress.pass.cpp libcxx/include/__configuration/experimental.h libcxx/include/version libcxx/modules/std/rcu.inc libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp --diff_from_common_commit
``````````

: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/__rcu/rcu_domain.h b/libcxx/include/__rcu/rcu_domain.h
index b0ec3fec7..0ef7158ad 100644
--- a/libcxx/include/__rcu/rcu_domain.h
+++ b/libcxx/include/__rcu/rcu_domain.h
@@ -25,9 +25,9 @@ _LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
 #if _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_THREADS && _LIBCPP_HAS_EXPERIMENTAL_RCU
 
 struct __rcu_node {
-  using __cb_type        = void(__rcu_node*);
-  __cb_type* __callback_ = [](__rcu_node*) {};
-  __rcu_node* __next_    = nullptr;
+  using __cb_type                   = void(__rcu_node*);
+  __cb_type* __callback_            = [](__rcu_node*) {};
+  __rcu_node* __next_               = nullptr;
   __rcu_node* __tail_if_atomic_head = nullptr;
 };
 

``````````

</details>


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


More information about the libcxx-commits mailing list