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)
Reported 2026-01-10 17:51:47 PST
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
Radar WebKit Bug Importer
Comment 1 2026-01-10 17:52:02 PST
David Kilzer (:ddkilzer)
Comment 2 2026-01-11 10:26:32 PST
EWS
Comment 3 2026-01-12 15:08:46 PST
Committed 305483@main (a92bc6cb0dcc): <https://commits.webkit.org/305483@main> Reviewed commits have been landed. Closing PR #56423 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.