[llvm] [bazel] Format BUILD files with buildifier (PR #133802)

Keith Smiley via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 31 14:38:36 PDT 2025


https://github.com/keith created https://github.com/llvm/llvm-project/pull/133802

None

>From c2bc5340840cde3513cc60f50707f39f709b0474 Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Mon, 31 Mar 2025 21:36:00 +0000
Subject: [PATCH] [bazel] Format BUILD files with buildifier

---
 utils/bazel/llvm-project-overlay/bolt/BUILD.bazel             | 2 +-
 .../clang-tools-extra/include-cleaner/BUILD.bazel             | 2 +-
 utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel      | 4 ++--
 .../llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel | 4 ++--
 utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel        | 4 ++--
 .../bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel  | 2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
index 7595404cb10a9..b5cd6dbcbd4f9 100644
--- a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
@@ -70,8 +70,8 @@ cc_binary(
         ":Profile",
         ":Rewrite",
         ":RuntimeLibs",
-        ":TargetConfig",
         ":TargetAArch64",
+        ":TargetConfig",
         ":TargetX86",
         ":Utils",
         "//llvm:AllTargetsAsmParsers",
diff --git a/utils/bazel/llvm-project-overlay/clang-tools-extra/include-cleaner/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang-tools-extra/include-cleaner/BUILD.bazel
index 5b210ad80c874..e34fbe55cb781 100644
--- a/utils/bazel/llvm-project-overlay/clang-tools-extra/include-cleaner/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang-tools-extra/include-cleaner/BUILD.bazel
@@ -119,6 +119,7 @@ expand_template(
     lit_test(
         name = "%s.test" % src,
         srcs = [src],
+        args = ["-svv"],
         data = glob(["test/Inputs/**/*"]) + [
             "test/lit.cfg.py",
             "test/lit.site.cfg.py",
@@ -127,7 +128,6 @@ expand_template(
             "//llvm:count",
             "//llvm:not",
         ],
-        args = ["-svv"],
     )
     for src in glob(["test/*.cpp"])
 ]
diff --git a/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel b/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel
index 765cde42dd062..bcf947a230144 100644
--- a/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel
@@ -67,11 +67,11 @@ cc_library(
         "lib/orc/error.h",
         "lib/orc/executor_address.h",
         "lib/orc/executor_symbol_def.h",
-        "lib/orc/rtti.h",
         "lib/orc/interval_map.h",
         "lib/orc/interval_set.h",
         "lib/orc/jit_dispatch.h",
         "lib/orc/record_section_tracker.h",
+        "lib/orc/rtti.h",
         "lib/orc/simple_packed_serialization.h",
         "lib/orc/stl_extras.h",
         "lib/orc/string_pool.h",
@@ -86,8 +86,8 @@ cc_library(
     srcs = [
         "lib/orc/debug.cpp",
         "lib/orc/dlfcn_wrapper.cpp",
-        "lib/orc/rtti.cpp",
         "lib/orc/log_error_to_stderr.cpp",
+        "lib/orc/rtti.cpp",
         "lib/orc/run_program_wrapper.cpp",
     ] + select({
         "@platforms//os:macos": [
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
index ee27d6398cee5..cf25376878347 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
@@ -209,12 +209,12 @@ math_test(
 #     name = "f16fma",
 #     hdrs = ["FmaTest.h"],
 # )
-# 
+#
 # math_test(
 #     name = "f16fmaf",
 #     hdrs = ["FmaTest.h"],
 # )
-# 
+#
 # math_test(
 #     name = "f16fmal",
 #     hdrs = ["FmaTest.h"],
diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
index ba1dd4b4f60e2..f29cc028c52c0 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -664,10 +664,10 @@ cc_library(
         "//mlir:SPIRVDialect",
         "//mlir:SideEffectInterfaces",
         "//mlir:Support",
-        "//mlir:TransformUtils",
-        "//mlir:Transforms",
         "//mlir:TransformDialect",
         "//mlir:TransformDialectInterfaces",
+        "//mlir:TransformUtils",
+        "//mlir:Transforms",
     ],
 )
 
diff --git a/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel
index adc2a000786aa..b8d136c174bd4 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel
@@ -9,13 +9,13 @@ package(default_visibility = ["//visibility:public"])
         name = "%s.test" % src,
         srcs = [src],
         data = [
+            "Vector/vector-sink-transform.mlir",
             "//llvm:llvm-symbolizer",
             "//mlir:mlir-opt",
             "//mlir:mlir-pdll",
             "//mlir:mlir-reduce",
             "//mlir:mlir-translate",
             "//mlir/test:lit_data",
-            "Vector/vector-sink-transform.mlir",
         ] + glob([
             "IRDL/*.irdl.mlir",
             "Linalg/td/*.mlir",



More information about the llvm-commits mailing list