Repository navigation
Commit 87e378e
committed
Fix likely/unlikely attribute placement
https://bugs.webkit.org/show_bug.cgi?id=327728
rdar://190152289
Reviewed by Yusuke Suzuki.
It looks like Clang only processes `[[likely]]` and `[[unlikely]]` attributes if they precede the
brace in an if statement. Fix the places where we used the attribute after the brace and add a style
checker rule to catch this in the future.
* Source/JavaScriptCore/runtime/MarkedVector.h:
* Source/bmalloc/bmalloc/TZoneHeapInlines.h:
* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_likelihood_attribute_placement):
(check_style):
* Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py:
Canonical link: https://commits.webkit.org/323916@main1 parent c13166c commit 87e378e
4 files changed
Lines changed: 69 additions & 3 deletions
File tree
- Source
- JavaScriptCore/runtime
- bmalloc/bmalloc
- Tools/Scripts/webkitpy/style/checkers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3957 | 3957 | | |
3958 | 3958 | | |
3959 | 3959 | | |
| 3960 | + | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
3960 | 3988 | | |
3961 | 3989 | | |
3962 | 3990 | | |
| |||
4842 | 4870 | | |
4843 | 4871 | | |
4844 | 4872 | | |
| 4873 | + | |
4845 | 4874 | | |
4846 | 4875 | | |
4847 | 4876 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6327 | 6327 | | |
6328 | 6328 | | |
6329 | 6329 | | |
| 6330 | + | |
| 6331 | + | |
| 6332 | + | |
| 6333 | + | |
| 6334 | + | |
| 6335 | + | |
| 6336 | + | |
| 6337 | + | |
| 6338 | + | |
| 6339 | + | |
| 6340 | + | |
| 6341 | + | |
| 6342 | + | |
| 6343 | + | |
| 6344 | + | |
| 6345 | + | |
| 6346 | + | |
| 6347 | + | |
| 6348 | + | |
| 6349 | + | |
| 6350 | + | |
| 6351 | + | |
| 6352 | + | |
| 6353 | + | |
| 6354 | + | |
| 6355 | + | |
| 6356 | + | |
| 6357 | + | |
| 6358 | + | |
| 6359 | + | |
| 6360 | + | |
| 6361 | + | |
| 6362 | + | |
| 6363 | + | |
| 6364 | + | |
| 6365 | + | |
| 6366 | + | |
6330 | 6367 | | |
6331 | 6368 | | |
6332 | 6369 | | |
| |||
0 commit comments