Skip to content

Commit 492b9f1

Browse files
committed
Run clang-format
1 parent a403604 commit 492b9f1

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

libc/src/stdio/baremetal/printf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ LLVM_LIBC_FUNCTION(int, printf, (const char *__restrict format, ...)) {
5959
return -1;
6060
}
6161

62-
return static_cast<int>(retval.value);
62+
return static_cast<int>(retval.value);
6363
}
6464

6565
} // namespace LIBC_NAMESPACE_DECL

libc/src/stdio/baremetal/vprintf.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ LLVM_LIBC_FUNCTION(int, vprintf,
5050
if (flushval != printf_core::WRITE_OK) {
5151
libc_errno = -flushval;
5252
return -1;
53-
5453
}
5554

5655
if (retval.value > cpp::numeric_limits<int>::max()) {

libc/src/stdio/printf_core/fixed_converter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef LLVM_LIBC_SRC_STDIO_PRINTF_CORE_FIXED_CONVERTER_H
1010
#define LLVM_LIBC_SRC_STDIO_PRINTF_CORE_FIXED_CONVERTER_H
1111

12+
#include "hdr/errno_macros.h"
1213
#include "include/llvm-libc-macros/stdfix-macros.h"
1314
#include "src/__support/CPP/string_view.h"
1415
#include "src/__support/ctype_utils.h"
@@ -20,7 +21,6 @@
2021
#include "src/stdio/printf_core/converter_utils.h"
2122
#include "src/stdio/printf_core/core_structs.h"
2223
#include "src/stdio/printf_core/writer.h"
23-
#include "hdr/errno_macros.h"
2424

2525
#include <inttypes.h>
2626
#include <stddef.h>
@@ -60,7 +60,7 @@ LIBC_INLINE constexpr uint32_t const_ten_exp(uint32_t exponent) {
6060
READ_FX_BITS(unsigned LENGTH_MODIFIER accum); \
6161
} else { \
6262
LIBC_ASSERT(false && "Invalid conversion name passed to convert_fixed"); \
63-
return -EINVAL; \
63+
return -EINVAL; \
6464
} \
6565
} while (false)
6666

libc/src/stdio/printf_core/int_converter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef LLVM_LIBC_SRC_STDIO_PRINTF_CORE_INT_CONVERTER_H
1010
#define LLVM_LIBC_SRC_STDIO_PRINTF_CORE_INT_CONVERTER_H
1111

12+
#include "hdr/errno_macros.h"
1213
#include "src/__support/CPP/span.h"
1314
#include "src/__support/CPP/string_view.h"
1415
#include "src/__support/ctype_utils.h"
@@ -17,7 +18,6 @@
1718
#include "src/stdio/printf_core/converter_utils.h"
1819
#include "src/stdio/printf_core/core_structs.h"
1920
#include "src/stdio/printf_core/writer.h"
20-
#include "hdr/errno_macros.h"
2121

2222
#include <inttypes.h>
2323
#include <stddef.h>

libc/src/stdio/printf_core/write_int_converter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#ifndef LLVM_LIBC_SRC_STDIO_PRINTF_CORE_WRITE_INT_CONVERTER_H
1010
#define LLVM_LIBC_SRC_STDIO_PRINTF_CORE_WRITE_INT_CONVERTER_H
1111

12+
#include "hdr/errno_macros.h"
1213
#include "src/__support/macros/config.h"
1314
#include "src/stdio/printf_core/core_structs.h"
1415
#include "src/stdio/printf_core/writer.h"
15-
#include "hdr/errno_macros.h"
1616

1717
#include <inttypes.h>
1818
#include <stddef.h>

libc/src/stdlib/strfromd.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ LLVM_LIBC_FUNCTION(int, strfromd,
2828
if (section.has_conv)
2929
result = internal::strfromfloat_convert<double>(&writer, section);
3030
else
31-
result = writer.write(section.raw_string); // TODO everywhere where writer is used, set errno and ret -1
31+
result = writer.write(section.raw_string); // TODO everywhere where writer
32+
// is used, set errno and ret -1
3233

3334
if (result < 0)
3435
return result;

libc/test/src/stdio/vfprintf_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@
1414
#include "src/stdio/fclose.h"
1515
#include "src/stdio/ferror.h"
1616
#include "src/stdio/fopen.h"
17-
#include "src/stdio/fread.h"
1817
#include "src/stdio/fopencookie.h"
18+
#include "src/stdio/fread.h"
1919
#endif // LIBC_COPT_STDIO_USE_SYSTEM_FILE
2020

2121
#include "src/stdio/vfprintf.h"
2222

23-
#include "test/UnitTest/Test.h"
2423
#include "test/UnitTest/ErrnoCheckingTest.h"
2524
#include "test/UnitTest/ErrnoSetterMatcher.h"
25+
#include "test/UnitTest/Test.h"
2626

2727
namespace printf_test {
2828
#ifndef LIBC_COPT_STDIO_USE_SYSTEM_FILE
2929
using LIBC_NAMESPACE::fclose;
3030
using LIBC_NAMESPACE::ferror;
3131
using LIBC_NAMESPACE::fopen;
32-
using LIBC_NAMESPACE::fread;
3332
using LIBC_NAMESPACE::fopencookie;
33+
using LIBC_NAMESPACE::fread;
3434
#else // defined(LIBC_COPT_STDIO_USE_SYSTEM_FILE)
3535
using ::fclose;
3636
using ::ferror;
3737
using ::fopen;
38-
using ::fread;
3938
using ::fopencookie;
39+
using ::fread;
4040
#endif // LIBC_COPT_STDIO_USE_SYSTEM_FILE
4141
} // namespace printf_test
4242

libc/test/src/stdlib/StrfromTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#include "src/__support/CPP/limits.h"
1010
#include "src/__support/CPP/type_traits.h"
1111
#include "src/__support/FPUtil/FPBits.h"
12-
#include "test/UnitTest/Test.h"
1312
#include "test/UnitTest/ErrnoCheckingTest.h"
1413
#include "test/UnitTest/ErrnoSetterMatcher.h"
14+
#include "test/UnitTest/Test.h"
1515

1616
#define ASSERT_STREQ_LEN(actual_written, actual_str, expected_str) \
1717
EXPECT_EQ(actual_written, static_cast<int>(sizeof(expected_str) - 1)); \

0 commit comments

Comments
 (0)