Skip to content

Commit cf838eb

Browse files
committed
[gn build] Reformat all files
Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`. No behavior change.
1 parent a00944e commit cf838eb

File tree

12 files changed

+19
-16
lines changed

12 files changed

+19
-16
lines changed

llvm/utils/gn/build/BUILD.gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ config("no_rtti") {
370370
config("zdefs") {
371371
# -Wl,-z,defs doesn't work with sanitizers.
372372
# https://clang.llvm.org/docs/AddressSanitizer.html
373-
if (current_os != "ios" && current_os != "mac" && current_os != "win" && !(use_asan || use_tsan || use_ubsan)) {
373+
if (current_os != "ios" && current_os != "mac" && current_os != "win" &&
374+
!(use_asan || use_tsan || use_ubsan)) {
374375
ldflags = [ "-Wl,-z,defs" ]
375376
}
376377
}

llvm/utils/gn/secondary/clang/unittests/Interpreter/ExceptionTests/BUILD.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ unittest("ClangReplInterpreterExceptionTests") {
99
deps = [
1010
"//clang/lib/AST",
1111
"//clang/lib/Basic",
12-
"//clang/lib/Interpreter",
1312
"//clang/lib/Frontend",
14-
"//llvm/lib/IR",
13+
"//clang/lib/Interpreter",
1514
"//llvm/lib/ExecutionEngine/Orc",
15+
"//llvm/lib/IR",
1616
"//llvm/lib/Support",
1717
"//llvm/lib/Target:TargetsToBuild",
1818
]

llvm/utils/gn/secondary/compiler-rt/BUILD.gn

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ if (android_ndk_path != "") {
1818
]
1919
}
2020
group("compiler-rt") {
21-
deps = [
22-
"//compiler-rt/include($host_toolchain)",
23-
]
21+
deps = [ "//compiler-rt/include($host_toolchain)" ]
2422
foreach(toolchain, supported_toolchains) {
2523
deps += [ "//compiler-rt/lib($toolchain)" ]
2624
}

llvm/utils/gn/secondary/lld/COFF/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ static_library("COFF") {
2727
"//llvm/lib/WindowsManifest",
2828
]
2929
sources = [
30+
"COFFLinkerContext.cpp",
3031
"CallGraphSort.cpp",
3132
"Chunks.cpp",
32-
"COFFLinkerContext.cpp",
3333
"DLL.cpp",
3434
"DebugTypes.cpp",
3535
"Driver.cpp",

llvm/utils/gn/secondary/lldb/include/lldb/Host/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ write_cmake_config("Config") {
5252
"LLDB_ENABLE_TERMIOS=1",
5353
]
5454
}
55-
55+
5656
if (current_os == "win" || current_os == "linux" || current_os == "android") {
5757
values += [ "HAVE_SYS_EVENT_H=" ]
5858
} else {

llvm/utils/gn/secondary/lldb/source/Plugins/BUILD.gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ write_cmake_config("Plugins.def") {
215215
# These are in separate variables to make sure ProcessWindowsCommon is
216216
# initalized after all plugins, but before ProcessGDBRemote.
217217
if (current_os == "win") {
218-
values += [ "LLDB_PROCESS_WINDOWS_PLUGIN=LLDB_PLUGIN(ProcessWindowsCommon)" ]
218+
values +=
219+
[ "LLDB_PROCESS_WINDOWS_PLUGIN=LLDB_PLUGIN(ProcessWindowsCommon)" ]
219220
} else {
220221
values += [ "LLDB_PROCESS_WINDOWS_PLUGIN=" ]
221222
}

llvm/utils/gn/secondary/lldb/source/Plugins/ObjectFile/JIT/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ static_library("JIT") {
99
#"//lldb/source/Target", # 2-hop dependency cycle.
1010
"//llvm/lib/Support",
1111
]
12+
1213
# For Utility/UuidCompatibility.h.
1314
include_dirs = [ "//lldb/source" ]
1415
sources = [ "ObjectFileJIT.cpp" ]

llvm/utils/gn/secondary/lldb/source/Plugins/Platform/Linux/BUILD.gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ static_library("Linux") {
99
"//lldb/source/Core",
1010
"//lldb/source/Host",
1111
"//lldb/source/Interpreter",
12-
"//lldb/source/Target",
1312
"//lldb/source/Plugins/Platform/POSIX",
13+
"//lldb/source/Target",
1414
]
15+
1516
# Reaches into Plugins/Platform/POSIX.
1617
include_dirs = [ "//lldb/source" ]
1718
sources = [ "PlatformLinux.cpp" ]

llvm/utils/gn/secondary/lldb/source/Plugins/Process/Linux/BUILD.gn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ static_library("Linux") {
44
deps = [
55
"//lldb/source/Core",
66
"//lldb/source/Host",
7+
"//lldb/source/Plugins/Process/POSIX",
8+
"//lldb/source/Plugins/Process/Utility",
79
"//lldb/source/Symbol",
810
"//lldb/source/Target",
911
"//lldb/source/Utility",
10-
"//lldb/source/Plugins/Process/POSIX",
11-
"//lldb/source/Plugins/Process/Utility",
1212
"//llvm/lib/Support",
1313
]
14+
1415
# Uses source-relative includes for own headers.
1516
include_dirs = [ "//lldb/source" ]
1617
sources = [
@@ -26,4 +27,3 @@ static_library("Linux") {
2627
"SingleStepCheck.cpp",
2728
]
2829
}
29-

llvm/utils/gn/secondary/lldb/source/Plugins/Process/POSIX/BUILD.gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ static_library("POSIX") {
22
output_name = "lldbPluginProcessPOSIX"
33
configs += [ "//llvm/utils/gn/build:lldb_code" ]
44
deps = [
5-
"//lldb/source/Utility",
65
"//lldb/source/Plugins/Process/Utility",
6+
"//lldb/source/Utility",
77
"//llvm/lib/Support",
88
]
9+
910
# Reaches into Plugins/Platform/Process/Utility.
1011
include_dirs = [ "//lldb/source" ]
1112
sources = [

llvm/utils/gn/secondary/lldb/tools/driver/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ executable("lldb") {
4343
if (current_os == "linux") {
4444
deps += [ "//lldb/tools/lldb-server" ]
4545
}
46-
foreach (toolchain, supported_toolchains) {
46+
foreach(toolchain, supported_toolchains) {
4747
deps += [ "//lldb/tools/lldb-server($toolchain)" ]
4848
}
4949

llvm/utils/gn/secondary/lldb/tools/lldb-server/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ executable("lldb-server") {
1818
"//lldb/source:lldbBase",
1919
"//lldb/source/Host",
2020
"//lldb/source/Initialization",
21-
2221
"//lldb/source/Plugins/Instruction/ARM",
22+
2323
#"//lldb/source/Plugins/Instruction/MIPS", # XXX
2424
#"//lldb/source/Plugins/Instruction/MIPS64", # XXX
2525
"//llvm/lib/Option",

0 commit comments

Comments
 (0)