Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ac5c0c047f1b3759a3214a2c71efdedf18003bcb
https://github.com/WebKit/WebKit/commit/ac5c0c047f1b3759a3214a2c71efdedf18003bcb
Author: Sosuke Suzuki <[email protected]>
Date: 2025-06-14 (Sat, 14 Jun 2025)
Changed paths:
M Tools/Scripts/webkitpy/style/checkers/cpp.py
M Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
Log Message:
-----------
[check-webkit-style] Allow `[[likely|unlikely]]` after `else`
https://bugs.webkit.org/show_bug.cgi?id=294505
Reviewed by Chris Dumez.
This patch changes `check-webkit-style` to `[[likely]]` / `[[unlikely]]`
after `else` token. Like...
```cpp
if (condition) {
foo();
bar();
} else [[likely]] {
foo();
bar();
}
````
* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_spacing):
(check_braces):
* Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py:
(CppStyleTest):
Canonical link: https://commits.webkit.org/296238@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes