Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 78207cb5dcf7665cf25d51e1d7c18d0b0346f1d7
      
https://github.com/WebKit/WebKit/commit/78207cb5dcf7665cf25d51e1d7c18d0b0346f1d7
  Author: Richard Robinson <[email protected]>
  Date:   2026-08-17 (Mon, 17 Aug 2026)

  Changed paths:
    M Tools/Scripts/webkitpy/style/checkers/cpp.py
    M Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py

  Log Message:
  -----------
  Add a style checker rule to enforce better API header hygiene
https://bugs.webkit.org/show_bug.cgi?id=321909
rdar://185083115

Reviewed by Abrar Rahman Protyasha.

Add two rules:

1. Do not use `WK_SWIFT_UI_ACTOR` instead of the normal `NS_SWIFT_UI_ACTOR` 
(and likewise for the other macros)
2. Use the NS_HEADER_AUDIT_BEGIN/NS_HEADER_AUDIT_END macros instead of the old 
NS_ASSUME_NONNULL_BEGIN/NS_ASSUME_NONNULL_END ones

* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_objc_annotation_macros):
(process_line):
(CppChecker):
* Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py:
(WebKitStyleTest):

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



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

Reply via email to