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

Issue 2525263002: 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 affected header files do not contain useless class or struct forward declaration. BUG=662195 TEST=PRESUBMIT_test.py ForwardDeclarationTest Committed: https://crrev.com/1ae91afd6ab12165d8bd7981b9984fe7aec8d3d2 Cr-Commit-Position: refs/heads/master@{#434329}

Patch Set 1 #

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

Messages

Total messages: 21 (10 generated)
jbriance
4 years ago (2016-11-24 08:58:49 UTC) #2
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-11-24 11:57:06 UTC) #3
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/2525263002/1
4 years ago (2016-11-24 15:08:06 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-24 15:31:37 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/1ae91afd6ab12165d8bd7981b9984fe7aec8d3d2 Cr-Commit-Position: refs/heads/master@{#434329}
4 years ago (2016-11-24 15:34:48 UTC) #13
Alexei Svitkine (slow)
This seems to fail on CLs that are deleting a file: Using 50% similarity for ...
4 years ago (2016-11-24 16:01:22 UTC) #15
dcheng
While it's nice to clean this up, this PRESUBMIT check isn't limiting errors to newly ...
4 years ago (2016-11-24 16:28:29 UTC) #17
dcheng
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2532563002/ by dcheng@chromium.org. ...
4 years ago (2016-11-24 16:31:53 UTC) #18
jbriance
On 2016/11/24 16:01:22, Alexei Svitkine (slow) wrote: > This seems to fail on CLs that ...
4 years ago (2016-11-24 16:32:49 UTC) #19
jbriance
I started to do this way (see BUG 662195), but I was asked to add ...
4 years ago (2016-11-24 16:37:09 UTC) #20
jbriance
4 years ago (2016-11-24 16:50:40 UTC) #21
Message was sent while issue was closed.
CL has been reverted. I'll work on a better presubmit check (only check when
removed lines introduce a new useless forward decl + handle deleted files). In
the meantime I'll continue to clean up.
Sorry about the noise :/

Powered by Google App Engine
This is Rietveld 408576698