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

Issue 1901643003: Always enable warn-raw-ptr's check of raw heap pointers. (Closed)

Created:
4 years, 8 months ago by sof
Modified:
4 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@sof-gc-plugin-upd
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always enable warn-raw-ptr's check of raw heap pointers. This warning option has been default-enabled with Oilpan since 3a192c3 (2015-11-25), checking that we do not keep unmanaged raw pointers or references in class field types. With the Blink codebase adhering to that (desirable) constraint, this extra warning has been working well to keep the codebase in that state. Make the check always apply with no possibility of opting out; we want it permanently on. R= BUG=604476 Committed: https://crrev.com/f3af836424457dc1e7310bc4aad6527f08094dd6 Cr-Commit-Position: refs/heads/master@{#388222}

Patch Set 1 #

Patch Set 2 : re-enable -Werror testing #

Patch Set 3 : rebased #

Total comments: 4

Patch Set 4 : remove unused warning diagnostic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -50 lines) Patch
M tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp View 1 2 3 2 chunks +3 lines, -11 lines 0 comments Download
M tools/clang/blink_gc_plugin/BlinkGCPluginOptions.h View 1 chunk +0 lines, -2 lines 0 comments Download
M tools/clang/blink_gc_plugin/CheckFieldsVisitor.h View 2 chunks +0 lines, -6 lines 0 comments Download
M tools/clang/blink_gc_plugin/CheckFieldsVisitor.cpp View 2 chunks +5 lines, -26 lines 0 comments Download
D tools/clang/blink_gc_plugin/tests/raw_ptr_to_gc_managed_class.flags View 1 chunk +0 lines, -1 line 0 comments Download
D tools/clang/blink_gc_plugin/tests/raw_ptr_to_gc_managed_class_error.flags View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
sof
please take a look.
4 years, 8 months ago (2016-04-19 07:19:35 UTC) #4
haraken
LGTM
4 years, 8 months ago (2016-04-19 07:23:56 UTC) #5
sof
hmm, looks like a patchset A dependent on B isn't able to delete a file ...
4 years, 8 months ago (2016-04-19 07:26:09 UTC) #6
Nico
Thanks! lgtm, but maybe there's more to delete: https://codereview.chromium.org/1901643003/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp File tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp (right): https://codereview.chromium.org/1901643003/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp#newcode216 tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp:216: diag_class_contains_invalid_fields_warning_ ...
4 years, 8 months ago (2016-04-19 15:07:59 UTC) #7
sof
https://codereview.chromium.org/1901643003/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp File tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp (right): https://codereview.chromium.org/1901643003/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp#newcode216 tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp:216: diag_class_contains_invalid_fields_warning_ = diagnostic_.getCustomDiagID( On 2016/04/19 15:07:59, Nico wrote: > ...
4 years, 8 months ago (2016-04-19 15:22:24 UTC) #8
Nico
https://codereview.chromium.org/1901643003/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp File tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp (right): https://codereview.chromium.org/1901643003/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp#newcode216 tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp:216: diag_class_contains_invalid_fields_warning_ = diagnostic_.getCustomDiagID( On 2016/04/19 15:22:24, sof wrote: > ...
4 years, 8 months ago (2016-04-19 15:24:04 UTC) #9
sof
https://codereview.chromium.org/1901643003/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp File tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp (right): https://codereview.chromium.org/1901643003/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp#newcode216 tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp:216: diag_class_contains_invalid_fields_warning_ = diagnostic_.getCustomDiagID( On 2016/04/19 15:24:04, Nico wrote: > ...
4 years, 8 months ago (2016-04-19 15:36:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901643003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901643003/60001
4 years, 8 months ago (2016-04-19 15:56:54 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-19 16:41:56 UTC) #15
sof
thakis@: if there's a tracker bug for the next roll, let me know - thanks. ...
4 years, 8 months ago (2016-04-19 18:18:39 UTC) #16
Nico
On 2016/04/19 18:18:39, sof wrote: > thakis@: if there's a tracker bug for the next ...
4 years, 8 months ago (2016-04-19 19:01:50 UTC) #17
sof
On 2016/04/19 19:01:50, Nico wrote: > On 2016/04/19 18:18:39, sof wrote: > > thakis@: if ...
4 years, 8 months ago (2016-04-20 05:30:08 UTC) #18
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:12:50 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f3af836424457dc1e7310bc4aad6527f08094dd6
Cr-Commit-Position: refs/heads/master@{#388222}

Powered by Google App Engine
This is Rietveld 408576698