Граф коммитов

27 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson e171e76319 Bug 833254 - Fix MFBT's gcc version checks. r=waldo 2013-01-21 19:42:15 -08:00
Jeff Walden be633156a5 Bug 835648 - Move typed enum support to a new header. r=Ms2ger 2013-01-28 16:33:17 -08:00
Ryan VanderMeulen 11e2a8437f Backed out changeset 3eb633a97c1f (bug 835648) for suspected Windows orange on a CLOSED TREE. 2013-01-29 19:01:45 -05:00
Jeff Walden 88df194b4b Bug 835648 - Move typed enum support to a new header. r=Ms2ger
--HG--
extra : rebase_source : 8c912fba889c1c5435e3619714071502fbfb30a3
2013-01-28 16:33:17 -08:00
Chris Peterson 434446ef94 Bug 831633 - Back out 1c7bdeefa8ee (bug 830315) for introducing hundreds of non-virtual dtor warnings. r=waldo 2013-01-24 22:59:46 -08:00
Chris Peterson 5c5f92058c Bug 785918 - Part 2: Add MOZ_HAVE_CXX11_CONSTEXPR check and constexpr version of ArrayLength(). r=waldo
--HG--
extra : rebase_source : e826347bfdedc949614c9cca294858b7150dfda1
2013-01-07 23:29:00 -08:00
Mike Hommey 9609697ceb Bug 830315 - Don't enable MOZ_FINAL and MOZ_DELETE on clang unless compiling as C++11. r=Waldo 2013-01-15 10:12:49 +01:00
Masatoshi Kimura 1357e36e62 Bug 823917 - Use C++11 final on MSVC11. r=waldo 2013-01-03 04:47:26 +09:00
Trevor Saunders 801c9b79ba bug 822717 - remove checks for old gcc r=glandium 2012-12-18 13:22:28 -05:00
Ehsan Akhgari e485f90bb4 Bug 808876 - Part 0: Only allow the usage of enum classes in gcc 4.5 and newer; r=bzbarsky
Older gccs such as gcc 4.4 cannot handle comparison operators taking
arguments of the enum class type, which would cause valid C++ code
to not compile.  So we should just use our fallback enum class
emulation on those platforms.

--HG--
extra : rebase_source : 3cd2fd2faabc36c767e76442efabf55f8a54c83f
2012-11-06 09:38:32 -05:00
Ehsan Akhgari fc2126e5b2 Add a comment about MOZ_BEGIN_ENUM_CLASS/MOZ_END_ENUM_CLASS to say that they should not be used for nested enums, no bug
DONTBUILD
2012-10-26 13:56:54 -04:00
Ehsan Akhgari e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

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 "*.c" \
         -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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor bceb79b8d5 Bug 782919 - Add zero-arg constructor to enum class workaround; r=ehsan 2012-08-16 14:58:12 +03:00
Ed Morley 26dd8a729c Backout 19ec214f806c (bug 782916), 88b802832f52 (bug 782919), f16429aa2210 (bug 780474) for Android build failures 2012-08-17 12:25:12 +01:00
Aryeh Gregor 757baa9a0a Bug 782919 - Add zero-arg constructor to enum class workaround; r=ehsan 2012-08-16 14:58:12 +03:00
Aryeh Gregor 0ad63bfea8 Bug 751554 part 2 - Support strongly-typed enums in MFBT; r=ehsan 2012-08-01 15:19:00 +03:00
Aryeh Gregor 4ae33db236 Bug 751554 part 1 - Support explicit underlying enum types in MFBT; r=cjones 2012-08-05 12:11:24 +03:00
Jeff Walden 986ff95100 Style patrol to make everything conform to mfbt/STYLE. No bug, r=sparky 2012-06-03 20:36:43 -07:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Christian Holler 2e32f290c8 Bug 751195 - Mark GC function unsafe for AddressSanitizer, r=billm 2012-05-05 02:08:32 -04:00
Justin Lebar 0d2f332e8c Bug 729952 - Part 1: Add a better hash function to mfbt. r=waldo 2012-03-02 17:18:21 -05:00
Jeff Walden b00479bc34 Bug 712129 - Move MOZ*INLINE macros from Util.h into Attributes.h, where they make more sense. r=luke
--HG--
extra : rebase_source : f62a21c8833c9d5eb7351b18ba14f14d4286b3c0
2011-12-19 14:45:52 -05:00
Jeff Walden 9098fa4182 Bug 711775 - Implement MOZ_NORETURN to encapsulate this-function-doesn't-return semantics. r=cjones
--HG--
extra : rebase_source : d56f3ef47e11c42b5fe6a442e13fd6202208914f
2011-12-17 16:45:29 -05:00
Jeff Walden f108ab9e90 Bug 711683 - Use Clang's feature-detection macros, not its version number, for feature testing. r=cjones
--HG--
extra : rebase_source : fdf8e0bff705410a85bd4560f08b226321632bb1
2011-12-17 16:45:29 -05:00
Jeff Walden 793ba14a2e Followup to bug 704127 - s/MOZ_HAVE CXX11_FINAL/MOZ_HAVE_CXX11_FINAL/ in one case (thanks to Stuart Cook in m.d.platform for noticing this, I have *no* *idea* how he managed it, Luke had to have me point it out to even see the change in the diff), and actually define it for -std=c++0x GCC (a mistaken omission originally). rs=luke
--HG--
extra : rebase_source : 2187e3b4a133c898cf6b1fcb3dd92226c70e2082
2011-12-01 18:21:27 -08:00
Jeff Walden df2b7cbc5c Bug 704127 - Implement MOZ_FINAL as a modifier for classes and virtual member functions. r=cjones
--HG--
extra : rebase_source : d95a3b3e726f810f299314358ba8c5e23557698e
2011-11-20 22:21:16 -08:00
Jeff Walden d2d9341b8a Bug 704127 - Move C++ attribute support out of mozilla/Types.h and into mozilla/Attributes.h so that it can be used by code that's not yet compatible with the full mfbt experience. r=cjones
--HG--
extra : rebase_source : 7b653358a73f222c055f5139e33ca470475f88c9
2011-11-20 12:22:51 -08:00