Index: tools/clang/rewrite_to_chrome_style/tests/methods-original.cc |
diff --git a/tools/clang/rewrite_to_chrome_style/tests/methods-original.cc b/tools/clang/rewrite_to_chrome_style/tests/methods-original.cc |
index 8dc9b78932e6ae947f4a8e528b074fea5e71814e..e2ca6203a737d5f23f40bec754d6c6b86d56e4ed 100644 |
--- a/tools/clang/rewrite_to_chrome_style/tests/methods-original.cc |
+++ b/tools/clang/rewrite_to_chrome_style/tests/methods-original.cc |
@@ -26,6 +26,19 @@ class Task { |
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. |