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

Issue 24406002: Add code style check error for using static_cast instead of toFoo function. (Closed)

Created:
7 years, 2 months ago by r.kasibhatla
Modified:
7 years, 2 months ago
CC:
blink-reviews, Martin Barbella
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add code style check error for using static_cast instead of toFoo function. The original CL https://chromiumcodereview.appspot.com/23654034/ was reverted as - 1. It effected pushing of new CL with static_cast, though this issue exists at many places in current code base. It was agreed to first fix all pain points in current codebase, make it warning for now and as devs become ready for this guideline, make it an error. 2. It was causing a regression (http://crbug.com/295673). 3. There was a (perf) issue in unittests execution. 3. It was causing a regression (probably, not sure) in test-webkitpy and WebKit XP bots. In this modified CL, I have addressed issues 1, 2 & 3. As I am not aware what was broken on bots, I haven't addressed it yet. Based on input for issue 4, I will correct the patch. R=dpranke,inferno,ojan,eseidel BUG=295673 TESTS=Unit tests added in cpp_unittest.py; no behavior changes; Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158628

Patch Set 1 #

Total comments: 4

Patch Set 2 : Corrected base_dir to Source to avoid searching header file in LayoutTests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -12 lines) Patch
M Tools/Scripts/webkitpy/style/checkers/cpp.py View 1 3 chunks +143 lines, -5 lines 0 comments Download
M Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py View 2 chunks +24 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
r.kasibhatla
PTAL. On crrev.com/23654034, it was suggested to make it a warning for now and sometime ...
7 years, 2 months ago (2013-09-24 12:55:38 UTC) #1
r.kasibhatla
On 2013/09/24 12:55:38, r.kasibhatla wrote: > PTAL. > > On crrev.com/23654034, it was suggested to ...
7 years, 2 months ago (2013-09-26 16:44:15 UTC) #2
eseidel
Dirk is really your best reviewer here. Sorry, we've been distracted by BlinkON these last ...
7 years, 2 months ago (2013-09-26 16:46:18 UTC) #3
Dirk Pranke
This is getting closer. Make the minor suggested changes and run the try jobs and ...
7 years, 2 months ago (2013-09-26 19:01:35 UTC) #4
r.kasibhatla
Also, I don't have permission to run try bots, so somebody has to run on ...
7 years, 2 months ago (2013-09-26 19:07:43 UTC) #5
Dirk Pranke
I just kicked off some try jobs. Do not attempt to remove unit_test_config() as part ...
7 years, 2 months ago (2013-09-26 19:08:58 UTC) #6
r.kasibhatla
On 2013/09/26 19:08:58, Dirk Pranke wrote: > I just kicked off some try jobs. Do ...
7 years, 2 months ago (2013-09-27 03:49:26 UTC) #7
inferno
On 2013/09/27 03:49:26, r.kasibhatla wrote: > On 2013/09/26 19:08:58, Dirk Pranke wrote: > > I ...
7 years, 2 months ago (2013-09-27 03:50:09 UTC) #8
r.kasibhatla
On 2013/09/27 03:50:09, inferno wrote: > On 2013/09/27 03:49:26, r.kasibhatla wrote: > > On 2013/09/26 ...
7 years, 2 months ago (2013-09-27 05:35:41 UTC) #9
inferno
On 2013/09/27 05:35:41, r.kasibhatla wrote: > On 2013/09/27 03:50:09, inferno wrote: > > On 2013/09/27 ...
7 years, 2 months ago (2013-09-27 16:48:26 UTC) #10
r.kasibhatla
On 2013/09/27 16:48:26, inferno wrote: > On 2013/09/27 05:35:41, r.kasibhatla wrote: > > On 2013/09/27 ...
7 years, 2 months ago (2013-09-28 16:12:55 UTC) #11
inferno
7 years, 2 months ago (2013-09-30 21:28:28 UTC) #12
r.kasibhatla
On 2013/09/30 21:28:28, inferno wrote: win_blink trybot stopped for some reason - I don't see ...
7 years, 2 months ago (2013-10-01 03:06:25 UTC) #13
inferno
lgtm lgtm. win bots look flaky, you can go ahead and commit with the nit ...
7 years, 2 months ago (2013-10-01 05:29:38 UTC) #14
r.kasibhatla
Fixed the nit. https://codereview.chromium.org/24406002/diff/1/Tools/Scripts/webkitpy/style/checkers/cpp.py File Tools/Scripts/webkitpy/style/checkers/cpp.py (right): https://codereview.chromium.org/24406002/diff/1/Tools/Scripts/webkitpy/style/checkers/cpp.py#newcode3439 Tools/Scripts/webkitpy/style/checkers/cpp.py:3439: _sep = 'src/third_party/WebKit' On 2013/10/01 05:29:38, ...
7 years, 2 months ago (2013-10-01 09:53:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/24406002/25001
7 years, 2 months ago (2013-10-01 09:54:11 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=7908
7 years, 2 months ago (2013-10-01 11:41:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/24406002/25001
7 years, 2 months ago (2013-10-01 11:52:33 UTC) #18
commit-bot: I haz the power
7 years, 2 months ago (2013-10-01 12:20:42 UTC) #19
Message was sent while issue was closed.
Change committed as 158628

Powered by Google App Engine
This is Rietveld 408576698