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

Issue 2137863002: Make it a compile error to use a crash key with no variable name. (Closed)

Created:
4 years, 5 months ago by dcheng
Modified:
4 years, 5 months ago
CC:
chromium-reviews, falken, Robert Sesek, ncarter (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make it a compile error to use a crash key with no variable name. BUG= Committed: https://crrev.com/288f45d2de18e1668f03b2eee51fee8cd7ae2fad Cr-Commit-Position: refs/heads/master@{#407083}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Better, but not best #

Patch Set 3 : Magic #

Patch Set 4 : Add comments #

Total comments: 4

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 9

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M base/debug/crash_logging.h View 1 2 3 4 5 6 2 chunks +36 lines, -0 lines 0 comments Download
M base/debug/crash_logging.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (7 generated)
dcheng
Macros are bad. On the other hand, this has shown up twice recently and is ...
4 years, 5 months ago (2016-07-11 01:42:44 UTC) #2
ncarter (slow)
https://codereview.chromium.org/2137863002/diff/1/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/1/base/debug/crash_logging.h#newcode58 base/debug/crash_logging.h:58: #define ScopedCrashKey(x) static_assert(false, "a scoped crash key has no ...
4 years, 5 months ago (2016-07-11 17:08:12 UTC) #4
Robert Sesek
This is kind of gross, but it would be good to detect anonymous objects. Would ...
4 years, 5 months ago (2016-07-11 17:11:45 UTC) #6
dcheng
On 2016/07/11 17:11:45, Robert Sesek wrote: > This is kind of gross, but it would ...
4 years, 5 months ago (2016-07-12 01:09:30 UTC) #7
dcheng
https://codereview.chromium.org/2137863002/diff/1/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/1/base/debug/crash_logging.h#newcode58 base/debug/crash_logging.h:58: #define ScopedCrashKey(x) static_assert(false, "a scoped crash key has no ...
4 years, 5 months ago (2016-07-12 01:23:38 UTC) #8
dcheng
OK, added some magic to make the static_assert show up everywhere. It abuses a new ...
4 years, 5 months ago (2016-07-12 01:41:26 UTC) #9
Yuki
On 2016/07/12 01:41:26, dcheng wrote: > OK, added some magic to make the static_assert show ...
4 years, 5 months ago (2016-07-12 05:32:04 UTC) #10
dcheng
On 2016/07/12 05:32:04, Yuki wrote: > On 2016/07/12 01:41:26, dcheng wrote: > > OK, added ...
4 years, 5 months ago (2016-07-12 05:41:27 UTC) #11
danakj
https://codereview.chromium.org/2137863002/diff/60001/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/60001/base/debug/crash_logging.h#newcode64 base/debug/crash_logging.h:64: ScopedCrashKey(const T&) { Why a constructor and not just ...
4 years, 5 months ago (2016-07-12 19:59:26 UTC) #12
dcheng
https://codereview.chromium.org/2137863002/diff/60001/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/60001/base/debug/crash_logging.h#newcode64 base/debug/crash_logging.h:64: ScopedCrashKey(const T&) { On 2016/07/12 19:59:26, danakj wrote: > ...
4 years, 5 months ago (2016-07-13 00:34:11 UTC) #13
Robert Sesek
https://codereview.chromium.org/2137863002/diff/60001/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/60001/base/debug/crash_logging.h#newcode64 base/debug/crash_logging.h:64: ScopedCrashKey(const T&) { On 2016/07/13 00:34:11, dcheng wrote: > ...
4 years, 5 months ago (2016-07-13 19:46:23 UTC) #14
danakj
https://codereview.chromium.org/2137863002/diff/60001/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/60001/base/debug/crash_logging.h#newcode64 base/debug/crash_logging.h:64: ScopedCrashKey(const T&) { On 2016/07/13 19:46:22, Robert Sesek wrote: ...
4 years, 5 months ago (2016-07-13 19:48:17 UTC) #15
dcheng
OK, I managed to convince it to work with the enum tag but it took ...
4 years, 5 months ago (2016-07-14 06:10:05 UTC) #16
tzik
https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h#newcode78 base/debug/crash_logging.h:78: explicit ScopedCrashKey(ScopedCrashKeyNeedsNameTag, const Args&...) { Can we just disable ...
4 years, 5 months ago (2016-07-14 07:39:53 UTC) #18
dcheng
https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h#newcode78 base/debug/crash_logging.h:78: explicit ScopedCrashKey(ScopedCrashKeyNeedsNameTag, const Args&...) { On 2016/07/14 07:39:53, tzik ...
4 years, 5 months ago (2016-07-14 07:41:15 UTC) #19
tzik
https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h File base/debug/crash_logging.h (right): https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h#newcode78 base/debug/crash_logging.h:78: explicit ScopedCrashKey(ScopedCrashKeyNeedsNameTag, const Args&...) { On 2016/07/14 07:41:15, dcheng ...
4 years, 5 months ago (2016-07-14 07:45:41 UTC) #20
dcheng
On 2016/07/14 07:45:41, tzik wrote: > https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h > File base/debug/crash_logging.h (right): > > https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h#newcode78 > ...
4 years, 5 months ago (2016-07-14 11:51:05 UTC) #21
tzik
On 2016/07/14 11:51:05, dcheng wrote: > On 2016/07/14 07:45:41, tzik wrote: > > > https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.h ...
4 years, 5 months ago (2016-07-14 12:58:09 UTC) #22
danakj
Seems okay to me. One question: https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.cc File base/debug/crash_logging.cc (right): https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.cc#newcode16 base/debug/crash_logging.cc:16: #undef ScopedCrashKey The ...
4 years, 5 months ago (2016-07-19 02:14:05 UTC) #23
dcheng
https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.cc File base/debug/crash_logging.cc (right): https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.cc#newcode16 base/debug/crash_logging.cc:16: #undef ScopedCrashKey On 2016/07/19 02:14:05, danakj wrote: > The ...
4 years, 5 months ago (2016-07-19 02:34:34 UTC) #24
danakj
LGTM https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.cc File base/debug/crash_logging.cc (right): https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.cc#newcode16 base/debug/crash_logging.cc:16: #undef ScopedCrashKey On 2016/07/19 02:34:34, dcheng wrote: > ...
4 years, 5 months ago (2016-07-19 21:02:57 UTC) #25
dcheng
https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.cc File base/debug/crash_logging.cc (right): https://codereview.chromium.org/2137863002/diff/100001/base/debug/crash_logging.cc#newcode16 base/debug/crash_logging.cc:16: #undef ScopedCrashKey On 2016/07/19 21:02:56, danakj wrote: > On ...
4 years, 5 months ago (2016-07-22 05:39:22 UTC) #26
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/2137863002/120001
4 years, 5 months ago (2016-07-22 05:39:43 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-22 06:39:17 UTC) #30
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 06:41:19 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/288f45d2de18e1668f03b2eee51fee8cd7ae2fad
Cr-Commit-Position: refs/heads/master@{#407083}

Powered by Google App Engine
This is Rietveld 408576698