Skip to content

Commit 2fcfc97

Browse files
committed
[NFC] Reformat bzl files with buildifier
1 parent 54226e2 commit 2fcfc97

File tree

15 files changed

+63
-65
lines changed

15 files changed

+63
-65
lines changed

utils/bazel/WORKSPACE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
# See https://llvm.org/LICENSE.txt for license information.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

5+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
56
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
67
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
7-
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
88

99
SKYLIB_VERSION = "1.3.0"
1010

1111
http_archive(
1212
name = "bazel_skylib",
1313
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
1414
urls = [
15-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version=SKYLIB_VERSION),
16-
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version=SKYLIB_VERSION),
15+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = SKYLIB_VERSION),
16+
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = SKYLIB_VERSION),
1717
],
1818
)
1919

@@ -113,6 +113,6 @@ maybe(
113113
sha256 = "7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0",
114114
strip_prefix = "zstd-1.5.2",
115115
urls = [
116-
"https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz"
116+
"https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz",
117117
],
118118
)

utils/bazel/examples/http_archive/WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ http_archive(
1414
name = "bazel_skylib",
1515
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
1616
urls = [
17-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version=SKYLIB_VERSION),
18-
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version=SKYLIB_VERSION),
17+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = SKYLIB_VERSION),
18+
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = SKYLIB_VERSION),
1919
],
2020
)
2121

@@ -57,6 +57,6 @@ maybe(
5757
sha256 = "7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0",
5858
strip_prefix = "zstd-1.5.2",
5959
urls = [
60-
"https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz"
60+
"https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz",
6161
],
6262
)

utils/bazel/examples/submodule/WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ http_archive(
1212
name = "bazel_skylib",
1313
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
1414
urls = [
15-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version=SKYLIB_VERSION),
16-
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version=SKYLIB_VERSION),
15+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = SKYLIB_VERSION),
16+
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = SKYLIB_VERSION),
1717
],
1818
)
1919

