gecko-dev/xpcom/ds
Chris Peterson c5f254d17c Bug 1791961 - xpcom: Fix C++20 -Wambiguous-reversed-operator warnings. r=emilio
clang is warning that C++20 expects comparison operators to be commutative: `a == b` and `b == a` should resolve to the same comparison operator function. Warnings about the comparison of const and non-const objects can be fixed by making the comparison operator function const.

xpcom/base/AvailableMemoryWatcherMac.cpp:404:14 [-Wambiguous-reversed-operator] ISO C++20 considers use of overloaded operator '==' (with operand types 'mozilla::MacMemoryPressureLevel' and 'mozilla::MacMemoryPressureLevel') to be ambiguous despite there being a unique best viable function
xpcom/base/AvailableMemoryWatcherMac.cpp:568:24 [-Wambiguous-reversed-operator] ISO C++20 considers use of overloaded operator '==' (with operand types 'mozilla::MacMemoryPressureLevel' and 'mozilla::MacMemoryPressureLevel') to be ambiguous despite there being a unique best viable function

Depends on D179024

Differential Revision: https://phabricator.services.mozilla.com/D179025
2023-05-26 04:51:44 +00:00
..
test Bug 1790816 - Reformat xpcom/ with isort. r=mccr8 DONTBUILD 2022-11-22 13:37:48 +00:00
tools Bug 1793463 - Part 3: Handle non-bytes keys more consistently in perfecthash, r=emilio 2022-12-01 15:43:18 +00:00
ArenaAllocator.h
ArenaAllocatorExtensions.h
ArrayAlgorithm.h
ArrayIterator.h
Atom.py
AtomArray.h
components.conf Bug 1789902 - Part 2: Use XPCOM static components instead of Services in Rust, r=xpcom-reviewers,necko-reviewers,barret,valentin 2022-09-13 13:47:13 +00:00
Dafsa.cpp
Dafsa.h
HTMLAtoms.py
IncrementalTokenizer.cpp
IncrementalTokenizer.h
moz.build Bug 1812753 - Move xpcom/ds/MruCache.h to mfbt/, r=glandium 2023-01-31 17:59:25 +00:00
nsArray.cpp Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsArray.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsArrayEnumerator.cpp
nsArrayEnumerator.h
nsArrayUtils.cpp
nsArrayUtils.h
nsAtom.h Bug 1823397, Add nsAutoAtom*String, r=emilio 2023-03-20 13:56:00 +00:00
nsAtomTable.cpp Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsAtomTable.h Bug 1800582 - Don't count atoms in the a11y cache r=Jamie 2022-11-16 09:55:27 +00:00
nsBaseHashtable.h
nsCharSeparatedTokenizer.cpp Bug 1772006 - Part 8: Allow building xpcom/string without unified builds, r=xpcom-reviewers,barret 2022-07-30 00:12:49 +00:00
nsCharSeparatedTokenizer.h
nsCheapSets.h
nsClassHashtable.h
nsCOMArray.cpp
nsCOMArray.h
nsCRT.cpp
nsCRT.h
nsDeque.cpp
nsDeque.h
nsEnumeratorUtils.cpp
nsEnumeratorUtils.h
nsExpirationTracker.h
nsGkAtoms.cpp
nsGkAtoms.h
nsHashKeys.h
nsHashPropertyBag.cpp
nsHashPropertyBag.h
nsHashtablesFwd.h
nsIArray.idl
nsIArrayExtensions.idl
nsIINIParser.idl Bug 1787121: add support for formatting INI files to nsINIParser r=xpcom-reviewers,kmag 2022-09-28 13:17:41 +00:00
nsIMutableArray.idl
nsINIParserImpl.cpp Bug 1787121: add support for formatting INI files to nsINIParser r=xpcom-reviewers,kmag 2022-09-28 13:17:41 +00:00
nsINIParserImpl.h Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika 2022-06-30 09:12:16 +00:00
nsInterfaceHashtable.h
nsIObserver.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIObserverService.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIPersistentProperties2.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIPersistentProperties.h
nsIProperties.idl
nsIProperty.idl
nsIPropertyBag2.idl
nsIPropertyBag.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsISerializable.idl
nsISimpleEnumerator.idl
nsIStringEnumerator.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsISupportsIterators.idl
nsISupportsPrimitives.idl
nsIVariant.idl
nsIWindowsRegKey.idl
nsIWritablePropertyBag2.idl
nsIWritablePropertyBag.idl
nsMathUtils.h
nsObserverList.cpp
nsObserverList.h
nsObserverService.cpp Bug 1780788 - Use abstract strings as in-arguments for ipdl. r=nika,necko-reviewers,media-playback-reviewers,alwu,dragana 2022-07-25 20:19:48 +00:00
nsObserverService.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsPersistentProperties.cpp Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
nsPersistentProperties.h Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
nsPointerHashKeys.h
nsProperties.cpp
nsProperties.h
nsQuickSort.cpp
nsQuickSort.h
nsRefCountedHashtable.h
nsRefPtrHashtable.h
nsSimpleEnumerator.cpp
nsSimpleEnumerator.h
nsStaticAtomUtils.h
nsStaticNameTable.cpp
nsStaticNameTable.h
nsStringEnumerator.cpp
nsStringEnumerator.h
nsSupportsPrimitives.cpp Bug 1792574, part 3 - Don't include nsMemory where it isn't needed. r=xpcom-reviewers,necko-reviewers,valentin,nika 2022-09-28 15:17:46 +00:00
nsSupportsPrimitives.h
nsTArray-inl.h Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8 2022-04-01 17:00:25 +00:00
nsTArray.cpp
nsTArray.h Bug 1800496 - Re-introduce ArrayView; r=asuth 2022-11-18 10:02:28 +00:00
nsTArrayForwardDeclare.h
nsTHashMap.h
nsTHashSet.h
nsTHashtable.h
nsTObserverArray.cpp
nsTObserverArray.h Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8 2022-04-01 17:00:25 +00:00
nsTPriorityQueue.h
nsVariant.cpp Bug 1660405 - Move away from mozilla::IsNaN in favor of std::isnan. r=nbp,media-playback-reviewers,sergesanspaille,padenot 2023-03-22 11:35:33 +00:00
nsVariant.h
nsWhitespaceTokenizer.h
nsWindowsRegKey.cpp Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsWindowsRegKey.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
Observer.h
PerfectHash.h
PLDHashTable.cpp
PLDHashTable.h Bug 1791961 - xpcom: Fix C++20 -Wambiguous-reversed-operator warnings. r=emilio 2023-05-26 04:51:44 +00:00
SimpleEnumerator.h
StaticAtoms.py Backed out 3 changesets (bug 675943) for causing wpt unexpected passes. 2023-05-24 14:43:06 +03:00
StickyTimeDuration.h Bug 1660405 - Move away from mozilla::IsInfinite in favor of std::isinf. r=nbp,media-playback-reviewers,alwu 2023-03-22 11:35:34 +00:00
Tokenizer.cpp
Tokenizer.h