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

Unified Diff: tools/gn/parse_tree.cc

Issue 595753002: gn: handle continued suffix comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-append-comment
Patch Set: Created 6 years, 3 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
Index: tools/gn/parse_tree.cc
diff --git a/tools/gn/parse_tree.cc b/tools/gn/parse_tree.cc
index fedb00433e9a658599ebb080703dced501f5015a..173899c951fbc3eea1c865e4d384cdfc40b257f6 100644
--- a/tools/gn/parse_tree.cc
+++ b/tools/gn/parse_tree.cc
@@ -27,6 +27,11 @@ Comments::Comments() {
Comments::~Comments() {
}
+void Comments::ReverseSuffix() {
+ for (int i = 0, j = static_cast<int>(suffix_.size() - 1); i < j; ++i, --j)
+ std::swap(suffix_[i], suffix_[j]);
+}
+
ParseNode::ParseNode() {
}
« no previous file with comments | « tools/gn/parse_tree.h ('k') | tools/gn/parser.cc » ('j') | tools/gn/parser_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698