[libc-commits] [libc] [libc][complex] Enable cabs and cabsf in libc (PR #206677)
via libc-commits
libc-commits at lists.llvm.org
Tue Jun 30 01:28:54 PDT 2026
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,cpp -- libc/src/complex/cabs.h libc/src/complex/cabsf.h libc/src/complex/generic/cabs.cpp libc/src/complex/generic/cabsf.cpp libc/test/src/complex/CAbsTest.h libc/test/src/complex/cabs_test.cpp libc/test/src/complex/cabsf_test.cpp libc/utils/MPCWrapper/MPCUtils.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/libc/test/src/complex/CAbsTest.h b/libc/test/src/complex/CAbsTest.h
index 08bf9c172..500767114 100644
--- a/libc/test/src/complex/CAbsTest.h
+++ b/libc/test/src/complex/CAbsTest.h
@@ -110,10 +110,10 @@ public:
};
#define LIST_CABS_TESTS(U, T, func) \
- using LlvmLibcCAbsTest = CAbsTest<U, T>; \
- TEST_F(LlvmLibcCAbsTest, ZeroValues) { testZeroValues(&func); } \
- TEST_F(LlvmLibcCAbsTest, BasicValues) { testBasicValues(&func); } \
- TEST_F(LlvmLibcCAbsTest, InfinityValues) { testInfinityValues(&func); } \
+ using LlvmLibcCAbsTest = CAbsTest<U, T>; \
+ TEST_F(LlvmLibcCAbsTest, ZeroValues) { testZeroValues(&func); } \
+ TEST_F(LlvmLibcCAbsTest, BasicValues) { testBasicValues(&func); } \
+ TEST_F(LlvmLibcCAbsTest, InfinityValues) { testInfinityValues(&func); } \
TEST_F(LlvmLibcCAbsTest, NaNValues) { testNaNValues(&func); }
#endif // LLVM_LIBC_TEST_SRC_COMPLEX_CABSTEST_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/206677
More information about the libc-commits
mailing list