Skip to content

Commit c95723b

Browse files
committed
[bazel] Run an autoformatter on libc/BUILD.bazel
1 parent edd6a33 commit c95723b

File tree

1 file changed

+50
-52
lines changed

1 file changed

+50
-52
lines changed

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 50 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ libc_support_library(
219219
name = "__support_arg_list",
220220
hdrs = ["src/__support/arg_list.h"],
221221
deps = [
222-
":libc_root",
223222
":__support_common",
223+
":libc_root",
224224
],
225225
)
226226

@@ -231,11 +231,11 @@ libc_support_library(
231231
"src/__support/ryu_constants.h",
232232
],
233233
deps = [
234+
":__support_common",
234235
":__support_cpp_type_traits",
235236
":__support_fputil_fp_bits",
236-
":__support_uint",
237237
":__support_libc_assert",
238-
":__support_common",
238+
":__support_uint",
239239
":libc_root",
240240
],
241241
)
@@ -306,11 +306,11 @@ libc_support_library(
306306
name = "__support_integer_to_string",
307307
hdrs = ["src/__support/integer_to_string.h"],
308308
deps = [
309-
":__support_cpp_type_traits",
309+
":__support_common",
310310
":__support_cpp_optional",
311311
":__support_cpp_span",
312312
":__support_cpp_string_view",
313-
":__support_common",
313+
":__support_cpp_type_traits",
314314
":libc_root",
315315
],
316316
)
@@ -319,10 +319,10 @@ libc_support_library(
319319
name = "__support_libc_assert",
320320
hdrs = ["src/__support/libc_assert.h"],
321321
deps = [
322-
":__support_osutil_io",
323-
":__support_osutil_quick_exit",
324322
":__support_integer_to_string",
325323
":__support_macros_attributes",
324+
":__support_osutil_io",
325+
":__support_osutil_quick_exit",
326326
":libc_root",
327327
],
328328
)
@@ -662,8 +662,8 @@ libc_support_library(
662662
deps = [
663663
":__support_common",
664664
":__support_osutil_syscall",
665-
":string_utils",
666665
":libc_root",
666+
":string_utils",
667667
],
668668
)
669669

@@ -680,7 +680,6 @@ libc_support_library(
680680
],
681681
)
682682

683-
684683
############################### errno targets ################################
685684

686685
libc_function(
@@ -2073,65 +2072,64 @@ libc_support_library(
20732072
],
20742073
)
20752074

2076-
20772075
libc_support_library(
20782076
name = "printf_parser",
2079-
hdrs = ["src/stdio/printf_core/parser.h"],
20802077
srcs = ["src/stdio/printf_core/parser.cpp"],
2078+
hdrs = ["src/stdio/printf_core/parser.h"],
20812079
deps = [
2082-
":printf_core_structs",
2083-
":printf_config",
2080+
":__support_arg_list",
2081+
":__support_common",
2082+
":__support_cpp_bit",
2083+
":__support_cpp_optional",
20842084
":__support_cpp_string_view",
20852085
":__support_cpp_type_traits",
2086-
":__support_cpp_optional",
2087-
":__support_cpp_bit",
2088-
":__support_fputil_fp_bits",
2089-
":__support_arg_list",
20902086
":__support_ctype_utils",
2087+
":__support_fputil_fp_bits",
20912088
":__support_str_to_integer",
2092-
":__support_common",
20932089
":libc_root",
2090+
":printf_config",
2091+
":printf_core_structs",
20942092
],
20952093
)
20962094

20972095
# Only used for testing.
20982096
libc_support_library(
20992097
name = "printf_mock_parser",
2100-
hdrs = ["src/stdio/printf_core/parser.h"],
21012098
srcs = ["src/stdio/printf_core/parser.cpp"],
2099+
hdrs = ["src/stdio/printf_core/parser.h"],
2100+
copts = ["-DLIBC_COPT_MOCK_ARG_LIST"],
21022101
deps = [
2103-
":printf_core_structs",
2104-
":printf_config",
2102+
":__support_arg_list",
2103+
":__support_common",
2104+
":__support_cpp_bit",
2105+
":__support_cpp_optional",
21052106
":__support_cpp_string_view",
21062107
":__support_cpp_type_traits",
2107-
":__support_cpp_optional",
2108-
":__support_cpp_bit",
2109-
":__support_fputil_fp_bits",
2110-
":__support_arg_list",
21112108
":__support_ctype_utils",
2109+
":__support_fputil_fp_bits",
21122110
":__support_str_to_integer",
2113-
":__support_common",
21142111
":libc_root",
2112+
":printf_config",
2113+
":printf_core_structs",
21152114
],
2116-
copts = ["-DLIBC_COPT_MOCK_ARG_LIST"],
21172115
)
21182116

