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

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

Issue 2256913002: Handling of DependentScopeDeclRefExpr and CXXDependentScopeMemberExpr nodes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-style-new-clang
Patch Set: Tweaked a comment + fixed a typo. Created 4 years 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 726c521584cdb40de74072f4f6e4ac8f8e18cec6..d93d98629185ac53ee6ce00a043d29ee5f5862f5 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
@@ -142,6 +142,14 @@ struct LifetimeOf {
!isGarbageCollected ? RefCountedLifetime : GarbageCollectedLifetime;
};
+template <typename T>
+struct GenericHashTraitsBase {
+ // We don't want to capitalize fields in type traits
+ // (i.e. the |value| -> |kValue| rename is undesirable below).
+ // This problem is prevented by IsCallee heuristic.
+ static const int kWeakHandlingFlag = TypeTrait2<T>::value ? 123 : 456;
+};
+
}; // namespace WTF
void F() {

Powered by Google App Engine
This is Rietveld 408576698