From 377320fe80b29c19a38b6d8cbd017c30d5976850 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 22 Jul 2021 21:35:35 -0400 Subject: [PATCH] [gn build] Reformat all gn files Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`. --- llvm/utils/gn/build/BUILD.gn | 5 ++++- llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn | 2 +- .../gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn | 2 +- llvm/utils/gn/secondary/llvm/lib/Target/ARM/BUILD.gn | 2 +- llvm/utils/gn/secondary/llvm/tools/llvm-dwp/BUILD.gn | 2 +- llvm/utils/gn/secondary/llvm/tools/llvm-sim/BUILD.gn | 4 +--- llvm/utils/gn/secondary/llvm/tools/llvm-tapi-diff/BUILD.gn | 2 +- llvm/utils/gn/secondary/llvm/unittests/MIR/BUILD.gn | 7 +++---- llvm/utils/gn/secondary/llvm/unittests/Passes/BUILD.gn | 6 +++++- 9 files changed, 18 insertions(+), 14 deletions(-) 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/FileCheck", - "//llvm/lib/MC", "//llvm/lib/CodeGen/MIRParser", + "//llvm/lib/FileCheck", + "//llvm/lib/IR", + "//llvm/lib/MC", "//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