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

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

Issue 2601403002: Expand recognized type trait value types from bool-or-enum to builtin-or-enum. (Closed)
Patch Set: s/loosly/loosely/g Created 3 years, 11 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-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 e0f87b1b685388b8d0cf68da6b75af3e06681277..e59d5328f82e21b99a6d019bfa36c690bf075bed 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
@@ -153,6 +153,13 @@ struct GenericHashTraitsBase {
static const int kWeakHandlingFlag = TypeTrait2<T>::value ? 123 : 456;
};
+template <int Format>
+struct IntermediateFormat {
+ // Some type traits have int type. Example below is loosely based on
+ // third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
+ static const int value = (Format == 123) ? 456 : 789;
+};
+
}; // namespace WTF
void F() {

Powered by Google App Engine
This is Rietveld 408576698