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

Side by Side Diff: tools/gn/format_test_data/063.golden

Issue 1496653002: Sort "deps" and "public_deps" when running the "gn format" command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments & add some test cases Created 5 years 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 unified diff | Download patch
« no previous file with comments | « tools/gn/format_test_data/063.gn ('k') | tools/gn/parse_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 source_set("test") { 1 source_set("test") {
2 a = "a"
3 b = "b"
2 deps = [ 4 deps = [
5 ":a",
3 ":b", 6 ":b",
4 "../d", 7 "a",
8 "a:a",
9 "a:b",
10 "a/a",
11 "a/b",
12 "b",
5 "//a", 13 "//a",
6 "//c", 14 "//a:a",
15 "//a:b",
16 "//a/a",
17 "//a/b",
18 "//b",
19 a,
20 b,
7 ] 21 ]
8 22
9 public_deps = [] 23 public_deps = []
10 if (condition) { 24 if (condition) {
11 public_deps += [ 25 public_deps += [
12 ":x", 26 ":a",
13 "../z", 27 "a",
14 "//w", 28 "a:a",
15 "//y", 29 "a/a",
30 "//a",
31 "//a:a",
32 "//a/a",
33 a,
16 ] 34 ]
17 } 35 }
18 } 36 }
OLDNEW
« no previous file with comments | « tools/gn/format_test_data/063.gn ('k') | tools/gn/parse_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698