| Index: tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
|
| diff --git a/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc b/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
|
| index ac3e8794fc060e5a4add36d2580bf13c2d17f5ee..32e5d8155a57b48e0e3ccc30a043e2d5a1fcf2a8 100644
|
| --- a/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
|
| +++ b/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
|
| @@ -57,6 +57,16 @@ union U {
|
|
|
| } // namespace blink
|
|
|
| +namespace WTF {
|
| +
|
| +struct TypeTrait {
|
| + // WTF has structs for things like type traits, which we don't want to
|
| + // capitalize.
|
| + static const bool value = true;
|
| +};
|
| +
|
| +}; // namespace WTF
|
| +
|
| void F() {
|
| // Test that references to a static field are correctly rewritten.
|
| blink::C::instanceCount++;
|
| @@ -64,4 +74,6 @@ void F() {
|
| // initializers for synthesized functions don't cause weird rewrites.
|
| blink::C c;
|
| blink::C c2 = c;
|
| +
|
| + bool b = WTF::TypeTrait::value;
|
| }
|
|
|