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..b75a0c65a3a71b9fd63bc66ceeea50934d574d18 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,22 @@ 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() {} |
+ // The trace() method is used by Oilpan, we shouldn't rename it. |
+ void trace() {} |
+}; |
+ |
+class Other { |
+ // Static begin/end/trace don't count, and should be renamed. |
+ static void begin() {} |
+ static void end() {} |
+ static void trace() {} |
}; |
// Test that the actual method definition is also updated. |