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

Issue 1838713002: rewrite_to_chrome_style: improve template rewrite handling (Closed)

Created:
4 years, 9 months ago by dcheng
Modified:
4 years, 8 months ago
Reviewers:
danakj
CC:
chromium-reviews
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 template rewrite handling - Handles UnresolvedMemberExprs to rewrite unresolved references to methods in a member context. - Use the correct SourceLocation when rewriting UnresolvedLookupExprs to avoid clobbering nested name specifiers. BUG=598140, 598142 R=danakj@chromium.org Committed: https://crrev.com/663008c70f0e5d9bfc95db70aa703432847f23ad Cr-Commit-Position: refs/heads/master@{#383554}

Patch Set 1 #

Patch Set 2 : Combine template fixes #

Total comments: 2

Patch Set 3 : comment #

Patch Set 4 : Revert global cherry-pick #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -59 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 3 4 chunks +44 lines, -9 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/template-expected.cc View 1 3 chunks +70 lines, -25 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/template-original.cc View 1 3 chunks +70 lines, -25 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
dcheng
Remember how you were surprised that this works? I guess it doesn't =D
4 years, 9 months ago (2016-03-26 08:45:51 UTC) #1
danakj
LGTM https://codereview.chromium.org/1838713002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1838713002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode799 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:799: // context, e.g. Template<&Class::Method>. Can you say why ...
4 years, 8 months ago (2016-03-28 18:35:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1838713002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1838713002/60001
4 years, 8 months ago (2016-03-28 19:55:23 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-03-28 20:36:55 UTC) #7
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/663008c70f0e5d9bfc95db70aa703432847f23ad Cr-Commit-Position: refs/heads/master@{#383554}
4 years, 8 months ago (2016-03-28 20:38:21 UTC) #9
dcheng
4 years, 8 months ago (2016-03-28 21:22:44 UTC) #10
Message was sent while issue was closed.
(forgot to send comments)

https://codereview.chromium.org/1838713002/diff/20001/tools/clang/rewrite_to_...
File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right):

https://codereview.chromium.org/1838713002/diff/20001/tools/clang/rewrite_to_...
tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:799: // context,
e.g. Template<&Class::Method>.
On 2016/03/28 at 18:35:10, danakj wrote:
> Can you say why this not using the UnresolvedMemberRewriter? It looks
unintentional

Done.

Powered by Google App Engine
This is Rietveld 408576698