Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: tools/gn/format_test_data/048.gn

Issue 748863003: gn format: penalty-based scheme for line breaking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-more-disabled
Patch Set: x64 Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/format_test_data/047.golden ('k') | tools/gn/format_test_data/048.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/format_test_data/048.gn
diff --git a/tools/gn/format_test_data/048.gn b/tools/gn/format_test_data/048.gn
new file mode 100644
index 0000000000000000000000000000000000000000..7d39efb68c43e1f343ecc6e5e24358fa2312f39b
--- /dev/null
+++ b/tools/gn/format_test_data/048.gn
@@ -0,0 +1,19 @@
+# No blank inserted after libs (caused by trailing comment on 'else').
+component("google_toolbox_for_mac") {
+ if (!is_ios) {
+ sources += [
+ "src/AddressBook/GTMABAddressBook.h",
+ "src/AddressBook/GTMABAddressBook.m",
+ ]
+
+ libs = [
+ "AddressBook.framework",
+ "AppKit.framework",
+ ]
+ } else { # is_ios
+ sources += [
+ "src/iPhone/GTMFadeTruncatingLabel.h",
+ "src/iPhone/GTMFadeTruncatingLabel.m",
+ ]
+ }
+}
« no previous file with comments | « tools/gn/format_test_data/047.golden ('k') | tools/gn/format_test_data/048.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698