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

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

Issue 2246263002: Skip parameter replacements where old text != old name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Detecting buggy ParmVarDecls without looking at the source text. Created 4 years, 4 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/template-expected.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/template-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/template-expected.cc
index c481a68ed4b16e30fdbf573f6dd7cfa1f3291a2c..c9a1fe8d4cb85257ff2f9df69854915c25b7d1f0 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/template-expected.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/template-expected.cc
@@ -140,4 +140,25 @@ struct Class2 {
} // namespace test_template_arg_is_method_template_in_member_context
+namespace test_unnamed_arg {
+
+template <typename T>
+class Class {
+ public:
+ // Test for https://crbug.com/598141 - shouldn't rewrite
+ // ...int);
+ // into
+ // ...intdata_size;
+ void F(int);
+};
+
+template <typename T>
+void Class<T>::F(int data_size){};
+
+void Foo() {
+ Class<char>().F(123);
+};
+
+} // namespace test_unnamed_arg
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698