Open Bug 1677487 Opened 4 years ago Updated 2 years ago

Reduce the set of includes generated for all protocols

Categories

(Core :: IPC, task)

task

Tracking

()

People

(Reporter: sg, Unassigned)

References

(Blocks 1 open bug)

Details

HeaderIncludes in ipc/ipdl/ipdl/builtin.py lists a number of headers that are not needed by all protocols yet included in all of them, e.g. ByteBuf.h, FileDescriptor.h, MozPromise.h and Shmem.h. This should be checked and reduced to the set of necessary headers.

The type checking in type.py could probably be augmented to gather a set of the built in types that are actually used, and then that set could be used to guide which headers are added as includes in lower.py. You'd probably have to change HeaderIncludes to be a map from types to header files or something.

You need to log in before you can comment on or make changes to this bug.