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 12165b7ad788fcb05f1e2009d5e57fd1f7ee344c..d45e27b52f00f7638a9b42b9cd4781887436faa5 100644 |
--- a/tools/clang/rewrite_to_chrome_style/tests/methods-original.cc |
+++ b/tools/clang/rewrite_to_chrome_style/tests/methods-original.cc |
@@ -176,6 +176,23 @@ struct StructInBlink { |
bool function() { return true; } |
}; |
+class BitVector { |
+ public: |
+ class OutOfLineBits {}; |
+ enum Foo { Blah }; |
+ struct Bar {}; |
+ |
+ // Naive renaming will break the build, by leaving return type the same |
+ // as method the name - to avoid this "Get" prefix needs to be prepended |
+ // as suggested in https://crbug.com/582312#c17. |
+ const OutOfLineBits* outOfLineBits() const { return nullptr; } |
+ Foo foo() { return Blah; } |
+ const Bar& bar() const { return m_bar; } |
+ |
+ private: |
+ Bar m_bar; |
+}; |
+ |
} // namespace blink |
namespace WTF { |