Skip to content

Commit aed52fd

Browse files
committed
[gn build] make "gn format" comment slightly more concise
1 parent d6a9b7e commit aed52fd

File tree

4 files changed

+11
-20
lines changed

4 files changed

+11
-20
lines changed

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

+4-6
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ static_library("builtins") {
174174

175175
if (current_os != "fuchsia" && !compiler_rt_baremetal_build) {
176176
sources += [
177-
# This comment prevents `gn format` from putting the file on the same line
178-
# as `sources +=`, for sync_source_lists_from_cmake.py.
177+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
179178
"clear_cache.c",
180179
]
181180
}
@@ -425,14 +424,13 @@ static_library("builtins") {
425424

426425
if (current_cpu == "arm64") {
427426
sources += [
428-
# This comment prevents `gn format` from putting the file on the same line
429-
# as `sources +=`, for sync_source_lists_from_cmake.py.
427+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
430428
"aarch64/fp_mode.c",
431429
]
432430
if (current_os == "mingw") {
433431
sources += [
434-
# This comment prevents `gn format` from putting the file on the same
435-
# line as `sources +=`, for sync_source_lists_from_cmake.py.
432+
# Make `gn format` not collapse this, for
433+
# sync_source_lists_from_cmake.py.
436434
"aarch64/chkstk.S",
437435
]
438436
}

llvm/utils/gn/secondary/libcxx/src/BUILD.gn

+2-4
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ if (target_os == "win") {
172172
}
173173
if (target_os == "solaris") {
174174
cxx_sources += [
175-
# This comment prevents `gn format` from putting the file on the same line
176-
# as `sources +=`, for sync_source_lists_from_cmake.py.
175+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
177176
"support/solaris/xlocale.cpp",
178177
]
179178
}
@@ -185,8 +184,7 @@ if (libcxx_enable_filesystem) {
185184
]
186185
if (libcxx_use_compiler_rt) {
187186
cxx_sources += [
188-
# This comment prevents `gn format` from putting the file on the same line
189-
# as `sources +=`, for sync_source_lists_from_cmake.py.
187+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
190188
"filesystem/int128_builtins.cpp",
191189
]
192190
}

llvm/utils/gn/secondary/libcxxabi/src/BUILD.gn

+3-6
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ declare_args() {
1818
}
1919

2020
cxxabi_headers = [
21-
# This comment prevents `gn format` from putting the file on the same line
22-
# as `sources +=`, for sync_source_lists_from_cmake.py.
21+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
2322
"../include/cxxabi.h",
2423
]
2524

@@ -55,15 +54,13 @@ if (libcxxabi_enable_exceptions) {
5554
]
5655
} else {
5756
cxxabi_sources += [
58-
# This comment prevents `gn format` from putting the file on the same line
59-
# as `sources +=`, for sync_source_lists_from_cmake.py.
57+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
6058
"cxa_noexception.cpp",
6159
]
6260
}
6361
if (target_os == "linux" || target_os == "fuchsia") {
6462
cxxabi_sources += [
65-
# This comment prevents `gn format` from putting the file on the same line
66-
# as `sources +=`, for sync_source_lists_from_cmake.py.
63+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
6764
"cxa_thread_atexit.cpp",
6865
]
6966
}

llvm/utils/gn/secondary/libunwind/src/BUILD.gn

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ unwind_headers = [
1717
]
1818
if (target_os == "mac") {
1919
unwind_headers += [
20-
# This comment prevents `gn format` from putting the file on the same line
21-
# as `sources +=`, for sync_source_lists_from_cmake.py.
20+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
2221
"../include/mach-o/compact_unwind_encoding.h",
2322
]
2423
}
@@ -46,8 +45,7 @@ unwind_sources = [
4645
]
4746
if (target_os == "mac") {
4847
unwind_sources += [
49-
# This comment prevents `gn format` from putting the file on the same line
50-
# as `sources +=`, for sync_source_lists_from_cmake.py.
48+
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
5149
"Unwind_AppleExtras.cpp",
5250
]
5351
}

0 commit comments

Comments
 (0)