Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6dc6bb7a2e0f82169c3df3bfb8da63d98a030436
https://github.com/WebKit/WebKit/commit/6dc6bb7a2e0f82169c3df3bfb8da63d98a030436
Author: Adrian Taylor <[email protected]>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M Source/WebKit/Modules/Internal/WebKitInternalCxx.h
M Source/WebKit/Scripts/webkit/messages.py
M Source/WebKit/Scripts/webkit/tests/TestWithSwiftMessages.h
M Source/WebKit/Shared/IPCTesterReceiverSwift.swift
R Source/WebKit/Shared/IPCTesterReceiverSwiftTypes.h
M Source/WebKit/Shared/WebKit-Swift.h
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
Log Message:
-----------
Autogenerate completion handler types
https://bugs.webkit.org/show_bug.cgi?id=304244
rdar://166610257
Reviewed by Richard Robinson.
This is a slight cleanup with no functional changes. Swift can't refer to
templated C++ types, so IPC message completion handlers require a 'using'
statement. It turns out we can easily autogenerate them, which eliminates the
need for humans to write those 'using' statements, and in the case of our IPC
message tester enables us to get rid of an entire header file.
* Source/WebKit/Modules/Internal/WebKitInternalCxx.h:
* Source/WebKit/Scripts/webkit/messages.py:
(message_to_completion_handler_using_declaration):
(generate_messages_header):
* Source/WebKit/Scripts/webkit/tests/TestWithSwiftMessages.h:
* Source/WebKit/Shared/IPCTesterReceiverSwiftTypes.h: Removed.
* Source/WebKit/Shared/WebKit-Swift.h:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
Canonical link: https://commits.webkit.org/304578@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications