Closed Bug 1840732 Opened 1 year ago Closed 1 year ago

Make IWYU changes to the accessibility module

Categories

(Core :: Disability Access APIs, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: nlapre, Assigned: nlapre)

References

(Blocks 1 open bug)

Details

Attachments

(7 files)

The Include What You Use tool is a useful way to check which includes are unnecessary. Removing them generally improves build times and reduces clutter. I think we should go through the module and remove unnecessary includes, at least the low-hanging fruit. It'll likely be a bit challenging to get IWYU set up in our build environment, but we should be able to hack something together for actionable advice.

This commit removes unnecessary include directives from cpp files in the
accessible/base directory. These suggestions came from the Include What You Use
tool.

Blocks: cleana11y

This revision removes unnecessary include directives from cpp files in the
accessible/basetypes directory. These suggestions came from the Include What You
Use tool.

Depends on D182288

This revision removes unnecessary include directives from cpp files in the
accessible/generic directory. These suggestions came from the Include What You
Use tool.

Depends on D182397

This revision removes unnecessary include directives from cpp files in the
accessible/xpcom directory. These suggestions came from the Include What You
Use tool.

Depends on D182398

This revision removes unnecessary include directives from cpp files in the
accessible/aom directory. These suggestions came from the Include What You Use
tool.

Depends on D182399

This revision removes unnecssary include directives from cpp files in the
accessible/html directory. These suggestions came from the Include What You Use
tool.

Depends on D182400

This revision removes unnecessary include directives from cpp files in the
accessible/ipc directory. These suggestions came from the Include What You Use
tool.

Note that this is probably not everything here. It needs to be checked again
after rebasing on the latest unification changes.

Depends on D182401

Assignee: nobody → nlapre
Attachment #9341413 - Attachment description: WIP: Bug 1840732 Part 1: Remove unnecessary includes from accessible/base → Bug 1840732 Part 1: Remove unnecessary includes from accessible/base, r?eeejay,morgan,Jamie
Status: NEW → ASSIGNED
Attachment #9341614 - Attachment description: WIP: Bug 1840732 Part 2: Remove unnecessary includes from accessible/basetypes → Bug 1840732 Part 2: Remove unnecessary includes from accessible/basetypes, r?eeejay,morgan,Jamie
Attachment #9341615 - Attachment description: WIP: Bug 1840732 Part 3: Remove unnecessary includes from accessible/generic → Bug 1840732 Part 3: Remove unnecessary includes from accessible/generic, r?eeejay,morgan,Jamie
Attachment #9341616 - Attachment description: WIP: Bug 1840732 Part 4: Remove unnecessary includes from accessible/xpcom → Bug 1840732 Part 4: Remove unnecessary includes from accessible/xpcom, r?eeejay,morgan,Jamie
Attachment #9341617 - Attachment description: WIP: Bug 1840732 Part 5: Remove unnecessary include from accessible/aom → Bug 1840732 Part 5: Remove unnecessary include from accessible/aom, r?eeejay,morgan,Jamie
Attachment #9341618 - Attachment description: WIP: Bug 1840732 Part 6: Remove unnecessary include from accessible/html → Bug 1840732 Part 6: Remove unnecessary include from accessible/html, r?eeejay,morgan,Jamie
Attachment #9341619 - Attachment description: WIP: Bug 1840732 Part 7: Remove unnecessary includes from accessible/ipc → Bug 1840732 Part 7: Remove unnecessary includes from accessible/ipc, r?eeejay,morgan,Jamie
Attachment #9341618 - Attachment description: Bug 1840732 Part 6: Remove unnecessary include from accessible/html, r?eeejay,morgan,Jamie → Bug 1840732 Part 6: Remove unnecessary includes from accessible/html, r?eeejay,morgan,Jamie
Attachment #9341618 - Attachment description: Bug 1840732 Part 6: Remove unnecessary includes from accessible/html, r?eeejay,morgan,Jamie → Bug 1840732 Part 6: Remove unnecessary include from accessible/html, r?eeejay,morgan,Jamie
Attachment #9341617 - Attachment description: Bug 1840732 Part 5: Remove unnecessary include from accessible/aom, r?eeejay,morgan,Jamie → Bug 1840732 Part 5: Remove unnecessary includes from accessible/aom, r?eeejay,morgan,Jamie
Attachment #9341618 - Attachment description: Bug 1840732 Part 6: Remove unnecessary include from accessible/html, r?eeejay,morgan,Jamie → Bug 1840732 Part 6: Remove unnecessary includes from accessible/html, r?eeejay,morgan,Jamie

Adding some see-also bugs of interest

See Also: → 1682477, iwyu
Pushed by nlapre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd29498c8b43 Part 1: Remove unnecessary includes from accessible/base, r=Jamie https://hg.mozilla.org/integration/autoland/rev/74b0ddd87bf9 Part 2: Remove unnecessary includes from accessible/basetypes, r=Jamie https://hg.mozilla.org/integration/autoland/rev/873ffb7ad802 Part 3: Remove unnecessary includes from accessible/generic, r=Jamie https://hg.mozilla.org/integration/autoland/rev/60b2b5543d30 Part 4: Remove unnecessary includes from accessible/xpcom, r=Jamie https://hg.mozilla.org/integration/autoland/rev/3e3d1d7be415 Part 5: Remove unnecessary includes from accessible/aom, r=Jamie https://hg.mozilla.org/integration/autoland/rev/ff7bf50fe57b Part 6: Remove unnecessary includes from accessible/html, r=Jamie https://hg.mozilla.org/integration/autoland/rev/7f0f8b547e2a Part 7: Remove unnecessary includes from accessible/ipc, r=Jamie

This is a good effort but we should be very careful with this not removing direct includes that consist definition used in the translation units. We should rely on other headers that includes the headers that have definitions for used things in the TU.

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

Attachment

General

Creator:
Created:
Updated:
Size: