Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d8e73be4ec47beeb4bb79b1af111f2953c38149f
      
https://github.com/WebKit/WebKit/commit/d8e73be4ec47beeb4bb79b1af111f2953c38149f
  Author: Ryosuke Niwa <[email protected]>
  Date:   2025-10-22 (Wed, 22 Oct 2025)

  Changed paths:
    M Tools/Scripts/update-safer-cpp-expectations

  Log Message:
  -----------
  Add platform support to update-safer-cpp-expectations
https://bugs.webkit.org/show_bug.cgi?id=301265

Reviewed by Chris Dumez.

Added the support for platform modifier in update-safer-cpp-expectations.

The script now supports --platform option to specify the platform for which
safer C++ expectations need to be updated. When the platform is omitted,
the addition or removal happens for both platforms (Mac and iOS).

When there is a Mac expectation, removal of the same file for iOS does not
have any effect (results in a warning emitted to stdout).

In addition, this PR adds a support for preserving comments in safer C++
expectation files. Each comment is assumed to belong to the file beneath it
for sorting purposes.

For now, all these changes are made for updating individual checker by
enumerating file names, not when -r / --unexpected-results-file is used.

* Tools/Scripts/update-safer-cpp-expectations:
(parser):
(update_expectations_from_file):
(modify_expectations_for_checker):
(update_expectations):
(main):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to