[libc-commits] [libc] [libc][complex] Set up headers and add documentation (PR #111659)

via libc-commits libc-commits at lists.llvm.org
Thu Oct 10 10:00:16 PDT 2024


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 1297ff176580b8a1cb82128208349002652e5a83 f5027c2454efea17fd1da76e28badc79e40fef6c --extensions cpp,h -- libc/include/llvm-libc-macros/complex-macros.h libc/test/include/complex_test.cpp libc/test/UnitTest/LibcTest.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/test/include/complex_test.cpp b/libc/test/include/complex_test.cpp
index ec4547a66c..48054e5e7c 100644
--- a/libc/test/include/complex_test.cpp
+++ b/libc/test/include/complex_test.cpp
@@ -13,10 +13,6 @@ TEST(LlvmLibcComplexTest, VersionMacro) {
   EXPECT_EQ(__STDC_VERSION_COMPLEX_H__, 202311L);
 }
 
-TEST(LlvmLibcComplexTest, IMacro) {
-  EXPECT_EQ(I, 1.0fi);
-}
+TEST(LlvmLibcComplexTest, IMacro) { EXPECT_EQ(I, 1.0fi); }
 
-TEST(LlvmLibcComplexTest, _Complex_IMacro) {
-  EXPECT_EQ(_Complex_I, 1.0fi);
-}
+TEST(LlvmLibcComplexTest, _Complex_IMacro) { EXPECT_EQ(_Complex_I, 1.0fi); }

``````````

</details>


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


More information about the libc-commits mailing list