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

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

Issue 1766163002: gn format: Support # NOSORT to disable sorting of blocks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months 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/command_format_unittest.cc ('k') | tools/gn/format_test_data/066.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/format_test_data/066.gn
diff --git a/tools/gn/format_test_data/066.gn b/tools/gn/format_test_data/066.gn
new file mode 100644
index 0000000000000000000000000000000000000000..c62eb2ae6ec738ea1e73234b88aee54bff8b6c72
--- /dev/null
+++ b/tools/gn/format_test_data/066.gn
@@ -0,0 +1,30 @@
+# Suppress sorting based on comment.
+
+# NOSORT
+sources = []
+
+# NOSORT
+sources = [
+ "a",
+]
+
+# NOSORT
+sources += [
+ "a",
+]
+
+# NOSORT
+sources = [
+ "z",
+ "z2",
+ "a",
+ "y.cc",
+]
+
+# NOSORT
+sources += [
+ "z",
+ "z2",
+ "a",
+ "y.cc",
+]
« no previous file with comments | « tools/gn/command_format_unittest.cc ('k') | tools/gn/format_test_data/066.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698