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

Issue 1753563003: rewrite_to_chrome_style: Improve naming of iterator and type traits. (Closed)

Created:
4 years, 9 months ago by danakj
Modified:
4 years, 9 months ago
Reviewers:
dcheng
CC:
chromium-reviews, piman, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

rewrite_to_chrome_style: Improve naming of iterator and type traits. 1) Type trait structs in WTF should keep constants as "value" rather than as "kValue". 2) begin() and end() should be renamed to Begin() and End() unless they actually return an iterator. R=dcheng BUG=584099 Committed: https://crrev.com/f362850470bb5f63c84013c04b52b3ec35fcb3b2 Cr-Commit-Position: refs/heads/master@{#378671}

Patch Set 1 #

Patch Set 2 : clang-structs: . #

Patch Set 3 : clang-structs: . #

Total comments: 11

Patch Set 4 : clang-structs: reviews #

Total comments: 2

Patch Set 5 : clang-structs: test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -26 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 3 4 chunks +41 lines, -12 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/fields-original.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc View 1 2 3 4 4 chunks +42 lines, -6 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-original.cc View 1 2 3 4 4 chunks +42 lines, -6 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/wtf-expected.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/wtf-original.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
danakj
4 years, 9 months ago (2016-03-01 23:41:30 UTC) #1
dcheng
https://codereview.chromium.org/1753563003/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1753563003/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode78 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:78: bool blink, The double bools here are kind of ...
4 years, 9 months ago (2016-03-01 23:58:03 UTC) #2
danakj
https://codereview.chromium.org/1753563003/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1753563003/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode90 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:90: bool IsBlinkOrWtfMethod(const clang::CXXMethodDecl& decl, On 2016/03/01 23:58:02, dcheng wrote: ...
4 years, 9 months ago (2016-03-02 00:32:12 UTC) #3
danakj
PTAL
4 years, 9 months ago (2016-03-02 00:32:20 UTC) #4
dcheng
lgtm assuming the rewriter handles the extra test case I proposed https://codereview.chromium.org/1753563003/diff/60001/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc File tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc (right): ...
4 years, 9 months ago (2016-03-02 00:35:20 UTC) #5
dcheng
https://codereview.chromium.org/1753563003/diff/60001/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc File tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc (right): https://codereview.chromium.org/1753563003/diff/60001/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc#newcode8 tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc:8: using my_iterator = MyIterator; On 2016/03/02 at 00:35:19, dcheng ...
4 years, 9 months ago (2016-03-02 00:37:00 UTC) #6
danakj
On 2016/03/02 00:37:00, dcheng wrote: > https://codereview.chromium.org/1753563003/diff/60001/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc > File tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc (right): > > https://codereview.chromium.org/1753563003/diff/60001/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc#newcode8 > ...
4 years, 9 months ago (2016-03-02 01:00:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1753563003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1753563003/80001
4 years, 9 months ago (2016-03-02 01:02:46 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-02 03:19:07 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 03:20:16 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f362850470bb5f63c84013c04b52b3ec35fcb3b2
Cr-Commit-Position: refs/heads/master@{#378671}

Powered by Google App Engine
This is Rietveld 408576698