Bug 295294

Summary: [WTF] Provide a type hint to debuggers for opaque bitfield values where supported
Product: WebKit Reporter: Sam Weinig <sam>
Component: Web Template FrameworkAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: Unspecified   
OS: Unspecified   

Sam Weinig
Reported 2025-07-01 11:34:52 PDT
Newer versions of clang support an attribute called "preferred_type" which provides a hint to debuggers about what type is stored in opaqued bitfields: https://clang.llvm.org/docs/AttributeReference.html#preferred-type. We should add a macro for this and use it where useful.
Attachments
Sam Weinig
Comment 1 2025-07-01 12:00:49 PDT
EWS
Comment 2 2025-07-04 09:48:09 PDT
Committed 297027@main (99b626befab8): <https://commits.webkit.org/297027@main> Reviewed commits have been landed. Closing PR #47453 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-07-04 09:49:13 PDT
Note You need to log in before you can comment on or make changes to this bug.