[libc-commits] [libc] [llvm] [libc][windows] start time API implementation (PR #117775)
via libc-commits
libc-commits at lists.llvm.org
Tue Nov 26 11:51:22 PST 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 db6f627f3fd4072fe1814805653a352694527a91 1ef9e71ccc34c8863c6dd55258619e8eab861a1f --extensions h,cpp -- libc/include/llvm-libc-macros/windows/time-macros-ext.h libc/src/__support/time/windows/clock_gettime.cpp libc/hdr/types/clockid_t.h libc/src/__support/time/linux/clock_conversion.h libc/src/__support/time/linux/clock_gettime.cpp libc/src/time/linux/clock.cpp libc/src/time/linux/clock_gettime.cpp libc/src/time/linux/gettimeofday.cpp libc/test/src/__support/threads/linux/raw_mutex_test.cpp libc/src/__support/time/clock_gettime.h libc/src/time/time.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/time/time.cpp b/libc/src/time/time.cpp
index e3615d9951..b76e336f30 100644
--- a/libc/src/time/time.cpp
+++ b/libc/src/time/time.cpp
@@ -19,7 +19,7 @@
namespace LIBC_NAMESPACE_DECL {
-LLVM_LIBC_FUNCTION(time_t, time, (time_t *tp)) {
+LLVM_LIBC_FUNCTION(time_t, time, (time_t * tp)) {
struct timespec ts;
auto result = internal::clock_gettime(CLOCK_REALTIME, &ts);
if (!result.has_value()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/117775
More information about the libc-commits
mailing list