Bug 305278
| Summary: | Apply LIFETIME_BOUND attribute consistently on both declaration and definition of methods | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> |
| Component: | WebCore Misc. | Assignee: | David Kilzer (:ddkilzer) <ddkilzer> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 304966, 305240, 305244, 305247, 305291, 305300 | ||
| Bug Blocks: | |||
David Kilzer (:ddkilzer)
Apply LIFETIME_BOUND attribute consistently on both declaration and definition of methods.
Due to this bug in clang, the `[[clang::lifetimebound]]` attribute is sometimes ignore if not consistently applied to both the declaration and definition (implementation) of a method:
[[clang::lifetimebound]] is ignored in some cases when declaration and definition do not apply the attribute consistently
<https://github.com/llvm/llvm-project/issues/175391>
This list was found by implementing a `-Wmissing-lifetimebound` warning locally in clang, then fixing all the warnings.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/167920705>
David Kilzer (:ddkilzer)
Pull request: https://github.com/WebKit/WebKit/pull/56423
EWS
Committed 305483@main (a92bc6cb0dcc): <https://commits.webkit.org/305483@main>
Reviewed commits have been landed. Closing PR #56423 and removing active labels.