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

Unified Diff: tools/clang/rewrite_to_chrome_style/tests/fields-original.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
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d93d98629185ac53ee6ce00a043d29ee5f5862f5..d2c1b4dc81a68022890d63ea1d910aa46258d650 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
@@ -150,6 +150,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() {
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698