Bug 211821

Summary: [IWYU] Try removing redundant includes in WTF implementation files
Product: WebKit Reporter: Ross Kirsling <ross.kirsling>
Component: New BugsAssignee: Ross Kirsling <ross.kirsling>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, darin, don.olmstead, eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, simon.fraser, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Ross Kirsling 2020-05-12 17:47:22 PDT
[IWYU] Try removing redundant includes in WTF implementation files
Comment 1 Ross Kirsling 2020-05-12 17:47:49 PDT Comment hidden (obsolete)
Comment 2 Ross Kirsling 2020-05-12 17:55:02 PDT
An initial experiment to see whether/how include-what-you-use could be of benefit to us.

Procedure:
- build non-unified JSCOnly on Mac
- run `iwyu_tool.py ../../Source/WTF/wtf/ -p .` from build dir
- manually examine recommended removals

There are a slew of unfortunate things here...
- for additions, they don't seem to like indirect dependencies, which seems to be in opposition to WK style
- for removals, they want "config.h" removed from every file
- I'm not sure if there's a way to prune includes from *headers*, which would be way more useful

...but there are still a lot of removals here so it's pretty neat if you have the patience?
Comment 3 Ross Kirsling 2020-05-12 17:58:39 PDT Comment hidden (obsolete)
Comment 4 Ross Kirsling 2020-05-12 18:07:45 PDT Comment hidden (obsolete)
Comment 5 Ross Kirsling 2020-05-12 18:20:20 PDT Comment hidden (obsolete)
Comment 6 Ross Kirsling 2020-05-12 18:39:26 PDT Comment hidden (obsolete)
Comment 7 Ross Kirsling 2020-05-12 18:56:47 PDT
Created attachment 399224 [details]
Patch
Comment 8 EWS 2020-05-13 15:33:26 PDT
Committed r261661: <https://trac.webkit.org/changeset/261661>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 399224 [details].
Comment 9 Radar WebKit Bug Importer 2020-05-13 15:34:18 PDT
<rdar://problem/63203335>