gecko-dev/xpcom/reflect/xptinfo
Mike Hommey b006fe6c37 Bug 1711627 - Avoid xptdata.h being (indirectly) included so much. r=xpcom-reviewers,nika
cf. bug 1710755, touching idl files regenerates xptdata.cpp and
xptdata.h, and the latter currently triggers tons of things to be
rebuilt because xptdata.h is included from xptinfo.h, which is directly
or indirectly included in many other places.

But there's only one thing defined in xptdata.h: nsXPTInterface, and
there's actually only one place that actively uses it:
StaticComponents.cpp.in, via a function defined in xptinfo.h.

Using a forward declaration in xptinfo.h allows to only include
xptdata.h from StaticComponents.cpp.in.

While here, add an include guard to xptdata.h.

Differential Revision: https://phabricator.services.mozilla.com/D115329
2021-05-19 20:41:39 +00:00
..
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
xptcodegen.py Bug 1711627 - Avoid xptdata.h being (indirectly) included so much. r=xpcom-reviewers,nika 2021-05-19 20:41:39 +00:00
xptinfo.cpp
xptinfo.h Bug 1711627 - Avoid xptdata.h being (indirectly) included so much. r=xpcom-reviewers,nika 2021-05-19 20:41:39 +00:00