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
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
ad6c02c994
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in mfbt. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D62542
--HG--
extra : moz-landing-system : lando
2020-02-13 11:20:27 +00:00
Mihai Alexandru Michis
395eb2050d
Backed out changeset f3d9fbb2daf1 (bug 1613985) for causing hazard bustages on Linux.
...
CLOSED TREE
2020-02-12 16:43:30 +02:00
Simon Giesecke
066ea869b7
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in mfbt. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D62542
--HG--
extra : moz-landing-system : lando
2020-02-12 11:13:24 +00:00
Emilio Cobos Álvarez
cde7beaaa4
Bug 1608064
- Replace Is{Rvalue,Lvalue,}Reference with <type_traits> equivalents. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D59309
--HG--
extra : moz-landing-system : lando
2020-01-10 10:40:34 +00:00
Emilio Cobos Álvarez
f210527c4f
Bug 1607595 - Manual fixups, and remove mozilla::IsBaseOf. r=froydnj
...
This is manual, but hopefully trivial.
Differential Revision: https://phabricator.services.mozilla.com/D59014
--HG--
extra : moz-landing-system : lando
2020-01-08 14:52:18 +00:00
Emilio Cobos Álvarez
e363a41bd4
Bug 1607595 - Remove uses of mozilla::IsBaseOf. r=froydnj
...
Automatically generated by:
$ rg 'IsBaseOf<' | cut -d : -f 1 | xargs sed -i 's/mozilla::IsBaseOf</std::is_base_of</g'
$ rg 'IsBaseOf<' | cut -d : -f 1 | xargs sed -i 's/IsBaseOf</std::is_base_of</g
Differential Revision: https://phabricator.services.mozilla.com/D59013
--HG--
extra : moz-landing-system : lando
2020-01-08 14:52:10 +00:00
Sylvestre Ledru
6f45c666bc
Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D14595
--HG--
extra : moz-landing-system : lando
2018-12-14 18:10:35 +00:00
Sylvestre Ledru
c911c249ec
Bug 1424866 - Update the comment for fix a warning: unnecessary parentheses in declaration of 'type name' r=gerald DONTBUILD
2018-01-04 11:59:13 +01:00
Sylvestre Ledru
530203c95e
Bug 1424866 - Fix a warning: unnecessary parentheses in declaration of 'type name' r=gerald
...
MozReview-Commit-ID: CBOTKHgqDfV
--HG--
extra : rebase_source : cc9d339008e7024b5406153bad37e4d717c7ae59
2018-01-03 17:43:04 +01:00
Sebastian Hengst
3c298c594d
Backed out changeset eb54dc28dfc7 (bug 1400307) for Android API 16+ opt bustage at android-ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630 (invalid conversion). r=backout on a CLOSED TREE
2017-09-19 16:31:49 +02:00
Tom Tromey
392d3c2d42
Bug 1400307 - handle char32_t in TypeTraits.h; r=froydnj
...
This adds a couple of missing char32_t specializations to TypeTraits.h,
and adds a few extra type traits tests besides.
MozReview-Commit-ID: 7aIJbZ2Ppka
--HG--
extra : rebase_source : 39ba985c4cc7ced3c667c6fc32c015e0389b1fd2
2017-09-15 13:01:11 -06:00
Nicolas B. Pierron
06bb70ebad
Bug 1318677 part 3 - mozilla::Result: Add a new packing strategy to pack small enumerated values in a single word. r=Waldo
2017-02-07 18:57:43 +00:00
Xidorn Quan
7d4ca9c88b
Bug 1303302 - Add IsDestructible trait in TypeTraits and use it for refcounted type static check. r=froydnj
...
MozReview-Commit-ID: G3YFhrJngq0
--HG--
extra : rebase_source : da0aa325eb7772c1a156440ed46be9d0d429c91e
2016-09-16 17:23:55 +10:00
Xidorn Quan
9668b6f572
Bug 1241901 part 3 - Add IsMemberPointer and IsScalar type traits. r=froydnj
...
--HG--
extra : source : 02269acc78bfde8d3171bf6023a5dda4cac9df3c
2016-01-30 10:33:41 +11:00
Botond Ballo
1a83097cba
Bug 1221680
- Avoid hard errors when testing convertibility using the IsConvertible type trait. r=froydnj
...
--HG--
extra : source : ea11bb67c3510671a501724d17d9872c3455891d
2015-11-06 17:47:36 -05:00
Bill McCloskey
47b5adaa34
Bug 1221368 - Change MakeTuple to decay the types of its arguments (r=froydnj)
2015-11-09 10:21:11 -08:00
Bobby Holley
868aa56b18
Bug 1168008 - Make IsConvertible handle void. r=gerald
2015-05-28 16:03:08 -07:00
Gerald Squelart
f330df40d4
Bug 1153295 - Add mozilla::Declval. r=nfroyd
2015-04-27 18:11:00 -04:00
Gerald Squelart
173514b341
Bug 1153295 - Add mozilla::AddRvalueReference. r=nfroyd
2015-04-27 18:07:00 -04:00
Gerald Squelart
4495d81efb
Bug 1131445 - variadic NS_NewRunnableMethodWithArgs with storage&passing argument type decorators. r=waldo
...
--HG--
extra : rebase_source : 3c2104c19bb37624ec32a1ca4c50235e7cefd953
2015-03-01 18:12:00 +01:00
Gerald Squelart
e984800b68
Bug 1137583 - Fix for CV-qualified pointers; Added tests. r=waldo
...
--HG--
extra : rebase_source : cf379d72ab7165ee5a6f3edad0ec2050ad66001b
2015-03-01 18:08:00 +01:00
Ehsan Akhgari
4354953b4f
Bug 1118486 - Part 1: Use `= delete` instead of MOZ_DELETE directly; r=Waldo
...
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:
#!/bin/bash
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "*/.git*" \
! -wholename "obj-*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Nicholas Nethercote
6c3f5d7b8e
Bug 1041914 - Convert the fourth quarter of MFBT to Gecko style. r=Ms2ger.
...
--HG--
extra : rebase_source : 588fa9c0d1e819e1826835c4ef4a1428a927bf93
2014-07-22 20:54:41 -07:00
Jeff Walden
297cdb7279
Bug 1030515 - Make IsSigned and IsUnsigned usable with user-defined types. r=froydnj
...
--HG--
extra : rebase_source : f74d5c0b9f05a56c4d56aba1ebbdb944a3464b30
2014-06-25 18:47:04 -07:00
Jeff Walden
770045e23f
Bug 953296 - Add IsLvalueReference and IsVoid. r=jcranmer
...
--HG--
extra : rebase_source : 53def7d45901da43ffbcfef3adbbea3a3e6bb329
2014-01-09 10:09:14 -06:00
Jeff Walden
b706ddaf73
Bug 953296 - Implement mozilla::RemoveExtent. r=jcranmer
...
--HG--
extra : rebase_source : 97d4f055fc80074265bd5c8b1b0a565d8e994e7b
2014-06-10 12:58:17 -07:00
Chris Peterson
163d828c29
Bug 945029 - Fix up Android's broken [u]intptr_t inttype macros. r=Waldo
2014-05-12 22:27:14 -07:00
Benoit Jacob
7c2d5b3529
Bug 807607 - Make MFBT tests use MOZ_RELEASE_ASSERT instead of MOZ_ASSERT to ensure test coverage in non-DEBUG - r=Waldo
...
find mfbt/tests/ -type f | xargs sed -i 's/MOZ_ASSERT/MOZ_RELEASE_ASSERT/g'
2014-04-24 17:06:50 -04:00
Jeff Walden
bb04f6021f
Bug 953296 - Implement mozilla::IsArray. r=froydnj
...
--HG--
extra : rebase_source : 3eb6fff774f28c39374f1e7c148f472d95e538c0
2013-12-30 01:07:32 -06:00