On 31/07/2025 19:06, 'Kagami Rosylight' via dev-platform@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

--
You received this message because you are subscribed to the Google Groups 
"dev-platform@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dev-platform+unsubscr...@mozilla.org.
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/60849b36-f873-4581-ad8e-5744b234682d%40mozilla.com.

Attachment: OpenPGP_0x763A5AD66BC5A398_and_old_rev.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to