21192117
libc_support_library(
21202118
name = "printf_string_writer",
2121-
hdrs = ["src/stdio/printf_core/string_writer.h"],
21222119
srcs = ["src/stdio/printf_core/string_writer.cpp"],
2120+
hdrs = ["src/stdio/printf_core/string_writer.h"],
21232121
deps = [
21242122
":__support_cpp_string_view",
2125-
":string_memory_utils",
2126-
":printf_core_structs",
21272123
":libc_root",
2124+
":printf_core_structs",
2125+
":string_memory_utils",
21282126
],
21292127
)
21302128

21312129
libc_support_library(
21322130
name = "printf_writer",
2133-
hdrs = ["src/stdio/printf_core/writer.h"],
21342131
srcs = ["src/stdio/printf_core/writer.cpp"],
2132+
hdrs = ["src/stdio/printf_core/writer.h"],
21352133
deps = [
21362134
":__support_cpp_string_view",
21372135
":libc_root",
@@ -2140,49 +2138,49 @@ libc_support_library(
21402138

21412139
libc_support_library(
21422140
name = "printf_converter",
2141+
srcs = ["src/stdio/printf_core/converter.cpp"],
21432142
hdrs = [
2143+
"src/stdio/printf_core/char_converter.h",
21442144
"src/stdio/printf_core/converter.h",
2145-
"src/stdio/printf_core/converter_utils.h",
21462145
"src/stdio/printf_core/converter_atlas.h",
2147-
"src/stdio/printf_core/string_converter.h",
2148-
"src/stdio/printf_core/char_converter.h",
2146+
"src/stdio/printf_core/converter_utils.h",
2147+
"src/stdio/printf_core/float_dec_converter.h",
2148+
"src/stdio/printf_core/float_hex_converter.h",
2149+
"src/stdio/printf_core/float_inf_nan_converter.h",
21492150
"src/stdio/printf_core/int_converter.h",
21502151
"src/stdio/printf_core/ptr_converter.h",
2152+
"src/stdio/printf_core/string_converter.h",
21512153
"src/stdio/printf_core/write_int_converter.h",
2152-
"src/stdio/printf_core/float_inf_nan_converter.h",
2153-
"src/stdio/printf_core/float_hex_converter.h",
2154-
"src/stdio/printf_core/float_dec_converter.h",
21552154
],
2156-
srcs = ["src/stdio/printf_core/converter.cpp"],
21572155
deps = [
2158-
":printf_writer",
2159-
":printf_core_structs",
2160-
":__support_cpp_string_view",
2156+
":__support_common",
21612157
":__support_cpp_limits",
21622158
":__support_cpp_span",
2163-
":__support_fputil_fp_bits",
2159+
":__support_cpp_string_view",
2160+
":__support_float_to_string",
21642161
":__support_fputil_fenv_impl",
2162+
":__support_fputil_fp_bits",
2163+
":__support_integer_to_string",
21652164
":__support_libc_assert",
21662165
":__support_uint",
21672166
":__support_uint128",
2168-
":__support_integer_to_string",
2169-
":__support_float_to_string",
2170-
":__support_common",
21712167
":libc_root",
2168+
":printf_core_structs",
2169+
":printf_writer",
21722170
],
21732171
)
21742172

21752173
libc_support_library(
21762174
name = "printf_main",
2177-
hdrs = ["src/stdio/printf_core/printf_main.h"],
21782175
srcs = ["src/stdio/printf_core/printf_main.cpp"],
2176+
hdrs = ["src/stdio/printf_core/printf_main.h"],
21792177
deps = [
2180-
":printf_parser",
2181-
":printf_converter",
2182-
":printf_writer",
2183-
":printf_core_structs",
21842178
":__support_arg_list",
21852179
":libc_root",
2180+
":printf_converter",
2181+
":printf_core_structs",
2182+
":printf_parser",
2183+
":printf_writer",
21862184
],
21872185
)
21882186

@@ -2192,10 +2190,10 @@ libc_function(
21922190
hdrs = ["src/stdio/sprintf.h"],
21932191
deps = [
21942192
":__support_arg_list",
2193+
":errno",
21952194
":printf_main",
21962195
":printf_string_writer",
21972196
":printf_writer",
2198-
":errno",
21992197
],
22002198
)
22012199

@@ -2205,9 +2203,9 @@ libc_function(
22052203
hdrs = ["src/stdio/snprintf.h"],
22062204
deps = [
22072205
":__support_arg_list",
2206+
":errno",
22082207
":printf_main",
22092208
":printf_string_writer",
22102209
":printf_writer",
2211-
":errno",
22122210
],
22132211
)

0 commit comments

Comments
 (0)