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

Issue 805073002: just use c++ static_assert everywhere (Closed)

Created:
6 years ago by Mostyn Bramley-Moore
Modified:
6 years ago
Reviewers:
Nico
CC:
blink-reviews, blink-reviews-wtf_chromium.org, aandrey+blink_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

just use c++ static_assert everywhere We can simplify COMPILE_ASSERT, since all our toolchains support c++'s static_assert. This matches chromium's definition. BUG=442514 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187213

Patch Set 1 #

Total comments: 4

Patch Set 2 : remove gcc version check around WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -23 lines) Patch
M Source/wtf/Assertions.h View 1 chunk +2 lines, -9 lines 0 comments Download
M Source/wtf/Compiler.h View 1 2 chunks +0 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Mostyn Bramley-Moore
@Nico: I think all our toolchains support c++'s static_assert, so we can simplify blink's COMPILE_ASSERT.
6 years ago (2014-12-15 22:34:23 UTC) #2
Nico
lgtm I always thought we'd just remove all the COMPILE_ASSERT lines and use static_assert directly, ...
6 years ago (2014-12-15 22:41:21 UTC) #3
Mostyn Bramley-Moore
> I always thought we'd just remove all the COMPILE_ASSERT lines and use > static_assert ...
6 years ago (2014-12-15 22:49:26 UTC) #4
Nico
On 2014/12/15 22:49:26, Mostyn Bramley-Moore wrote: > > I always thought we'd just remove all ...
6 years ago (2014-12-15 22:55:13 UTC) #5
Mostyn Bramley-Moore
Filed crbug.com/442514 to follow up with a switch to bare static_assert. https://codereview.chromium.org/805073002/diff/1/Source/wtf/Compiler.h File Source/wtf/Compiler.h (left): ...
6 years ago (2014-12-15 23:06:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/805073002/20001
6 years ago (2014-12-15 23:07:38 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/41936)
6 years ago (2014-12-16 01:56:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/805073002/20001
6 years ago (2014-12-16 02:04:52 UTC) #12
commit-bot: I haz the power
6 years ago (2014-12-16 03:06:57 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187213

Powered by Google App Engine
This is Rietveld 408576698