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

Issue 24227005: static_cast check should allow static_cast inside to* methods (Closed)

Created:
7 years, 3 months ago by alecflett
Modified:
7 years, 2 months ago
CC:
blink-reviews
Visibility:
Public.

Description

static_cast check should allow static_cast inside to* methods The check was there, but range(N, N+1) yields [N] not [N, N+1] so this check basically was a no-op BUG=

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M Tools/Scripts/webkitpy/style/checkers/cpp.py View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 8 (0 generated)
alecflett
This fixes the static_cast issue when you have to use a static_cast inside a to* ...
7 years, 3 months ago (2013-09-20 18:53:29 UTC) #1
eseidel
I believe we have the ability to test this, so we should. This doesn't really ...
7 years, 3 months ago (2013-09-20 18:55:40 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/24227005/1
7 years, 3 months ago (2013-09-20 18:57:51 UTC) #3
alecflett
On 2013/09/20 18:55:40, eseidel wrote: > I believe we have the ability to test this, ...
7 years, 3 months ago (2013-09-20 18:58:54 UTC) #4
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=10415
7 years, 3 months ago (2013-09-21 00:26:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/24227005/1
7 years, 3 months ago (2013-09-21 03:03:34 UTC) #6
commit-bot: I haz the power
Failed to apply patch for Tools/Scripts/webkitpy/style/checkers/cpp.py: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-21 03:03:35 UTC) #7
r.kasibhatla
7 years, 3 months ago (2013-09-23 03:12:07 UTC) #8
https://codereview.chromium.org/24227005/diff/1/Tools/Scripts/webkitpy/style/...
File Tools/Scripts/webkitpy/style/checkers/cpp.py (right):

https://codereview.chromium.org/24227005/diff/1/Tools/Scripts/webkitpy/style/...
Tools/Scripts/webkitpy/style/checkers/cpp.py:3512: if line_number in
range(item[1], item[2] + 1):
I believe you are doing +1 here to enable the search of static_cast inside toFoo
function (from signature to end } itself). If so, then this is not needed here.
I am doing a +1 for the extra line number while adding the line numbers of toFoo
function into the "matches" map itself.
+1 again is not needed explicitly here.

Powered by Google App Engine
This is Rietveld 408576698