[libc-commits] [libc] [libc] Suppress GCC loop optimization warning (PR #132458)

via libc-commits libc-commits at lists.llvm.org
Fri Mar 21 12:30:59 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 3757ecf5f16c0d9b8cbfc1c9d41965df537d43e6 fe0f9c720c327a3e091668e3a7be8e8ab7822715 --extensions h -- libc/src/__support/big_int.h
``````````

</details>

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

``````````diff
diff --git a/libc/src/__support/big_int.h b/libc/src/__support/big_int.h
index 2a4a72e30b..4b8f6c3483 100644
--- a/libc/src/__support/big_int.h
+++ b/libc/src/__support/big_int.h
@@ -857,8 +857,8 @@ public:
       result[i] = lhs[i] OP rhs[i];                                            \
     return result;                                                             \
   }                                                                            \
-  LIBC_INLINE friend constexpr BigInt operator OP## =                          \
-      (BigInt & lhs, const BigInt &rhs) {                                      \
+  LIBC_INLINE friend constexpr BigInt operator OP##=(BigInt &lhs,              \
+                                                     const BigInt &rhs) {      \
     for (size_t i = 0; i < WORD_COUNT; ++i)                                    \
       lhs[i] OP## = rhs[i];                                                    \
     return lhs;                                                                \

``````````

</details>


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


More information about the libc-commits mailing list