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

Issue 1645263002: rewrite_to_chrome_style: tweak macro ignoring logic. (Closed)

Created:
4 years, 10 months ago by dcheng
Modified:
4 years, 10 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: tweak macro ignoring logic. If the name is defined from a macro (e.g. using something like DEFINE_TYPE_CASTS), then the rewriter should ignore it: macros generally need to be manually updated to avoid massive compile breakage. On the other hand, an identifier appearing in the invocation of a function-like macro should still be rewritten. The updated logic only skips rewriting if the declaration referenced by the identifier originates from a macro expansion; otherwise, it will rewrite the identifier to the new name. BUG=581902 Committed: https://crrev.com/21f01682a450f0df6ddcfaba715b5d2078c12d91 Cr-Commit-Position: refs/heads/master@{#372276}

Patch Set 1 #

Patch Set 2 : Add expected #

Patch Set 3 : rebase #

Patch Set 4 : Betterer commetns #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -14 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 5 chunks +17 lines, -14 lines 0 comments Download
A tools/clang/rewrite_to_chrome_style/tests/macros-expected.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A tools/clang/rewrite_to_chrome_style/tests/macros-original.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
dcheng
4 years, 10 months ago (2016-01-29 01:55:29 UTC) #2
danakj
LGTM
4 years, 10 months ago (2016-01-29 01:59:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645263002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645263002/60001
4 years, 10 months ago (2016-01-29 02:46:58 UTC) #5
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-01-29 03:23:00 UTC) #6
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 03:24:10 UTC) #8
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/21f01682a450f0df6ddcfaba715b5d2078c12d91
Cr-Commit-Position: refs/heads/master@{#372276}

Powered by Google App Engine
This is Rietveld 408576698