Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6fd2e21778d8b6d3626132bcb4c5e56063571608
      
https://github.com/WebKit/WebKit/commit/6fd2e21778d8b6d3626132bcb4c5e56063571608
  Author: David Kilzer <[email protected]>
  Date:   2026-01-16 (Fri, 16 Jan 2026)

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

  Log Message:
  -----------
  check-webkit-style: fix false positive for LIFETIME_BOUND followed by braces 
on next line
<https://bugs.webkit.org/show_bug.cgi?id=305299>
<rdar://167953778>

Reviewed by Geoffrey Garen.

The style checker incorrectly flagged functions with LIFETIME_BOUND
attributes followed by opening braces on the next line with "This {
should be at the end of the previous line".

Add LIFETIME_BOUND to the list of function qualifiers that allow braces
on the next line, following the same pattern as const, override, final,
and noexcept.

* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_braces):
* Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py:
(CppStyleTest):

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



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

Reply via email to