Skip to content

Conversation

vinay-deshmukh
Copy link
Contributor

Relates to #119281

Copy link

github-actions bot commented Sep 28, 2025

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff origin/main HEAD --extensions cpp -- libc/test/include/complex_test.cpp libc/test/src/math/exhaustive/bfloat16_add_test.cpp libc/test/src/math/exhaustive/bfloat16_div_test.cpp libc/test/src/math/exhaustive/bfloat16_mul_test.cpp libc/test/src/math/exhaustive/bfloat16_sub_test.cpp libc/test/src/signal/sigaltstack_test.cpp libc/test/src/stdio/fileop_test.cpp libc/test/src/stdio/fopen_test.cpp libc/test/src/sys/socket/linux/send_recv_test.cpp libc/test/src/sys/socket/linux/sendmsg_recvmsg_test.cpp libc/test/src/sys/socket/linux/sendto_recvfrom_test.cpp libc/test/src/time/ctime_r_test.cpp libc/test/src/time/mktime_test.cpp

⚠️
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.
⚠️

View the diff from clang-format here.
diff --git a/libc/test/src/time/mktime_test.cpp b/libc/test/src/time/mktime_test.cpp
index 77ddc326b..8d93165e8 100644
--- a/libc/test/src/time/mktime_test.cpp
+++ b/libc/test/src/time/mktime_test.cpp
@@ -644,8 +644,7 @@ TEST(LlvmLibcMkTime, Max64BitYear) {
                       .tm_wday = 0,
                       .tm_yday = 0,
                       .tm_isdst = 0};
-    EXPECT_THAT(LIBC_NAMESPACE::mktime(&tm_data),
-                Succeeds(67767976202043050));
+    EXPECT_THAT(LIBC_NAMESPACE::mktime(&tm_data), Succeeds(67767976202043050));
     EXPECT_TM_EQ((tm{.tm_sec = 50,
                      .tm_min = 50,
                      .tm_hour = 12,

…signed long') to 'int' [-Werror,-Wshorten-64-to-32]
…rgument here [-Werror,-Wuninitialized-const-pointer]
…' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
…float' to '_Complex _Float16' [-Werror,-Wimplicit-float-conversion]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant