1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-22 17:02:10 +00:00
serenity/Userland/Libraries/LibLine
Daniel Bertalan 4296425bd8 Everywhere: Remove redundant inequality comparison operators
C++20 can automatically synthesize `operator!=` from `operator==`, so
there is no point in writing such functions by hand if all they do is
call through to `operator==`.

This fixes a compile error with compilers that implement P2468 (Clang
16 currently). This paper restores the C++17 behavior that if both
`T::operator==(U)` and `T::operator!=(U)` exist, `U == T` won't be
rewritten in reverse to call `T::operator==(U)`. Removing `!=` operators
makes the rewriting possible again.
See https://reviews.llvm.org/D134529#3853062
2022-11-06 10:25:08 -07:00
..
CMakeLists.txt Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
Editor.cpp LibLine: Avoid crashing on a 0x0 terminal 2022-11-03 00:01:42 +03:30
Editor.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
InternalFunctions.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
KeyCallbackMachine.cpp LibLine: Correct spelling mistake in variable name 2021-07-21 14:15:24 +02:00
KeyCallbackMachine.h Everywhere: Remove redundant inequality comparison operators 2022-11-06 10:25:08 -07:00
Span.h LibLine: Ignore empty spans when stylizing 2022-07-17 00:51:31 +00:00
StringMetrics.h LibLine: Add support for user-controlled masking 2022-05-25 23:17:15 +01:00
Style.h Libraries: Add missing includes, add namespace qualifiers 2022-09-18 13:27:24 -04:00
SuggestionDisplay.h Libraries: Use default constructors/destructors in LibLine 2022-03-13 22:34:38 +01:00
SuggestionManager.cpp LibLine: Make it possible to avoid autocompletion if requested 2022-04-18 19:53:10 +04:30
SuggestionManager.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
VT.h LibLine: Switch all files to use east-const 2021-12-16 03:26:59 +03:30
XtermSuggestionDisplay.cpp LibLine: Add a display trivia field to suggestions 2022-03-26 21:34:56 +04:30