gecko-dev/mfbt
Emilio Cobos Álvarez c3ee3ac3a8 Bug 1418624 - Allow mozilla::Result to be moved, make unwrap{,Err}() move, and add inspect() APIs that return references. r=froydnj
Also adjust some of the callers that were either calling unwrap() repeatedly on
the same result, or were doing silly copies, to use inspect().

We could try to use stuff like:

https://clang.llvm.org/docs/AttributeReference.html#consumed-annotation-checking

Differential Revision: https://phabricator.services.mozilla.com/D41425

--HG--
extra : moz-landing-system : lando
2019-08-13 08:26:18 +00:00
..
double-conversion
tests Bug 1418624 - Allow mozilla::Result to be moved, make unwrap{,Err}() move, and add inspect() APIs that return references. r=froydnj 2019-08-13 08:26:18 +00:00
Algorithm.h
Alignment.h
AllocPolicy.h
AlreadyAddRefed.h
Array.h Bug 1538081 - Part 3: Add operator<<(ostream&) definitions for a few common types. r=froydnj,gerald 2019-03-30 04:26:26 +00:00
ArrayUtils.h
Assertions.cpp Bug 1536675 - Take the crashing out of MOZ_CrashPrintf r=froydnj 2019-04-02 19:20:41 +00:00
Assertions.h Bug 1570725 - Show type of assertion in crashreporter MozCrashReason, r=froydnj 2019-08-06 20:33:34 +00:00
Atomics.h
Attributes.h Bug 1569681: Part 3 - Update mfbt/Attributes.h with new MOZ_STATIC_LOCAL_CLASS macro; r=Ehsan 2019-07-30 18:51:11 +00:00
BinarySearch.h
BloomFilter.h
Buffer.h
BufferList.h No bug - clang-format -p mfbt 2019-03-29 23:42:40 -07:00
Casting.h
ChaosMode.cpp
ChaosMode.h
Char16.h
CheckedInt.h Bug 1548409 - Use MOZ_DIAGNOSTIC_ASSERT. r=froydnj 2019-05-02 13:24:31 +00:00
Compiler.h Bug 1539241 - Remove MOZ_IS_MSVC for being unused and misleadingly named r=froydnj 2019-03-26 19:42:26 +00:00
Compression.cpp
Compression.h
DbgMacro.h Bug 1543501 - Print a 'token' that allows output from MOZ_DBG() to be easily grepped for among other output. r=heycam 2019-04-12 16:49:56 +00:00
DebugOnly.h
DefineEnum.h
DoublyLinkedList.h
EndianUtils.h
EnumeratedArray.h Bug 1546697 - EnumeratedArray should have a copy assignment operator. r=froydnj 2019-04-25 16:40:47 +00:00
EnumeratedRange.h
EnumSet.h Bug 1540357 - Fix implicit int truncation in dom/canvas's mfbt/* includes. r=froydnj 2019-04-02 17:00:53 +00:00
EnumTypeTraits.h
fallible.h Bug 1562358 - Move fallible.h into MFBT. r=glandium 2019-07-10 01:51:15 +00:00
FastBernoulliTrial.h
FloatingPoint.cpp
FloatingPoint.h Bug 1560658: Add SameValueZero to mfbt/FloatingPoint.h r=jwalden 2019-06-28 23:57:13 +00:00
FStream.h
FunctionTypeTraits.h
GuardObjects.h
HashFunctions.cpp
HashFunctions.h Bug 1567944 - remove *DISABLE_INTEGRAL_CONSTANT_OVERFLOW_WARNING macros; r=dmajor 2019-07-23 08:02:48 +00:00
HashTable.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-07-16 07:33:44 +00:00
IntegerPrintfMacros.h
IntegerRange.h Bug 1549694 - Don't use check as an identifier in IntegerRange.h, since it conflicts with system headers in Mac and Windows. r=froydnj 2019-05-07 13:29:17 +00:00
IntegerTypeTraits.h
JSONWriter.cpp
JSONWriter.h
Likely.h
LinkedList.h
LinuxSignal.h
lz4.c Bug 1544980 - Update lz4 to version 1.9.1. r=froydnj 2019-04-24 10:23:54 +00:00
lz4.h Bug 1544980 - Update lz4 to version 1.9.1. r=froydnj 2019-04-24 10:23:54 +00:00
MacroArgs.h
MacroForEach.h
MathAlgorithms.h Bug 1540357 - Fix implicit int truncation in dom/canvas's mfbt/* includes. r=froydnj 2019-04-02 17:00:53 +00:00
Maybe.h
MaybeOneOf.h
MemoryChecking.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
MemoryReporting.h
Move.h
moz.build Bug 1534780 - Move ipc::FileDescriptor's UniquePtr instance into MFBT as UniqueFileHandle. r=froydnj 2019-06-28 19:46:58 +00:00
NonDereferenceable.h
NotNull.h
NullPtr.h
Opaque.h
OperatorNewExtensions.h
Pair.h
Path.h
PodOperations.h
Poison.cpp
Poison.h
RandomNum.cpp
RandomNum.h
Range.h
RangedArray.h
RangedPtr.h Bug 1469155 - Add overloading for std::nullptr_t for RangedPtr equality operator r=froydnj 2019-03-26 19:10:24 +00:00
RecordReplay.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-05-25 17:46:15 +00:00
RecordReplay.h Bug 1547084 Part 1 - Remove recordReplayDirective interface and uses, r=mccr8. 2019-05-12 13:09:55 -10:00
ReentrancyGuard.h
RefCounted.h
RefCountType.h
RefPtr.h Bug 1570395: Add StaticLocalAutoPtr and StaticLocalRefPtr to XPCOM; r=froydnj 2019-08-02 17:26:37 +00:00
Result.h Bug 1418624 - Allow mozilla::Result to be moved, make unwrap{,Err}() move, and add inspect() APIs that return references. r=froydnj 2019-08-13 08:26:18 +00:00
ResultExtensions.h
ReverseIterator.h
RollingMean.h
Saturate.h Bug 1558440 - Use SaturateUint32 for the visible content heuristic. r=bzbarsky 2019-06-11 15:02:17 +00:00
Scoped.h
ScopeExit.h
SegmentedVector.h
SHA1.cpp
SHA1.h
SharedLibrary.h
SmallPointerArray.h Bug 1562789 - SmallPointerArray should support moves, and have an IsEmpty() helper. r=froydnj 2019-07-02 18:50:04 +00:00
Span.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-08-13 07:15:25 +00:00
SplayTree.h
Sprintf.h
SPSCQueue.h
StaticAnalysisFunctions.h
STYLE
TaggedAnonymousMemory.cpp
TaggedAnonymousMemory.h
TemplateLib.h
TextUtils.h
ThreadLocal.h
ThreadSafeWeakPtr.h
ToString.h
Tuple.h
TypedEnumBits.h
Types.h
TypeTraits.h
UniquePtr.h
UniquePtrExtensions.cpp Bug 1534780 - Move ipc::FileDescriptor's UniquePtr instance into MFBT as UniqueFileHandle. r=froydnj 2019-06-28 19:46:58 +00:00
UniquePtrExtensions.h Bug 1534780 - Move ipc::FileDescriptor's UniquePtr instance into MFBT as UniqueFileHandle. r=froydnj 2019-06-28 19:46:58 +00:00
Unused.cpp
Unused.h
Utf8.cpp
Utf8.h Bug 1554362 - Accumulate external source text as either UTF-8 or UTF-16, in pref-controlled fashion, and then compile the accumulated text using corresponding JSAPI entrypoints without inflating UTF-8 to UTF-16. r=bzbarsky 2019-06-15 20:48:40 +00:00
Variant.h Bug 1548133: mozilla::Variant::addTagToHash should be const-this. r=froydnj 2019-05-01 12:13:23 +00:00
Vector.h Bug 1567944 - remove MSVC-specific warning goo from {Vector,Span}.h; r=dmajor 2019-07-23 09:24:28 +00:00
WeakPtr.h
WindowsVersion.h Bug 1558272: Add Windows 10 May 2019 Update to WindowsVersion.h; r=dmajor 2019-06-10 18:52:38 +00:00
WrappingOperations.h Bug 1567944 - remove *DISABLE_INTEGRAL_CONSTANT_OVERFLOW_WARNING macros; r=dmajor 2019-07-23 08:02:48 +00:00
XorShift128PlusRNG.h