[libcxx-commits] [libcxx] [libc++] Improve performance of std::atomic_flag on Windows (PR #163524)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 31 11:17:02 PDT 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 cpp -- libcxx/src/atomic.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/src/atomic.cpp b/libcxx/src/atomic.cpp
index adaf4f5cd..bcbc9a494 100644
--- a/libcxx/src/atomic.cpp
+++ b/libcxx/src/atomic.cpp
@@ -43,8 +43,8 @@
 
 #elif defined(_WIN32)
 
-#  include <windows.h>
 #  include <memory>
+#  include <windows.h>
 
 #else // <- Add other operating systems here
 

``````````

</details>


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


More information about the libcxx-commits mailing list