Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Unified Diff: tools/clang/rewrite_to_chrome_style/tests/fields-original.cc

Issue 1753563003: rewrite_to_chrome_style: Improve naming of iterator and type traits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clang-structs: test Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698