[llvm] [Support] Add missing LLVM_ABI annotations in Atomic.h (PR #152768)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 10:32:17 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 HEAD~1 HEAD --extensions h -- llvm/include/llvm/Support/Atomic.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/Support/Atomic.h b/llvm/include/llvm/Support/Atomic.h
index 4dcef1935..c2d9ae2da 100644
--- a/llvm/include/llvm/Support/Atomic.h
+++ b/llvm/include/llvm/Support/Atomic.h
@@ -27,16 +27,15 @@
 
 namespace llvm {
   namespace sys {
-    LLVM_ABI void MemoryFence();
+  LLVM_ABI void MemoryFence();
 
 #ifdef _MSC_VER
-    typedef long cas_flag;
+  typedef long cas_flag;
 #else
-    typedef uint32_t cas_flag;
+  typedef uint32_t cas_flag;
 #endif
-    LLVM_ABI cas_flag CompareAndSwap(volatile cas_flag* ptr,
-                                     cas_flag new_value,
-                                     cas_flag old_value);
+  LLVM_ABI cas_flag CompareAndSwap(volatile cas_flag *ptr, cas_flag new_value,
+                                   cas_flag old_value);
   }
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list