gecko-dev/mfbt
Gerald Squelart 81d28b5530 Bug 1719959 - Better Tag type choice, fixed corresponding test - r=emilio
On some systems, uint_fast8_t may be as big as size_t! So the `static_assert(sizeof(aIndex) < sizeof(size_t))` could fail there. The better test here is to check for the expected type (uint_fast8_t).

Now, since uint_fast8_t can be bigger than 8 bits, we may as well choose it for variant sizes greater than 255, up to UINT_FAST8_MAX.
(The added parentheses help clang-format distinguish '<' for tests vs for templates.)

Differential Revision: https://phabricator.services.mozilla.com/D119574
2021-07-11 09:43:50 +00:00
..
double-conversion
lz4
tests
Algorithm.h
Alignment.h
AllocPolicy.h
AlreadyAddRefed.h
Array.h
ArrayUtils.h
Assertions.cpp
Assertions.h
AtomicBitfields.h
Atomics.h
Attributes.h
BinarySearch.h
BitSet.h
BloomFilter.h
Buffer.h
BufferList.h
Casting.h
ChaosMode.cpp
ChaosMode.h
Char16.h
CheckedInt.h
CompactPair.h
Compiler.h
Compression.cpp
Compression.h
DbgMacro.h
DebugOnly.h
DefineEnum.h
DoublyLinkedList.h
EndianUtils.h
EnumSet.h
EnumTypeTraits.h
EnumeratedArray.h
EnumeratedRange.h
FStream.h
FastBernoulliTrial.h
FloatingPoint.cpp
FloatingPoint.h
FunctionRef.h
FunctionTypeTraits.h
HashFunctions.cpp
HashFunctions.h
HashTable.h
HelperMacros.h
InitializedOnce.h
IntegerRange.h
IntegerTypeTraits.h
JSONWriter.cpp
JSONWriter.h
JsRust.h
Latin1.h
Likely.h
LinkedList.h
MacroArgs.h
MacroForEach.h
MathAlgorithms.h
Maybe.h
MaybeOneOf.h
MaybeStorageBase.h
MemoryChecking.h
MemoryReporting.h
NonDereferenceable.h
NotNull.h
Opaque.h
OperatorNewExtensions.h
PairHash.h
Path.h
PodOperations.h
Poison.cpp
Poison.h
RandomNum.cpp
RandomNum.h
Range.h
RangedArray.h
RangedPtr.h
ReentrancyGuard.h
RefCountType.h
RefCounted.h
RefPtr.h
Result.h
ResultExtensions.h
ResultVariant.h
ReverseIterator.h
RollingMean.h
SHA1.cpp
SHA1.h
SPSCQueue.h
STYLE
Saturate.h
ScopeExit.h
Scoped.h
SegmentedVector.h
SharedLibrary.h
SmallPointerArray.h
Span.h
SplayTree.h
StaticAnalysisFunctions.h
TaggedAnonymousMemory.cpp
TaggedAnonymousMemory.h
Tainting.h
TemplateLib.h
TextUtils.h
ThreadLocal.h
ThreadSafeWeakPtr.h
ToString.h
TsanOptions.h
Tuple.h
TypeTraits.h
TypedEnumBits.h
Types.h
UniquePtr.h
UniquePtrExtensions.cpp
UniquePtrExtensions.h
Unused.cpp
Unused.h
Utf8.cpp
Utf8.h
Variant.h
Vector.h
WasiAtomic.h
WeakPtr.h
WindowsVersion.h
WrappingOperations.h
XorShift128PlusRNG.h
fallible.h
moz.build