Tom Ritter
bae4393a28
Bug 1331349 Fix printf formatting errors in MinGW compilation r=froydnj
...
MozReview-Commit-ID: A4PMABfxzez
2017-03-31 00:14:43 -05:00
Michael Layzell
4d66dd2d02
Bug 1331434 - Part 1: Add an analysis to require a return after calls to annotated functions, r=ehsan
...
MozReview-Commit-ID: 7NqXap8FdSn
2017-03-07 19:06:48 -05:00
David Major
2afac27386
Bug 1324093 - Part 3.5: Add MOZ_MAYBE_UNUSED to mfbt/Attributes.h. r=froydnj
...
MozReview-Commit-ID: Ef1nkRipaDg
2017-01-18 09:37:54 +13:00
Nicholas Nethercote
4c7109ca51
Bug 1325541 - Expand comments for MOZ_MUST_USE. r=froydnj.
...
DONTBUILD because it's a comment-only change.
2016-12-23 16:11:33 +11:00
Chris Peterson
8871a3f3a1
Bug 1280295 - Remove MOZ_HAVE_REF_QUALIFIERS. r=froydnj
2017-01-03 22:42:33 -08:00
Tom Tromey
3c003a7dd8
Bug 553032 - document MOZ_FORMAT_PRINTF; r=froydnj
...
MozReview-Commit-ID: 4qX1nltLBxf
2016-10-13 13:08:39 -06:00
Tom Tromey
9e30668fb7
Bug 553032 - move MOZ_FORMAT_PRINTF to mfbt; r=froydnj
...
MozReview-Commit-ID: 2aC4ZUOsGPK
2016-10-11 12:42:58 -06:00
Sebastian Hengst
5327a93ac3
Backed out changeset 16f326945f38 (bug 553032) for spidermonkey bustage. r=backout on a CLOSED TREE
2016-10-19 18:33:37 +02:00
Sebastian Hengst
4169ae9542
Backed out changeset e832fc3b5a03 (bug 553032)
2016-10-19 18:29:45 +02:00
Tom Tromey
2544199fc0
Bug 553032 - document MOZ_FORMAT_PRINTF; r=froydnj
...
MozReview-Commit-ID: 4qX1nltLBxf
2016-10-13 13:08:39 -06:00
Tom Tromey
65176778fc
Bug 553032 - move MOZ_FORMAT_PRINTF to mfbt; r=froydnj
...
MozReview-Commit-ID: 2aC4ZUOsGPK
2016-10-11 12:42:58 -06:00
Tooru Fujisawa
22ccac7151
Bug 1290337 - Part 22: Add moz_non_param annotation. r=ehsan,jwalden
2016-09-11 18:23:11 +09:00
Andi-Bogdan Postelnicu
250486cbe1
Bug 1230311 - add annotation to enforce that if a method is overridden also base method is called. r=nfroyd
...
MozReview-Commit-ID: AQ3Kx2qidU0
2016-10-04 17:00:17 +03:00
Terrence Cole
84430a3ce9
Backed out changeset d85334f696eb (bug 1285057) for implicitly depending on clang 3.8.
2016-09-23 15:59:55 -07:00
Terrence Cole
693eb020a3
Bug 1285057 - Blacklist UBSan detection of the GC's generic interfaces; r=sfink
2016-07-07 08:59:36 -07:00
Andi-Bogdan Postelnicu
f93a695f38
Bug 525063 - add attribute to mark functions that initialize member variables for their parent class, in order to be scanned by clang-plugin static analysis. r=froydnj
...
MozReview-Commit-ID: 5yTnTUVLpSC
2016-08-30 10:07:03 +03:00
Michelangelo De Simone
ee23d98646
Bug 1120059 - Remove unnecessary MOZ_EXPLICIT_CONVERSION macros. r=jwalden
...
MozReview-Commit-ID: 7CX1VnBRDpk
2016-07-13 15:07:52 -07:00
Chris Peterson
c35faf4632
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Andi-Bogdan Postelnicu
a1c89d9de0
Bug 525063 - renamed MOZ_INITIALIZED_OUTSIDE_CONSTRUCTOR -> MOZ_INIT_OUTSIDE_CTOR. r=nfroyd
...
MozReview-Commit-ID: GPQY8b2OM2V
2016-06-28 16:30:49 +03:00
Andi-Bogdan Postelnicu
3a3f60818e
Bug 525063 - add attribute to mark member variables that should be skipped by clang plugin initialization checker. r=nfroyd
...
MozReview-Commit-ID: 4V1YcK2thiF
2016-06-09 09:32:11 +03:00
Nicholas Nethercote
26b6e79d96
Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
...
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.
MozReview-Commit-ID: 1VS4Dney4WX
2016-04-27 14:16:50 +10:00
Nicholas Nethercote
93e01e245e
Bug 1267550 (part 1) - Rename MOZ_MUST_USE as MOZ_MUST_USE_TYPE. r=ehsan.
...
This will allow MOZ_MUST_USE to be used for a different and more common case.
MozReview-Commit-ID: 4dQsdWjJfc6
2016-04-27 08:22:10 +10:00
Chris Peterson
33656551e8
Bug 1266294 - Remove unnecessary compiler version checks for gcc <= 4.8.0 in mfbt. r=froydnj
2016-04-17 17:08:10 -07:00
Ehsan Akhgari
1b959f7003
Bug 1264827 - Part 3: Add the MOZ_NEEDS_MEMMOVABLE_MEMBERS annotation to MFBT; r=froydnj
2016-04-18 15:43:48 -04:00
Ehsan Akhgari
895b294332
Bug 1080968 - Don't use constexpr on clang-cl when emulating MSVC 2013
...
constexpr-ness of things can change the ABI requirements, and MSVC 2013
doesn't support constexpr, so choosing it for clang-cl when emulating
MSVC 2013 will cause ABI incomap issues between object files compiled
with the two compilers.
This reverts part of the commit for the original bug.
2016-01-27 21:10:03 -05:00
Michael Layzell
68ec23bd03
Bug 1226376 - Part 1: Allow non-trivial constexpr constructors in MOZ_TRIVIAL_CTOR_DTOR classes, r=ehsan
2016-01-08 15:34:24 -05:00
Chris Peterson
593659c5f2
Bug 1235277 - Define MOZ_FALLTHROUGH_ASSERT to workaround -Wunreachable-code warnings about MOZ_FALLTHROUGH in debug builds. r=botond
2015-12-27 13:27:17 -07:00
Chris Peterson
06f0b0df20
Bug 1215411 - Define MOZ_FALLTHROUGH annotation to suppress clang's -Wimplicit-fallthrough warnings. r=botond
2015-10-04 21:03:26 -07:00
Michael Layzell
25eabf11f1
Bug 1201190 - Part 2: Add MOZ_NON_TEMPORARY_CLASS and MOZ_RAII to mfbt, r=ehsan
2015-09-12 16:53:32 -04:00
Makoto Kato
2cbfb3b9d1
Bug 1197734 - Add MOZ_HAVE_CXX11_CONSTEXPR_IN_TEMPLATES on VS2015+. r=Waldo
2015-08-25 16:53:25 +09:00
Xidorn Quan
e207e54033
Bug 1189655 - Define MOZ_HAVE_CXX11_CONSTEXPR on VS2015 or later. r=Waldo
2015-08-21 09:17:18 +10:00
Michael Layzell
9bf57bbdbb
Bug 1192130 - Part 2: Use MOZ_NON_AUTOABLE to validate the usage of already_AddRefed, r=ehsan
2015-08-14 17:33:54 -04:00
Aryeh Gregor
686831fbdf
Bug 1193298 - Part 3: Delete RefPtr<T>::operator T*()&&. r=froydnj
...
I put MOZ_HAVE_REF_QUALIFIERS in Attributes.h for lack of a better
place. I didn't especially want to make a whole new file for it.
To make the tree compile, support for moving RefPtr to nsRefPtr was
needed. I chose to put the definitions in RefPtr.h instead of
nsRefPtr.h because RefPtr.h looks to be included in fewer files, so I
preferred to bloat fewer files with the extra include.
For some reason operator!() wasn't necessary here, although it seems it
is for nsRefPtr.
2015-08-11 06:45:00 -04:00
Michael Layzell
7520a9ad24
Bug 885515 - Part 2: Add MOZ_HEAP_CLASS to mfbt, r=ehsan
2015-08-09 12:42:11 -04:00
Makoto Kato
db55a34515
Bug 1190313 - Set MOZ_HAVE_EXPLICIT_CONVERSION on VS2015. r=nfroyd
2015-08-05 17:14:42 +09:00
Michael Layzell
cd7645b975
Bug 1187073 - Use MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS to validate the usage of AlignedStorage2. r=ehsan
2015-07-31 13:59:00 -04:00
Ehsan Akhgari
13b9c523ed
Bug 1159433 - Part 2: Add the MOZ_NON_MEMMOVABLE and MOZ_NEEDS_MEMMOVABLE_TYPE macros to MFBT; r=froydnj
2015-07-24 19:15:18 -04:00
Michael Layzell
4e477273da
Bug 1123907 - Part 2: Add MOZ_NEEDS_NO_VTABLE_TYPE to Attributes.h, and use it to verify the EntryType argument of nsTHashtable; r=ehsan
2015-07-24 19:14:09 -04:00
Michael Layzell
f95d648582
Bug 1180993 - Part 2: Add the MOZ_MUST_USE attribute to mfbt, and use it to verify usage of already_AddRefed. r=ehsan
2015-07-06 21:42:00 -04:00
Michael Layzell
85ff330ef8
Bug 1169337 - Clarify MOZ_{NON_,}OWNING_REF/MOZ_UNSAFE_REF documentation. r=froydnj
2015-06-01 14:44:00 -04:00
Jim Blandy
2bb4503427
Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium
2015-03-19 00:46:40 -07:00
Jim Blandy
650a964cf1
Bug 1145051: Replace uses of NS_ATTR_MALLOC with new MOZ_ALLOCATOR from mfbt/Attributes.h. r=glandium
2015-03-18 23:56:08 -07:00
Nicolas B. Pierron
52758d23c2
Bug 1143011 - Extract the has/add/take logic out of the register sets to distinguish between allocatable and live sets. r=jandem,Waldo
2015-03-28 01:08:12 +01:00
Ehsan Akhgari
681cb2f2e2
Bug 1145631 - Part 6: Remove MOZ_OVERRIDE and MOZ_FINAL; r=froydnj
2015-03-21 12:28:53 -04:00
Dan Gohman
b1f4584194
Bug 1131783 - Optimize away null checks in non-POD Vectors too r=waldo
2015-02-12 08:37:01 -08:00
Dan Gohman
8c756ddddb
Bug 1125185 - Define MOZ_COLD for marking "cold" functions r=waldo
2015-01-26 17:30:19 -08:00
Trevor Saunders
ca22097c3c
bug 1077549 - remove useless gcc version checks r=glandium
2015-01-15 21:30:05 -05:00
Ehsan Akhgari
d133ad4de1
Backed out changeset 11aebde6e809 (bug 1120059) because of build bustage on Windows
2015-01-13 00:26:16 -05:00
Birunthan Mohanathas
dc636674b2
Bug 1120059 - Remove MOZ_{HAVE_,}EXPLICIT_CONVERSION. r=Waldo
2015-01-13 06:41:15 +02:00
Chris Peterson
ad426f785b
Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo
2015-01-06 21:39:46 -08:00