Skip to content

Commit e7f8e70

Browse files
avoid inconsistent clang-format
1 parent b0844cc commit e7f8e70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libc/src/time/time.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
#include "src/time/time_func.h"
1515

1616
namespace LIBC_NAMESPACE_DECL {
17-
LLVM_LIBC_FUNCTION(time_t, time, (time_t *tp)) {
17+
// avoid inconsitent clang-format behavior
18+
using time_ptr_t = time_t *;
19+
LLVM_LIBC_FUNCTION(time_t, time, (time_ptr_t tp)) {
1820
struct timespec ts;
1921
auto result = internal::clock_gettime(CLOCK_REALTIME, &ts);
2022
if (!result.has_value()) {

0 commit comments

Comments
 (0)