| Index: tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
|
| diff --git a/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
|
| index d26657a497fbeb77ddedd31ffcc9d5f567eabea3..58c9dc6724525f86ab7ad01bc439b936b47d4a42 100644
|
| --- a/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
|
| +++ b/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
|
| @@ -69,12 +69,25 @@ union U {
|
|
|
| namespace WTF {
|
|
|
| -struct TypeTrait {
|
| - // WTF has structs for things like type traits, which we don't want to
|
| - // capitalize.
|
| +// We don't want to capitalize fields in type traits
|
| +// (i.e. no |value| -> |kValue| rename is undesirable below).
|
| +struct TypeTrait1 {
|
| static const bool value = true;
|
| };
|
|
|
| +// Some type traits are implemented as classes, not structs
|
| +// (e.g. WTF::IsGarbageCollectedType or WTF::IsAssignable).
|
| +template <typename T>
|
| +class TypeTrait2 {
|
| + public:
|
| + static const bool value = false;
|
| +};
|
| +template <>
|
| +class TypeTrait2<void> {
|
| + public:
|
| + static const bool value = false;
|
| +};
|
| +
|
| }; // namespace WTF
|
|
|
| void F() {
|
| @@ -85,5 +98,6 @@ void F() {
|
| blink::C c;
|
| blink::C c2 = c;
|
|
|
| - bool b = WTF::TypeTrait::value;
|
| + bool b1 = WTF::TypeTrait1::value;
|
| + bool b2 = WTF::TypeTrait2<void>::value;
|
| }
|
|
|