Index: tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc |
diff --git a/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc |
index 0b35d834a63bd59fdcfe948b60b48a9f623d0a30..e3598491c8fd14f4cfd84b194c5541f5afc4bbc4 100644 |
--- a/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc |
+++ b/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc |
@@ -22,6 +22,19 @@ class Task { |
// Conversion functions should not be rewritten. |
explicit operator int() const { return 42; } |
+ |
+ // These are special functions that we don't rename so that range-based |
+ // for loops and STL things work. |
+ void begin() {} |
+ void end() {} |
+ void rbegin() {} |
+ void rend() {} |
+}; |
+ |
+class Other { |
+ // Static begin/end don't count, and should be renamed. |
+ static void Begin() {} |
+ static void End() {} |
}; |
// Test that the actual method definition is also updated. |