Bug 232548 - IDL compiler fails to compile an IDL which only contains typedefs
Summary: IDL compiler fails to compile an IDL which only contains typedefs
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks: 232558
  Show dependency treegraph
 
Reported: 2021-10-31 13:44 PDT by Myles C. Maxfield
Modified: 2022-03-03 10:24 PST (History)
3 users (show)

See Also:


Attachments
Patch (1.40 KB, patch)
2021-10-31 13:45 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.