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

Unified Diff: tools/gn/format_test_data/042.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: . 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
Index: tools/gn/format_test_data/042.gn
diff --git a/tools/gn/format_test_data/042.gn b/tools/gn/format_test_data/042.gn
index db830fb31f2ce70728ecfce3798eb0d696768db7..7affa70391c060a912d5237c2f12d0c1140ba03b 100644
--- a/tools/gn/format_test_data/042.gn
+++ b/tools/gn/format_test_data/042.gn
@@ -1,16 +1,41 @@
-# Test both one element and two element for specifically name LHSs.
+# Test zero, one, and multiple element for specifically named LHSs.
if (true) {
+ cflags = []
+ cflags_c = []
+ cflags_cc = []
+ data = []
+ datadeps = []
+ defines = []
+ deps = []
+ include_dirs = []
+ inputs = []
+ ldflags = []
+ public_deps = []
+ sources = []
+} else if (true) {
+ cflags = [ "x" ]
+ cflags_c = [ "x" ]
+ cflags_cc = [ "x" ]
+ data = [ "x" ]
+ datadeps = [ "x" ]
+ defines = [ "x" ]
deps = [ "x" ]
- sources = [ "x" ]
+ include_dirs = [ "x" ]
+ inputs = [ "x" ]
+ ldflags = [ "x" ]
public_deps = [ "x" ]
- include_dirs = ["x"]
- defines = ["x"]
- cflags = ["x"]
+ sources = [ "x" ]
} else {
- deps = [ "x", "y" ]
- sources = [ "x", "y" ]
- public_deps = [ "x", "y" ]
- include_dirs = ["x", "y"]
- defines = ["x", "y"]
- cflags = ["x", "y"]
+ cflags = [ "x", "y", "z"]
+ cflags_c = [ "x", "y", "z"]
+ cflags_cc = [ "x", "y", "z"]
+ data = [ "x", "y", "z"]
+ datadeps = [ "x", "y", "z"]
+ defines = [ "x", "y", "z"]
+ deps = [ "x", "y", "z"]
+ include_dirs = [ "x", "y", "z"]
+ inputs = [ "x", "y", "z"]
+ ldflags = [ "x", "y", "z"]
+ public_deps = [ "x", "y", "z"]
+ sources = [ "x", "y", "z"]
}

Powered by Google App Engine
This is Rietveld 408576698