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

Issue 2532583002: Presubmit: Warn about useless forward declarations (Closed)

Created:
4 years ago by jbriance
Modified:
4 years ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Presubmit: Warn about useless forward declarations Checks that added or removed lines in affected header files do not lead to new useless class or struct forward declaration. BUG=662195 TEST=PRESUBMIT_test.py ForwardDeclarationTest Committed: https://crrev.com/9e12f16d49b411b9375e3f9eed9a639081c6aac2 Cr-Commit-Position: refs/heads/master@{#434449}

Patch Set 1 #

Patch Set 2 : Original patch #

Patch Set 3 : Changed version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -0 lines) Patch
M PRESUBMIT.py View 2 2 chunks +41 lines, -0 lines 0 comments Download
M PRESUBMIT_test.py View 1 chunk +55 lines, -0 lines 0 comments Download
M PRESUBMIT_test_mocks.py View 2 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
jbriance
Better version of the presubmit check. Deleted header files are handled, and only added or ...
4 years ago (2016-11-24 18:32:13 UTC) #2
dcheng
Honestly, I'm OK with the aggressive version of this check (checking all forward declares, even ...
4 years ago (2016-11-24 20:37:39 UTC) #3
Alexei Svitkine (slow)
If you're re-landing a patch, it's customary to upload patch set 1 as the original ...
4 years ago (2016-11-24 21:23:44 UTC) #5
jbriance
On 2016/11/24 20:37:39, dcheng wrote: > Honestly, I'm OK with the aggressive version of this ...
4 years ago (2016-11-24 21:42:28 UTC) #6
chromium-reviews
Yes please - but I don't think you need a patch that reverts it - ...
4 years ago (2016-11-24 21:44:41 UTC) #7
jbriance
On 2016/11/24 21:44:41, chromium-reviews wrote: > Yes please - but I don't think you need ...
4 years ago (2016-11-24 22:12:57 UTC) #8
dcheng
On 2016/11/24 21:42:28, jbriance wrote: > On 2016/11/24 20:37:39, dcheng wrote: > > Honestly, I'm ...
4 years ago (2016-11-25 00:09:51 UTC) #9
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-11-25 06:44:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2532583002/40001
4 years ago (2016-11-25 07:54:37 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-25 07:58:16 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/9e12f16d49b411b9375e3f9eed9a639081c6aac2 Cr-Commit-Position: refs/heads/master@{#434449}
4 years ago (2016-11-25 07:59:57 UTC) #20
jbriance
4 years ago (2016-11-25 08:01:25 UTC) #21
Message was sent while issue was closed.
On 2016/11/25 00:09:51, dcheng wrote:
> Hm, I didn't hit any in //chrome but I did run into some in //content and
> //third_party/WebKit, if that's a useful data point.

Oh these useless parts grow fast, I cleaned up //content less than 3 weeks
ago (https://codereview.chromium.org/2473003002)

Powered by Google App Engine
This is Rietveld 408576698