[llvm] 377320f - [gn build] Reformat all gn files
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 18:36:24 PDT 2021
Author: Nico Weber
Date: 2021-07-22T21:35:35-04:00
New Revision: 377320fe80b29c19a38b6d8cbd017c30d5976850
URL: https://github.com/llvm/llvm-project/commit/377320fe80b29c19a38b6d8cbd017c30d5976850
DIFF: https://github.com/llvm/llvm-project/commit/377320fe80b29c19a38b6d8cbd017c30d5976850.diff
LOG: [gn build] Reformat all gn files
Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
Added:
Modified:
llvm/utils/gn/build/BUILD.gn
llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/Target/ARM/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-dwp/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-sim/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-tapi-diff/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/MIR/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/Passes/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn
index 993710f3de09..e04a644e1d59 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/utils/gn/build/BUILD.gn
@@ -306,7 +306,10 @@ config("compiler_defaults") {
if (use_ubsan) {
assert(is_clang && current_os == "linux",
"ubsan only supported on Linux/Clang")
- cflags += [ "-fsanitize=undefined", "-fno-sanitize-recover=all" ]
+ cflags += [
+ "-fsanitize=undefined",
+ "-fno-sanitize-recover=all",
+ ]
ldflags += [ "-fsanitize=undefined" ]
}
diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
index 7deb8a3d3ed7..32047fe93b81 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
@@ -52,8 +52,8 @@ source_set("sources") {
"hwasan_dynamic_shadow.cpp",
"hwasan_dynamic_shadow.h",
"hwasan_exceptions.cpp",
- "hwasan_fuchsia.cpp",
"hwasan_flags.h",
+ "hwasan_fuchsia.cpp",
"hwasan_globals.cpp",
"hwasan_globals.h",
"hwasan_interceptors.cpp",
diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn
index 45de3db23076..4833177da623 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn
@@ -17,8 +17,8 @@ source_set("sources") {
"checksum.h",
"chunk.h",
"combined.h",
- "common.h",
"common.cpp",
+ "common.h",
"crc32_hw.cpp",
"flags.cpp",
"flags.h",
diff --git a/llvm/utils/gn/secondary/llvm/lib/Target/ARM/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Target/ARM/BUILD.gn
index 5d9156e653be..272da887e6ae 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/ARM/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/ARM/BUILD.gn
@@ -58,8 +58,8 @@ static_library("LLVMARMCodeGen") {
"//llvm/lib/Support",
"//llvm/lib/Target",
"//llvm/lib/Transforms/CFGuard",
- "//llvm/lib/Transforms/Utils",
"//llvm/lib/Transforms/IPO",
+ "//llvm/lib/Transforms/Utils",
]
include_dirs = [ "." ]
sources = [
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-dwp/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-dwp/BUILD.gn
index e6c6d2b182d9..4a0598070367 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-dwp/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-dwp/BUILD.gn
@@ -19,8 +19,8 @@ group("symlinks") {
executable("llvm-dwp") {
deps = [
- "//llvm/lib/DebugInfo/DWARF",
"//llvm/lib/DWP",
+ "//llvm/lib/DebugInfo/DWARF",
"//llvm/lib/MC",
"//llvm/lib/Object",
"//llvm/lib/Support",
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-sim/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-sim/BUILD.gn
index 3451049f2ecc..a391c0e1c2fc 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-sim/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-sim/BUILD.gn
@@ -4,7 +4,5 @@ executable("llvm-sim") {
"//llvm/lib/IRReader",
"//llvm/lib/Support",
]
- sources = [
- "llvm-sim.cpp",
- ]
+ sources = [ "llvm-sim.cpp" ]
}
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-tapi-
diff /BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-tapi-
diff /BUILD.gn
index c1deeb757396..ffdccf5fab67 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-tapi-
diff /BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-tapi-
diff /BUILD.gn
@@ -5,7 +5,7 @@ executable("llvm-tapi-
diff ") {
"//llvm/lib/TextAPI",
]
sources = [
- "llvm-tapi-
diff .cpp",
"DiffEngine.cpp",
+ "llvm-tapi-
diff .cpp",
]
}
diff --git a/llvm/utils/gn/secondary/llvm/unittests/MIR/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/MIR/BUILD.gn
index dc069d44da60..c6dd5ae607fb 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/MIR/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/MIR/BUILD.gn
@@ -2,12 +2,11 @@ import("//llvm/utils/unittest/unittest.gni")
unittest("MIRTests") {
deps = [
-
"//llvm/lib/CodeGen",
- "//llvm/lib/IR",
+ "//llvm/lib/CodeGen/MIRParser",
"//llvm/lib/FileCheck",
+ "//llvm/lib/IR",
"//llvm/lib/MC",
- "//llvm/lib/CodeGen/MIRParser",
"//llvm/lib/Support",
"//llvm/lib/Target",
"//llvm/lib/Target:TargetsToBuild",
diff --git a/llvm/utils/gn/secondary/llvm/unittests/Passes/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/Passes/BUILD.gn
index ce7acf1344c4..29e4183d974f 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/Passes/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/Passes/BUILD.gn
@@ -3,7 +3,11 @@ import("//llvm/utils/unittest/unittest.gni")
# Keyed off LLVM_ENABLE_PLUGINS in the CMake build, which is usually false
# on Windows and true elsewhere.
if (host_os != "win") {
- foreach(plugin, ["TestPlugin", "DoublerPlugin"]) {
+ foreach(plugin,
+ [
+ "TestPlugin",
+ "DoublerPlugin",
+ ]) {
loadable_module(plugin) {
# Put plugin next to the unit test executable.
output_dir = target_out_dir
More information about the llvm-commits
mailing list