[webkit-changes] [WebKit/WebKit] d51d63: Use std::remove_cvref where possible
Žan Doberšek
noreply at github.com
Sun Nov 6 10:04:57 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d51d63b0938d48756a22d42c0b80f7d0c0ad12b6
https://github.com/WebKit/WebKit/commit/d51d63b0938d48756a22d42c0b80f7d0c0ad12b6
Author: Žan Doberšek <zan at falconsigh.net>
Date: 2022-11-06 (Sun, 06 Nov 2022)
Changed paths:
M Source/WTF/wtf/CrossThreadCopier.h
M Source/WTF/wtf/StdLibExtras.h
M Source/WTF/wtf/Vector.h
M Source/WebCore/bindings/js/JSDOMConvertUnion.h
M Source/WebCore/platform/SharedBuffer.h
M Source/WebCore/platform/graphics/displaylists/DisplayListItemBuffer.cpp
M Source/WebKit/Platform/IPC/DaemonDecoder.h
M Source/WebKit/Platform/IPC/DaemonEncoder.h
M Source/WebKit/Platform/IPC/Decoder.h
M Source/WebKit/Platform/IPC/Encoder.h
M Source/WebKit/Platform/IPC/HandleMessage.h
M Source/WebKit/Platform/IPC/StreamConnectionEncoder.h
M Source/WebKit/Scripts/generate-serializers.py
M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp
Log Message:
-----------
Use std::remove_cvref where possible
https://bugs.webkit.org/show_bug.cgi?id=247542
Reviewed by Fujii Hironori.
C++20 introduces the std::remove_cvref type alias which can be used in place of
combinations of std::remove_reference and std::remove_const or std::remove_cv.
Older versions of GCC's standard library are covered by an already-existing
fallback. WTF::RemoveCVAndReference is basically the same thing and can be
replaced completely.
* Source/WTF/wtf/CrossThreadCopier.h:
(WTF::crossThreadCopy):
* Source/WTF/wtf/StdLibExtras.h:
* Source/WTF/wtf/Vector.h:
(WTF::Malloc>::appendSlowCase):
(WTF::Malloc>::insert):
* Source/WebCore/bindings/js/JSDOMConvertUnion.h:
* Source/WebCore/platform/SharedBuffer.h:
(WebCore::SharedBuffer::create):
* Source/WebCore/platform/graphics/displaylists/DisplayListItemBuffer.cpp:
(WebCore::DisplayList::safeCopy):
* Source/WebKit/Platform/IPC/DaemonDecoder.h:
(WebKit::Daemon::Decoder::decode):
* Source/WebKit/Platform/IPC/DaemonEncoder.h:
(WebKit::Daemon::Encoder::operator<<):
* Source/WebKit/Platform/IPC/Decoder.h:
(IPC::Decoder::decode):
* Source/WebKit/Platform/IPC/Encoder.h:
* Source/WebKit/Platform/IPC/HandleMessage.h:
* Source/WebKit/Platform/IPC/StreamConnectionEncoder.h:
* Source/WebKit/Scripts/generate-serializers.py:
(check_type_members):
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp:
(IPC::ArgumentCoder<Namespace::Subnamespace::StructName>::encode):
(IPC::ArgumentCoder<Namespace::OtherClass>::encode):
(IPC::ArgumentCoder<Namespace::ReturnRefClass>::encode):
(IPC::ArgumentCoder<Namespace::EmptyConstructorStruct>::encode):
(IPC::ArgumentCoder<Namespace::EmptyConstructorNullable>::encode):
(IPC::ArgumentCoder<WithoutNamespace>::encode):
(IPC::ArgumentCoder<WithoutNamespaceWithAttributes>::encode):
(IPC::ArgumentCoder<WebCore::InheritsFrom>::encode):
(IPC::ArgumentCoder<WebCore::InheritanceGrandchild>::encode):
(IPC::ArgumentCoder<WTF::Seconds>::encode):
(IPC::ArgumentCoder<WTF::CreateUsingClass>::encode):
(IPC::ArgumentCoder<WebCore::FloatBoxExtent>::encode):
Canonical link: https://commits.webkit.org/256377@main
More information about the webkit-changes
mailing list