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

Issue 1638683002: rewrite_to_chrome_style: Check expression is const when deciding style (Closed)

Created:
4 years, 11 months ago by danakj
Modified:
4 years, 11 months ago
Reviewers:
dcheng
CC:
chromium-reviews, piman
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: Check expression is const when deciding style For things labeled as "const", check if they can be compile-time evaluated when deciding to name them kFooBar or foo_bar. This fixes cases of const kFooBar = THING + OTHERTHING getting renamed to k_foo_bar in blink. Note that the tool is doing a slightly wrong thing when renaming a foo_bar to a kFooBar, which we can fix separately (this adds some tests for it that currently fail on that case). R=dcheng BUG=581185 Committed: https://crrev.com/92142e3e35d45e2a975b0b56114da4609602835c Cr-Commit-Position: refs/heads/master@{#371370}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -23 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 6 chunks +17 lines, -23 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/constants-expected.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/constants-original.cc View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
danakj
4 years, 11 months ago (2016-01-25 23:46:08 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1638683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1638683002/1
4 years, 11 months ago (2016-01-25 23:48:21 UTC) #3
dcheng
lgtm I should have looked harder originally.
4 years, 11 months ago (2016-01-25 23:50:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1638683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1638683002/1
4 years, 11 months ago (2016-01-25 23:54:40 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-26 00:17:07 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 00:20:04 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/92142e3e35d45e2a975b0b56114da4609602835c
Cr-Commit-Position: refs/heads/master@{#371370}

Powered by Google App Engine
This is Rietveld 408576698