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

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

Issue 2597863002: rewrite_to_chrome_style: associate replacements with the affected file (Closed)
Patch Set: . 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/methods-expected.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
index 327d3b1ef371edafe2eb9dc7e9c4ee6c691a9efe..ddc092eb4309689371e9d1216695e248583bb96f 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
@@ -50,10 +50,10 @@ class Task {
// These are special functions that we don't rename so that range-based
// for loops and STL things work.
- MyIterator begin() {}
- my_iterator end() {}
- my_iterator rbegin() {}
- MyIterator rend() {}
+ MyIterator begin() { return {}; }
+ my_iterator end() { return {}; }
+ my_iterator rbegin() { return {}; }
+ MyIterator rend() { return {}; }
// The trace() method is used by Oilpan, but we plan to tweak the Oilpan's
// clang plugin, so that it recognizes the new method name.
void Trace() {}
@@ -65,8 +65,8 @@ class Task {
class Other {
// Static begin/end/trace don't count, and should be renamed.
- static MyIterator Begin() {}
- static my_iterator End() {}
+ static MyIterator Begin() { return {}; }
+ static my_iterator End() { return {}; }
static void Trace() {}
static void Lock() {}
};

Powered by Google App Engine
This is Rietveld 408576698