Simon Giesecke
8f84ea1eaa
Bug 1631709
- NotNull must not be movable. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D71721
2020-04-28 11:23:05 +00:00
Simon Giesecke
46314aa8d2
Bug 1633350 - Add SplitAt method to mozilla::Span. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D72605
2020-04-27 11:16:30 +00:00
Simon Giesecke
e8a20bbe1c
Bug 1633350 - Add deduction guide for constructing Span from a plain array. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D72604
2020-04-27 16:46:57 +00:00
Simon Giesecke
94fa08db9c
Bug 1626267 - Added transformation algorithms with error handling. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68994
--HG--
extra : moz-landing-system : lando
2020-04-01 15:53:58 +00:00
Chris Fronk
62d6d7db0e
Bug 1345842 - Add Ignore to allow ignore elements in Tie. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68742
--HG--
extra : moz-landing-system : lando
2020-03-31 12:36:22 +00:00
Simon Giesecke
237efbb270
Bug 1625871 - InitializedOnce<const T> should be a literal type for literal types T. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68759
--HG--
extra : moz-landing-system : lando
2020-03-31 08:21:11 +00:00
Simon Giesecke
3eeb9d7e2d
Bug 1625869 - Maybe<T> should be trivially destructible for move-only T. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68758
--HG--
extra : moz-landing-system : lando
2020-03-31 08:20:58 +00:00
Bogdan Tara
d6d7d84fec
Backed out 2 changesets (bug 1625871, bug 1625869) for gtest assertions on Maybe.h CLOSED TREE
...
Backed out changeset 8dee41ad98cf (bug 1625871)
Backed out changeset 39fbc765525b (bug 1625869)
2020-03-30 17:29:09 +03:00
Simon Giesecke
df70dae59a
Bug 1625871 - InitializedOnce<const T> should be a literal type for literal types T. r=froydnj
...
Depends on D68758
Differential Revision: https://phabricator.services.mozilla.com/D68759
--HG--
extra : moz-landing-system : lando
2020-03-30 12:27:10 +00:00
Simon Giesecke
b30450b50d
Bug 1625869 - Maybe<T> should be trivially destructible for move-only T. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68758
--HG--
extra : moz-landing-system : lando
2020-03-30 12:26:58 +00:00
André Bargull
14ca007916
Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj
...
Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.
Differential Revision: https://phabricator.services.mozilla.com/D68561
--HG--
extra : moz-landing-system : lando
2020-03-28 16:00:09 +00:00
André Bargull
13bfe75b97
Bug 1625138 - Part 40: Replace remaining mozilla::IsSame with std::is_same. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68560
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:21 +00:00
André Bargull
5992327185
Bug 1625138 - Part 36: Replace mozilla::IsSame with std::is_same in mfbt/. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68555
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:20 +00:00
André Bargull
95c76a6863
Bug 1625138 - Part 28: Replace mozilla::AddRvalueReference with std::add_rvalue_reference. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68546
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:18 +00:00
André Bargull
42d4ebbda9
Bug 1625138 - Part 27: Replace mozilla::DeclVal with std::declval. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68545
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:18 +00:00
André Bargull
08a8c3fc78
Bug 1625138 - Part 24: Replace mozilla::IsConvertible with std::is_convertible. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68379
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:17 +00:00
André Bargull
d53798e749
Bug 1625138 - Part 23: Replace mozilla::RemovePointer with std::remove_pointer. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68378
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:17 +00:00
André Bargull
44a255a4d6
Bug 1625138 - Part 22: Replace mozilla::IsArray with std::is_array. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68377
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:17 +00:00
André Bargull
85dfbced09
Bug 1625138 - Part 21: Replace mozilla::IsFunction with std::is_function. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68376
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:16 +00:00
André Bargull
1455e95dc1
Bug 1625138 - Part 19: Replace mozilla::RemoveExtent with std::remove_extent. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68374
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:16 +00:00
André Bargull
b2e7397c33
Bug 1625138 - Part 18: Replace mozilla::AddPointer with std::add_pointer. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68373
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:16 +00:00
André Bargull
a08be4177e
Bug 1625138 - Part 17: Replace mozilla::Decay with std::decay. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68372
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull
13e9ad3137
Bug 1625138 - Part 14: Replace mozilla::IsSigned with std::is_signed. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68369
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull
9ad58ea608
Bug 1625138 - Part 13: Replace mozilla::IsUnsigned with std::is_unsigned. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68368
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:14 +00:00
André Bargull
b0c9db06e3
Bug 1625138 - Part 12: Replace mozilla::IsPointer with std::is_pointer. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68366
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:14 +00:00
André Bargull
76a01325a7
Bug 1625138 - Part 8: Replace mozilla::IsMemberPointer with std::is_member_pointer. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68362
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:13 +00:00
André Bargull
be0f9ade3d
Bug 1625138 - Part 7: Replace mozilla::IsScalar with std::is_scalar. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68361
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:13 +00:00
André Bargull
086c1b8be3
Bug 1625138 - Part 6: Replace mozilla::IsClass with std::is_class. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68360
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:12 +00:00
André Bargull
e7d63cc0a3
Bug 1625138 - Part 5: Replace mozilla::IsDefaultConstructible with std::is_default_constructible. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68359
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:12 +00:00
André Bargull
1e4d8b891e
Bug 1625138 - Part 4: Replace mozilla::MakeUnsigned with std::make_unsigned. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68358
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:12 +00:00
André Bargull
526c7e70fc
Bug 1625138 - Part 3: Replace mozilla::IsEmpty with std::is_empty. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68357
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:11 +00:00
André Bargull
48227ef019
Bug 1625138 - Part 2: Replace mozilla::AddLvalueReference with std::add_lvalue_reference. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68356
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:11 +00:00
André Bargull
bf1ba829c8
Bug 1625138 - Part 1: Replace mozilla::MakeSigned with std::make_signed. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68355
--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:11 +00:00
Simon Giesecke
d3deabac64
Bug 1613363 - Maybe<T> should preserve trivial copy-constructability and destructability of T. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D68173
--HG--
extra : moz-landing-system : lando
2020-03-27 14:22:51 +00:00
Simon Giesecke
0cc5c6e63f
Bug 1052940 - Make Maybe<T> only declare copy/move operations if T is copyable/movable. r=froydnj,jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D68172
--HG--
extra : moz-landing-system : lando
2020-03-27 14:10:45 +00:00
alwu
c90111145c
Bug 1620113 - part1 : support `contain` and `length` for LinkedList. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D66854
--HG--
extra : moz-landing-system : lando
2020-03-18 22:14:59 +00:00
Chris Fronk
048799bff2
Bug 1490781 - Add FunctionRef, a non-owning reference to a callable value (function pointer, lambda, etc.). r=botond
...
Differential Revision: https://phabricator.services.mozilla.com/D62684
--HG--
extra : moz-landing-system : lando
2020-03-24 00:12:41 +00:00
Sylvestre Ledru
734f79b541
Bug 1624237 - Run misc-unused-using-decls - Remove useless declarations r=andi
...
$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path>
Differential Revision: https://phabricator.services.mozilla.com/D67811
--HG--
extra : moz-landing-system : lando
2020-03-23 13:15:33 +00:00
Simon Giesecke
a22b36fb7a
Bug 1620568 - Disable equality comparison operators for Maybe<T&>. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D67135
--HG--
extra : moz-landing-system : lando
2020-03-18 13:24:17 +00:00
Chris Fronk
d5b004443b
Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D64511
--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-17 12:42:12 +00:00
Gerald Squelart
056a867f22
Bug 1621865 - Variant matchers may optionally take the current index as first parameter - r=froydnj
...
Depends on D66719
Differential Revision: https://phabricator.services.mozilla.com/D66720
--HG--
extra : moz-landing-system : lando
2020-03-13 21:56:47 +00:00
Gerald Squelart
9c1f5b9571
Bug 1621865 - In Variant::match(), forward the callback before invoking it - r=froydnj
...
`std::forward(invocable)()` ensures that the optimal callback is invoked, in
case there are different versions with different reference qualifiers.
E.g., an rvalue-reference-qualified member function could std::move() from class
members, because the object is about to be destroyed anyway.
Differential Revision: https://phabricator.services.mozilla.com/D66719
--HG--
extra : moz-landing-system : lando
2020-03-13 15:23:25 +00:00
Simon Giesecke
84fb884937
Bug 1620568 - Add support for Maybe<T&>. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D66068
--HG--
extra : moz-landing-system : lando
2020-03-12 14:54:28 +00:00
shindli
b02b3a6e1a
Backed out changeset a08637fb30c8 (bug 1143478) for causing bustages in /builds/worker/checkouts/gecko/ipc/mscom/Registration.cpp CLOSED TREE
...
--HG--
rename : mfbt/CompactPair.h => mfbt/Pair.h
2020-03-11 14:30:54 +02:00
Chris Fronk
a27e438c2d
Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D64511
--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-11 12:18:13 +00:00
Simon Giesecke
1fc7f24745
Bug 1597954 - Add a class template for objects that can only be initialized once. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D63181
--HG--
extra : moz-landing-system : lando
2020-03-05 17:26:26 +00:00
Andrew McCreight
4babb2b5ab
Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
...
Patch by bhackett and jlaster. Also reviewed by mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D60197
--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Ciure Andrei
00dd87f6f4
Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
...
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Andrew McCreight
b197e1f783
Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
...
Patch by bhackett and jlaster. Also reviewed by mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D60197
--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
David Major
fe1a68d948
Bug 1617216 - Stop using IsBadXPtr in TestPoisonArea.cpp r=froydnj
...
Use of Windows' IsBadReadPtr/IsBadWritePtr has long been discouraged, but more pressingly, TestPoisonArea's hand-written IsBadExecPtr breaks CFG rules under clang-10.
Differential Revision: https://phabricator.services.mozilla.com/D63685
--HG--
extra : moz-landing-system : lando
2020-02-21 19:23:02 +00:00