Bug 294505
| Summary: | [check-webkit-style] Allow `[[likely|unlikely]]` after `else` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | Tools / Tests | Assignee: | Sosuke Suzuki <sosuke> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
This patch changes `check-webkit-style` to `[[likely]]` / `[[unlikely]]`
after `else` token. Like...
```cpp
if (condition) {
foo();
bar();
} else [[likely]] {
foo();
bar();
}
````
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/46762
EWS
Committed 296238@main (ac5c0c047f1b): <https://commits.webkit.org/296238@main>
Reviewed commits have been landed. Closing PR #46762 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/153428906>