[libc] [llvm] [libc][complex] Testing infra for MPC (PR #121261)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 12 01:50:10 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 8e965d89c9624c184c48806dc39d50209265f0f8 78c7f2805613ac5a0e4c7d6cfcd5d4336901eab2 --extensions cpp,h -- libc/src/__support/complex_basic_ops.h libc/utils/MPCWrapper/MPCUtils.cpp libc/utils/MPCWrapper/MPCUtils.h libc/utils/MPCWrapper/check_mpc.cpp libc/src/__support/complex_type.h libc/src/complex/generic/conj.cpp libc/src/complex/generic/conjf.cpp libc/src/complex/generic/conjf128.cpp libc/src/complex/generic/conjf16.cpp libc/src/complex/generic/conjl.cpp libc/src/complex/generic/cproj.cpp libc/src/complex/generic/cprojf.cpp libc/src/complex/generic/cprojf128.cpp libc/src/complex/generic/cprojf16.cpp libc/src/complex/generic/cprojl.cpp libc/test/src/complex/cprojf_test.cpp libc/utils/MPFRWrapper/MPFRUtils.cpp libc/utils/MPFRWrapper/MPFRUtils.h
``````````

</details>

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

``````````diff
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.h b/libc/utils/MPFRWrapper/MPFRUtils.h
index 3d00182dcc..78c147b450 100644
--- a/libc/utils/MPFRWrapper/MPFRUtils.h
+++ b/libc/utils/MPFRWrapper/MPFRUtils.h
@@ -110,7 +110,8 @@ public:
 
   template <typename XType,
             cpp::enable_if_t<cpp::is_integral_v<XType>, int> = 0>
-  explicit MPFRNumber(XType x, unsigned int precision = ExtraPrecision<float>::VALUE,
+  explicit MPFRNumber(XType x,
+                      unsigned int precision = ExtraPrecision<float>::VALUE,
                       RoundingMode rounding = RoundingMode::Nearest);
 
   MPFRNumber(const MPFRNumber &other);

``````````

</details>


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


More information about the llvm-commits mailing list