[libcxx-commits] [libcxx] [libc++] refactor atomic_waitable_traits into its own header and remove pre 20 support (PR #173157)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Dec 20 08:49:23 PST 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/__atomic/atomic_waitable_traits.h libcxx/include/__atomic/atomic.h libcxx/include/__atomic/atomic_flag.h libcxx/include/__atomic/atomic_ref.h libcxx/include/__atomic/atomic_sync.h libcxx/include/atomic --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/atomic b/libcxx/include/atomic
index 39308bfe8..3323650f7 100644
--- a/libcxx/include/atomic
+++ b/libcxx/include/atomic
@@ -607,8 +607,8 @@ template <class T>
 #  include <__atomic/atomic_flag.h>
 #  include <__atomic/atomic_init.h>
 #  include <__atomic/atomic_lock_free.h>
-#  include <__atomic/atomic_waitable_traits.h>
 #  include <__atomic/atomic_sync.h>
+#  include <__atomic/atomic_waitable_traits.h>
 #  include <__atomic/check_memory_order.h>
 #  include <__atomic/contention_t.h>
 #  include <__atomic/fence.h>

``````````

</details>


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


More information about the libcxx-commits mailing list