[webkit-changes] [WebKit/WebKit] ef205e: [WK2] Adjust generate-serializers.py for style and...

Žan Doberšek noreply at github.com
Fri Dec 9 04:10:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ef205efc374d6d88783caed6bea863944ec418fe
      https://github.com/WebKit/WebKit/commit/ef205efc374d6d88783caed6bea863944ec418fe
  Author: Žan Doberšek <zdobersek at igalia.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M Source/WebKit/Scripts/generate-serializers.py
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp

  Log Message:
  -----------
  [WK2] Adjust generate-serializers.py for style and rebaseline its test output
https://bugs.webkit.org/show_bug.cgi?id=248945

Reviewed by Kimmo Kinnunen.

In generate-serializers.py, when forming code for object construction
during output, in case of a parent class that has to be constructed,
append a comma at the end of that parent's construction, if necessary.
This avoids having lines with only one indented comma.

The testing output is also rebaselined, both for this specific change
as well as previous changes that went without a rebaseline.

* Source/WebKit/Scripts/generate-serializers.py:
(construct_type.is):
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp:
(IPC::ArgumentCoder<Namespace::Subnamespace::StructName>::decode):
(IPC::ArgumentCoder<Namespace::OtherClass>::decode):
(IPC::ArgumentCoder<Namespace::ReturnRefClass>::decode):
(IPC::ArgumentCoder<WebCore::InheritsFrom>::decode):
(IPC::ArgumentCoder<WebCore::InheritanceGrandchild>::decode):

Canonical link: https://commits.webkit.org/257618@main




More information about the webkit-changes mailing list