Index: tools/gn/parse_tree.cc |
diff --git a/tools/gn/parse_tree.cc b/tools/gn/parse_tree.cc |
index a1d969a1089465827fe3061a40369dfb1b7929d0..fe26c15cdc8fec87d5db6c0e05754fd55b413b5b 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() { |
} |