[llvm] 532c206 - [gn build] Reformat all build files
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 11 08:05:03 PDT 2022
Author: Nico Weber
Date: 2022-10-11T11:04:43-04:00
New Revision: 532c206141e5f85426a832d408772aedd98f6491
URL: https://github.com/llvm/llvm-project/commit/532c206141e5f85426a832d408772aedd98f6491
DIFF: https://github.com/llvm/llvm-project/commit/532c206141e5f85426a832d408772aedd98f6491.diff
LOG: [gn build] Reformat all build files
Ran:
git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format
Added:
Modified:
llvm/utils/gn/build/compiled_action.gni
llvm/utils/gn/secondary/clang-tools-extra/pseudo/include/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
llvm/utils/gn/secondary/clang/lib/Analysis/FlowSensitive/BUILD.gn
llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/BUILD.gn
llvm/utils/gn/secondary/lldb/source/Target/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/tools/llvm-mca/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/compiled_action.gni b/llvm/utils/gn/build/compiled_action.gni
index 697fe3de2a9e5..599ab31fe1a6d 100644
--- a/llvm/utils/gn/build/compiled_action.gni
+++ b/llvm/utils/gn/build/compiled_action.gni
@@ -64,11 +64,10 @@ template("compiled_action") {
"visibility",
])
host_tool = invoker.tool + "($host_toolchain)"
- host_executable = get_label_info(host_tool, "root_out_dir") +
- "/bin/" + get_label_info(host_tool, "name")
+ host_executable = get_label_info(host_tool, "root_out_dir") + "/bin/" +
+ get_label_info(host_tool, "name")
deps = [ host_tool ]
script = "//llvm/utils/gn/build/run_built_binary.py"
args = [ rebase_path(host_executable, root_build_dir) ] + invoker.args
}
}
-
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/include/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/include/BUILD.gn
index 8a8625533ec02..a38d7d0a5e72a 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/include/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/include/BUILD.gn
@@ -30,8 +30,8 @@ config("cxx_gen_config") {
group("cxx_gen") {
deps = [
- ":CXXSymbols.inc",
":CXXBNF.inc",
+ ":CXXSymbols.inc",
]
# Let targets depending on this find the generated files.
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
index d7378708389e6..6407a73c4aa21 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
@@ -11,4 +11,3 @@ static_library("grammar") {
"LRTableBuild.cpp",
]
}
-
diff --git a/llvm/utils/gn/secondary/clang/lib/Analysis/FlowSensitive/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Analysis/FlowSensitive/BUILD.gn
index e8220a0218cd5..f5f58a57f13db 100644
--- a/llvm/utils/gn/secondary/clang/lib/Analysis/FlowSensitive/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Analysis/FlowSensitive/BUILD.gn
@@ -9,9 +9,9 @@ static_library("FlowSensitive") {
"ControlFlowContext.cpp",
"DataflowAnalysisContext.cpp",
"DataflowEnvironment.cpp",
+ "DebugSupport.cpp",
"Transfer.cpp",
"TypeErasedDataflowAnalysis.cpp",
"WatchedLiteralsSolver.cpp",
- "DebugSupport.cpp",
]
}
diff --git a/llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/BUILD.gn b/llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/BUILD.gn
index e7c8a24e1f18c..61b60203676ab 100644
--- a/llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/BUILD.gn
+++ b/llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/BUILD.gn
@@ -22,6 +22,7 @@ static_library("Darwin-Kernel") {
"//lldb/source/Symbol",
"//lldb/source/Target",
"//lldb/source/Utility",
+
# "//lldb/source/Plugins/Platform/MacOSX", # Dependency cycle
"//llvm/lib/Support",
]
diff --git a/llvm/utils/gn/secondary/lldb/source/Target/BUILD.gn b/llvm/utils/gn/secondary/lldb/source/Target/BUILD.gn
index 211742d4cdd9b..fc8528d03ecbe 100644
--- a/llvm/utils/gn/secondary/lldb/source/Target/BUILD.gn
+++ b/llvm/utils/gn/secondary/lldb/source/Target/BUILD.gn
@@ -94,8 +94,8 @@ static_library("Target") {
"ThreadSpec.cpp",
"Trace.cpp",
"TraceCursor.cpp",
- "TraceExporter.cpp",
"TraceDumper.cpp",
+ "TraceExporter.cpp",
"UnixSignals.cpp",
"UnwindAssembly.cpp",
"UnwindLLDB.cpp",
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn
index 9d0c00047a356..2283581d58188 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn
@@ -21,7 +21,7 @@ executable("llvm-dwarfutil") {
"//llvm/lib/Target:AllTargetsInfos",
]
sources = [
- "llvm-dwarfutil.cpp",
"DebugInfoLinker.cpp",
+ "llvm-dwarfutil.cpp",
]
}
diff --git a/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
index 9be3fb53b5f4b..ff79573ce3de1 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
@@ -53,8 +53,8 @@ group("unittests") {
"XRay:XRayTests",
"tools/llvm-cfi-verify:CFIVerifyTests",
"tools/llvm-exegesis:LLVMExegesisTests",
- "tools/llvm-profgen:LLVMProfgenTests",
"tools/llvm-mca:LLVMMCATests",
+ "tools/llvm-profgen:LLVMProfgenTests",
]
# Target-dependent unit tests.
diff --git a/llvm/utils/gn/secondary/llvm/unittests/tools/llvm-mca/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/tools/llvm-mca/BUILD.gn
index 800dcabe3e194..9d79fb73aab33 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/tools/llvm-mca/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/tools/llvm-mca/BUILD.gn
@@ -12,9 +12,7 @@ unittest("LLVMMCATests") {
deps += [ "X86" ]
}
- sources = [
- "MCATestBase.cpp",
- ]
+ sources = [ "MCATestBase.cpp" ]
# FIXME: Why is this so complicated in the cmake file?
mca_views_sources = [ "SummaryView.cpp" ]
More information about the llvm-commits
mailing list