On 31/07/2025 19:06, 'Kagami Rosylight' via
dev-pl...@mozilla.org wrote:
> As of bug 1957934 <
https://bugzilla.mozilla.org/show_bug.cgi?
> id=1957934> (30 April 2025, yes it's late...) we got new autogenerated
> forward declarations headers. From now on if you have an interface or
> dictionary like:
>
> // foo.webidl
> interface Foo {};
> dictionary FooDict {};
>
> Then you get forward declaration for Foo and FooDict in mozilla/dom/
> FooFwd.h.
this is great! I take this opportunity to remind everybody that we have
an `includehell` [1] bug where we gather all bugs about minimizing
unnecessary header inclusions. If you're touching code pulling in lots
of headers consider checking if you can prune some stuff or replace them
with forward declarations, the compilation time benefits are worth it.
Gabriele
[1] [Meta] Fix Gecko's #include dependencies
https://bugzilla.mozilla.org/show_bug.cgi?id=includehell