| 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 cc764900833737b99dc014d4b57bb7e18f4aead3..8dc9b78932e6ae947f4a8e528b074fea5e71814e 100644
|
| --- a/tools/clang/rewrite_to_chrome_style/tests/methods-original.cc
|
| +++ b/tools/clang/rewrite_to_chrome_style/tests/methods-original.cc
|
| @@ -16,7 +16,16 @@ class Task {
|
| // Note: this is purposely copyable and assignable, to make sure the Clang
|
| // tool doesn't try to emit replacements for things that aren't explicitly
|
| // written.
|
| - // TODO(dcheng): Add an explicit test for something like operator+.
|
| +
|
| + // Overloaded operators should not be rewritten.
|
| + Task& operator++() {
|
| + return *this;
|
| + }
|
| +
|
| + // Conversion functions should not be rewritten.
|
| + explicit operator int() const {
|
| + return 42;
|
| + }
|
| };
|
|
|
| // Test that the actual method definition is also updated.
|
|
|