[libc-commits] [libc] [libc][NFC] adjust time related implementations (PR #91485)
via libc-commits
libc-commits at lists.llvm.org
Wed May 8 08:08:07 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 026a29e8b38aad79568de033d0e8e5d2e6bb4250 a11bba401f0f080171495383bb130823fec9359c -- libc/src/time/linux/clock.cpp libc/src/time/linux/clock_gettime.cpp libc/src/time/linux/gettimeofday.cpp libc/src/time/linux/time.cpp libc/src/time/linux/clock_gettime_impl.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/time/linux/time.cpp b/libc/src/time/linux/time.cpp
index 336c723356..6b72e9b4df 100644
--- a/libc/src/time/linux/time.cpp
+++ b/libc/src/time/linux/time.cpp
@@ -14,7 +14,7 @@
namespace LIBC_NAMESPACE {
-LLVM_LIBC_FUNCTION(time_t, time, (time_t *tp)) {
+LLVM_LIBC_FUNCTION(time_t, time, (time_t * tp)) {
// TODO: Use the Linux VDSO to fetch the time and avoid the syscall.
struct timespec ts;
auto result = internal::clock_gettime_impl(CLOCK_REALTIME, &ts);
``````````
</details>
https://github.com/llvm/llvm-project/pull/91485
More information about the libc-commits
mailing list