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 2771643002: Enable noexcept on Windows, use for a few move constructors. (Closed)

Created:
3 years, 9 months ago by brettw
Modified:
3 years, 9 months ago
Reviewers:
scottmg, brucedawson, lfg
CC:
chromium-reviews, Dirk Pranke, agrieve+watch_chromium.org, tfarina, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable noexcept on Windows, use for a few move constructors. MSVC complains if you use noexcept with no exception handling mode specified (as we do). This code disables the warning. noexcept on move constructors allows better optimizations in some cases. http://en.cppreference.com/w/cpp/language/noexcept_spec Updates a few common classes' move constructors to use this. Review-Url: https://codereview.chromium.org/2771643002 Cr-Commit-Position: refs/heads/master@{#458956} Committed: https://chromium.googlesource.com/chromium/src/+/76aac97386e2788241161420c5e7e0bfee16f88c

Patch Set 1 #

Patch Set 2 : jni #

Total comments: 1

Patch Set 3 : No flat_map #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -21 lines) Patch
M base/android/jni_weak_ref.h View 1 chunk +1 line, -1 line 0 comments Download
M base/android/jni_weak_ref.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M base/values.h View 1 chunk +1 line, -1 line 0 comments Download
M base/values.cc View 1 chunk +1 line, -1 line 0 comments Download
M build/config/compiler/BUILD.gn View 3 chunks +11 lines, -13 lines 0 comments Download
M tools/gn/value.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/value.cc View 1 chunk +1 line, -1 line 0 comments Download
M url/gurl.h View 1 chunk +1 line, -1 line 0 comments Download
M url/gurl.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (14 generated)
brettw
jni
3 years, 9 months ago (2017-03-22 21:30:17 UTC) #1
brettw
3 years, 9 months ago (2017-03-22 21:30:43 UTC) #5
brucedawson
lgtm. Maybe include a link to this: http://en.cppreference.com/w/cpp/language/noexcept_spec and maybe this quote: "For example, containers ...
3 years, 9 months ago (2017-03-22 21:39:05 UTC) #7
brettw
No flat_map
3 years, 9 months ago (2017-03-22 22:17:23 UTC) #10
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/2771643002/40001
3 years, 9 months ago (2017-03-22 22:18:32 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/345979)
3 years, 9 months ago (2017-03-22 23:34:04 UTC) #16
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/2771643002/40001
3 years, 9 months ago (2017-03-22 23:53:32 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/76aac97386e2788241161420c5e7e0bfee16f88c
3 years, 9 months ago (2017-03-23 00:39:05 UTC) #21
scottmg
Seeing this at head, could it be due to this change? [0->353/353 ~1] CXX obj/storage/browser/browser/quota_reservation_manager.obj ...
3 years, 9 months ago (2017-03-23 15:38:29 UTC) #23
scottmg
On 2017/03/23 15:38:29, scottmg wrote: > Seeing this at head, could it be due to ...
3 years, 9 months ago (2017-03-23 15:47:16 UTC) #24
scottmg
On 2017/03/23 15:47:16, scottmg wrote: > On 2017/03/23 15:38:29, scottmg wrote: > > Seeing this ...
3 years, 9 months ago (2017-03-23 15:56:29 UTC) #25
scottmg
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2769703007/ by scottmg@chromium.org. ...
3 years, 9 months ago (2017-03-23 15:57:15 UTC) #26
lfg
Same as scottmg@, I can't build after this change. Reverting this fixes my build.
3 years, 9 months ago (2017-03-23 16:06:46 UTC) #27
scottmg
Brett and I narrowed this down to a pch dependency problem (i.e. the pch isn't ...
3 years, 9 months ago (2017-03-23 18:32:11 UTC) #28
dyaroshev
3 years, 9 months ago (2017-03-24 09:29:11 UTC) #29
Message was sent while issue was closed.
Small notes on noexcept and default.

https://godbolt.org/g/Aji72L

if you have compilation problems I suggest just to do, in particular for flat_*
containers/trees etc.

class X {
  X(X&&) = default;
  X& operator=(X&&) = default
};

Powered by Google App Engine
This is Rietveld 408576698