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

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

Issue 1639133004: rewrite_to_chrome_style: skip nodes in synthesized functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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-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 2710d237efcc4d2afd7dc1710e3a49cb22d64084..0f5cd7428088d8f6307c114d2099bebfe28b3246 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/fields-original.cc
@@ -50,4 +50,8 @@ union U {
void F() {
// Test that references to a static field are correctly rewritten.
blink::C::instanceCount++;
+ // Force instantiation of a copy constructor for blink::C to make sure field
dcheng 2016/01/28 06:07:32 I couldn't repro this with an explicitly defaulted
+ // initializers for synthesized functions don't cause weird rewrites.
+ blink::C c;
+ blink::C c2 = c;
}

Powered by Google App Engine
This is Rietveld 408576698