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

Issue 2685583002: blink_gc_plugin: warn of unused trace methods to stack allocated classes. (Closed)

Created:
3 years, 10 months ago by sof
Modified:
3 years, 10 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, Nico
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

blink_gc_plugin: warn of unused trace methods to stack allocated classes. A STACK_ALLOCATED()-annotated class does not need a trace method; issue a warning if encountered. R=haraken BUG=689874 Review-Url: https://codereview.chromium.org/2685583002 Cr-Commit-Position: refs/heads/master@{#449046} Committed: https://chromium.googlesource.com/chromium/src/+/59dc1fe4df1db90553f572d20cf2b732438063b2

Patch Set 1 #

Patch Set 2 : put new check behind a flag (default: off) #

Patch Set 3 : rebased upto r449038 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -10 lines) Patch
M tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/BlinkGCPluginOptions.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/DiagnosticsReporter.h View 2 chunks +3 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/DiagnosticsReporter.cpp View 1 3 chunks +14 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/.gitignore View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/legacy_naming/.gitignore View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/legacy_naming/stack_allocated.h View 1 chunk +4 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/legacy_naming/stack_allocated.flags View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/legacy_naming/stack_allocated.txt View 2 chunks +9 lines, -6 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/legacy_naming/stack_allocated_no_warning.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/legacy_naming/stack_allocated_no_warning.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/legacy_naming/stack_allocated_no_warning.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/stack_allocated.h View 1 chunk +4 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/stack_allocated.flags View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/stack_allocated.txt View 2 chunks +9 lines, -6 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/stack_allocated_no_warning.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/stack_allocated_no_warning.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/stack_allocated_no_warning.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
sof
please take a look. overall it is worth warning of dead code, hence added.
3 years, 10 months ago (2017-02-07 14:27:35 UTC) #4
haraken
LGTM
3 years, 10 months ago (2017-02-07 15:24:29 UTC) #7
sof
thakis@, hans@: adding a new warning to the GC plugin, but for a condition that's ...
3 years, 10 months ago (2017-02-07 15:44:10 UTC) #8
Nico
Please add a flag. We haven't updated the compiler in way too long, which means ...
3 years, 10 months ago (2017-02-07 15:46:17 UTC) #9
sof
On 2017/02/07 15:46:17, Nico wrote: > Please add a flag. We haven't updated the compiler ...
3 years, 10 months ago (2017-02-08 07:48:51 UTC) #13
hans
On 2017/02/08 07:48:51, sof wrote: > On 2017/02/07 15:46:17, Nico wrote: > > Please add ...
3 years, 10 months ago (2017-02-08 16:17:03 UTC) #16
sof
On 2017/02/08 16:17:03, hans wrote: > On 2017/02/08 07:48:51, sof wrote: > > On 2017/02/07 ...
3 years, 10 months ago (2017-02-08 18:31:42 UTC) #17
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/2685583002/40001
3 years, 10 months ago (2017-02-08 18:32:44 UTC) #20
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 18:50:24 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/59dc1fe4df1db90553f572d20cf2...

Powered by Google App Engine
This is Rietveld 408576698