@@ -46,6 +46,6 @@ maybe(
4646
sha256 = "7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0",
4747
strip_prefix = "zstd-1.5.2",
4848
urls = [
49-
"https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz"
49+
"https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz",
5050
],
5151
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ cc_library(
8080
"//llvm:Analysis",
8181
"//llvm:BinaryFormat",
8282
"//llvm:CodeGen",
83+
"//llvm:DWARFLinker",
8384
"//llvm:DWP",
8485
"//llvm:DebugInfoDWARF",
8586
"//llvm:Demangle",
86-
"//llvm:DWARFLinker",
8787
"//llvm:JITLink",
8888
"//llvm:MC",
8989
"//llvm:MCDisassembler",

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

55
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
6-
load("//:workspace_root.bzl", "workspace_root")
7-
load("//llvm:tblgen.bzl", "gentbl")
8-
load("//llvm:binary_alias.bzl", "binary_alias")
9-
load("//llvm:cc_plugin_library.bzl", "cc_plugin_library")
106
load(
117
"//:vars.bzl",
128
"LLVM_VERSION",
139
"LLVM_VERSION_MAJOR",
1410
"LLVM_VERSION_MINOR",
1511
"LLVM_VERSION_PATCH",
1612
)
13+
load("//:workspace_root.bzl", "workspace_root")
14+
load("//llvm:binary_alias.bzl", "binary_alias")
15+
load("//llvm:cc_plugin_library.bzl", "cc_plugin_library")
16+
load("//llvm:tblgen.bzl", "gentbl")
1717

1818
package(
1919
default_visibility = ["//visibility:public"],
@@ -2432,8 +2432,8 @@ cc_binary(
24322432
cc_binary(
24332433
name = "clang-format",
24342434
srcs = [
2435-
"tools/clang-format/ClangFormat.cpp",
24362435
"lib/Format/MatchFilePath.h",
2436+
"tools/clang-format/ClangFormat.cpp",
24372437
],
24382438
stamp = 0,
24392439
deps = [

utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cc_library(
3636
exclude = WIN32_ONLY_FILES,
3737
) + select({
3838
"@platforms//os:windows": WIN32_ONLY_FILES,
39-
"//conditions:default": []
39+
"//conditions:default": [],
4040
}),
4141
hdrs = glob([
4242
"include/profile/*.h",
@@ -45,8 +45,8 @@ cc_library(
4545
includes = [
4646
"include",
4747
],
48+
linkstatic = True,
4849
deps = [
4950
":config",
5051
],
51-
linkstatic = True,
5252
)

utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ def libc_function(
8282
# original list, where this creates a new list and stores it in deps.
8383
copts = copts or []
8484
copts = copts + [
85-
"-O3",
86-
"-fno-builtin",
87-
"-fno-lax-vector-conversions",
88-
"-ftrivial-auto-var-init=pattern"
85+
"-O3",
86+
"-fno-builtin",
87+
"-fno-lax-vector-conversions",
88+
"-ftrivial-auto-var-init=pattern",
8989
]
9090

9191
# We compile the code twice, the first target is suffixed with ".__internal__" and contains the

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ libc_support_library(
4646
"//libc:__support_cpp_type_traits",
4747
"//libc:__support_fputil_fp_bits",
4848
"//libc:__support_fputil_fpbits_str",
49-
"//libc/test/UnitTest:fp_test_helpers",
5049
"//libc/test/UnitTest:LibcUnitTest",
50+
"//libc/test/UnitTest:fp_test_helpers",
5151
"//libc/utils/MPFRWrapper:mpfr_impl",
5252
],
5353
)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

55
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
6-
load("//llvm:tblgen.bzl", "gentbl")
7-
load("//llvm:binary_alias.bzl", "binary_alias")
86
load(
97
"//:vars.bzl",
108
"LLVM_VERSION",
119
)
10+
load("//llvm:binary_alias.bzl", "binary_alias")
11+
load("//llvm:tblgen.bzl", "gentbl")
1212

1313
package(
1414
default_visibility = ["//visibility:public"],

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4860,7 +4860,7 @@ cc_library(
48604860
cc_binary(
48614861
name = "opt",
48624862
stamp = 0,
4863-
deps = [":opt-driver"]
4863+
deps = [":opt-driver"],
48644864
)
48654865

48664866
gentbl(
@@ -4979,29 +4979,29 @@ py_binary(
49794979
srcs = [
49804980
"utils/mlgo-utils/mlgo/__init__.py",
49814981
"utils/mlgo-utils/mlgo/corpus/extract_ir.py",
4982-
"utils/mlgo-utils/mlgo/corpus/extract_ir_lib.py"
4982+
"utils/mlgo-utils/mlgo/corpus/extract_ir_lib.py",
49834983
],
4984-
imports = ["utils/mlgo-utils"]
4984+
imports = ["utils/mlgo-utils"],
49854985
)
49864986

49874987
py_binary(
49884988
name = "combine_training_corpus",
49894989
srcs = [
49904990
"utils/mlgo-utils/mlgo/__init__.py",
49914991
"utils/mlgo-utils/mlgo/corpus/combine_training_corpus.py",
4992-
"utils/mlgo-utils/mlgo/corpus/combine_training_corpus_lib.py"
4992+
"utils/mlgo-utils/mlgo/corpus/combine_training_corpus_lib.py",
49934993
],
4994-
imports = ["utils/mlgo-utils"]
4994+
imports = ["utils/mlgo-utils"],
49954995
)
49964996

49974997
py_binary(
49984998
name = "make_corpus",
49994999
srcs = [
50005000
"utils/mlgo-utils/mlgo/__init__.py",
50015001
"utils/mlgo-utils/mlgo/corpus/make_corpus.py",
5002-
"utils/mlgo-utils/mlgo/corpus/make_corpus_lib.py"
5002+
"utils/mlgo-utils/mlgo/corpus/make_corpus_lib.py",
50035003
],
5004-
imports = ["utils/mlgo-utils"]
5004+
imports = ["utils/mlgo-utils"],
50055005
)
50065006

50075007
cc_library(

0 commit comments

Comments
 (0)