Bug 232548

Summary: IDL compiler fails to compile an IDL which only contains typedefs
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: NEW ---    
Severity: Normal CC: cdumez, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 232558    
Attachments:
Description Flags
Patch none

Description Myles C. Maxfield 2021-10-31 13:44:49 PDT
IDL compiler fails to compile an IDL which only contains typedefs
Comment 1 Myles C. Maxfield 2021-10-31 13:45:48 PDT
Created attachment 442939 [details]
Patch
Comment 2 Myles C. Maxfield 2021-11-01 00:56:00 PDT
Cannot have a central place for a bunch of typedefs ... or even put each typedef in its own file, which means typedefs have to be duplicated at their use site.
Comment 3 Radar WebKit Bug Importer 2021-11-07 12:45:19 PST
<rdar://problem/85127751>
Comment 4 Sam Weinig 2022-03-02 17:06:54 PST
To do this, we would need to do the following:

- Change typedef application to be after parsing.
- Change the preprocess step to build the typedef map, and then use that post parsing.
Comment 5 Sam Weinig 2022-03-03 10:24:58 PST
As this has long been a problem and there is an easy solution we do everywhere in the code base of duplicating typedefs, I am not sure you should consider this a blocker.