Botond Ballo
|
f565e03c9e
|
Bug 1221680 - Avoid hard errors when testing convertibility using the IsConvertible type trait. r=froydnj
|
2015-11-06 17:47:36 -05:00 |
|
Bill McCloskey
|
b1e646629d
|
Bug 1221368 - Change MakeTuple to decay the types of its arguments (r=froydnj)
|
2015-11-09 10:21:11 -08:00 |
|
Bobby Holley
|
7c6b466218
|
Bug 1168008 - Make IsConvertible handle void. r=gerald
|
2015-05-28 16:03:08 -07:00 |
|
Gerald Squelart
|
7473cd8e00
|
Bug 1153295 - Add mozilla::Declval. r=nfroyd
|
2015-04-27 18:11:00 -04:00 |
|
Gerald Squelart
|
f918225e68
|
Bug 1153295 - Add mozilla::AddRvalueReference. r=nfroyd
|
2015-04-27 18:07:00 -04:00 |
|
Gerald Squelart
|
8481811dd7
|
Bug 1131445 - variadic NS_NewRunnableMethodWithArgs with storage&passing argument type decorators. r=waldo
|
2015-03-01 18:12:00 +01:00 |
|
Gerald Squelart
|
aa3c066ad3
|
Bug 1137583 - Fix for CV-qualified pointers; Added tests. r=waldo
|
2015-03-01 18:08:00 +01:00 |
|
Ehsan Akhgari
|
a7f747ec15
|
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
|
c0e8a3e8c5
|
Bug 1041914 - Convert the fourth quarter of MFBT to Gecko style. r=Ms2ger.
|
2014-07-22 20:54:41 -07:00 |
|
Jeff Walden
|
ebe6ce67aa
|
Bug 1030515 - Make IsSigned and IsUnsigned usable with user-defined types. r=froydnj
|
2014-06-25 18:47:04 -07:00 |
|
Jeff Walden
|
c55cdaf208
|
Bug 953296 - Add IsLvalueReference and IsVoid. r=jcranmer
|
2014-01-09 10:09:14 -06:00 |
|
Jeff Walden
|
1d8b5a7e2e
|
Bug 953296 - Implement mozilla::RemoveExtent. r=jcranmer
|
2014-06-10 12:58:17 -07:00 |
|
Chris Peterson
|
49cf93707c
|
Bug 945029 - Fix up Android's broken [u]intptr_t inttype macros. r=Waldo
|
2014-05-12 22:27:14 -07:00 |
|
Benoit Jacob
|
6d26d2d145
|
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
|
c3095e50a3
|
Bug 953296 - Implement mozilla::IsArray. r=froydnj
|
2013-12-30 01:07:32 -06:00 |
|
Jeff Walden
|
3af7992d52
|
Bug 953296 - Implement mozilla::IsRvalueReference and mozilla::IsReference. r=froydnj
|
2013-12-30 01:07:25 -06:00 |
|
Jeff Walden
|
6c3df7b33d
|
Bug 953296 - Implement mozilla::IsClass and mozilla::IsEmpty. r=jcranmer
|
2013-12-30 01:07:39 -06:00 |
|
Ehsan Akhgari
|
1ab9c7bcb4
|
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
|
2013-07-18 13:59:53 -04:00 |
|
Jeff Walden
|
8d697501d0
|
Bug 798179 - Implement mozilla::MakeUnsigned. r=froydnj
|
2013-03-05 15:44:02 -08:00 |
|
Jeff Walden
|
aabe5f6126
|
Bug 798179 - Implement mozilla::MakeSigned. r=froydnj
|
2013-03-05 15:44:02 -08:00 |
|
Jeff Walden
|
98ab775d45
|
Bug 873585 - Silence a vacuous-comparison-against-0 warning when compiling with gcc 4.5, at least. Also make IsSigned/IsUnsigned actually work on floating-point types. r=froydnj
|
2013-05-17 11:07:02 -07:00 |
|
Ehsan Akhgari
|
ebec95f864
|
Bug 802806 - Make mfbt's IsBaseOf work with multiple inheritance; r=Waldo
|
2012-10-17 17:37:53 -04:00 |
|
Jeff Walden
|
1da2ff72aa
|
Bug 766347 - Implement mozilla::IsConvertible to detect when a value of one type will convert to a value of another type. r=luke
|
2012-06-19 13:55:23 -07:00 |
|