-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] remove unused includes. #52579
Conversation
matanlurey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat, gets us closer to IWYU.
You might want to add test: all and push a dummy commit to run the full clangd on pre-sub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these removed because they aren't used or because they are brought in transitively? The former is good, the latter would be a violation of iwyu. The iwyu tool can be used to identify these as well.
|
fml/macros are unused everywhere. For everything else, if clangd highlighted it as unused I removed it, unless I knew it was special like build config.h or other macros
This isn't an attempt to guess what IWYU would do. We can't use IWYU anyway, unless we fix all of our forward declares. |
|
In general though, clangd seems to have some similar logic? If you are including a header to get to a transitive header, it will tell you the first header is unused. Then when you remove it and get an include error, the suggested include is often the non-transitive header |
FWIW I've had success using it locally when splitting up the aiks tests. It may not be easy to setup on ci but for local cleanups it was helpful. |
|
Just a clarification:
|
|
oh TIL! |
…147895) flutter/engine@463ff7d...422f92b 2024-05-06 [email protected] Migrate third_party/android_tools to flutter/third_party (flutter/engine#52582) 2024-05-06 [email protected] Roll Skia from a5c042cb4b12 to 869cacf2a3f1 (1 revision) (flutter/engine#52583) 2024-05-06 [email protected] [Impeller] remove unused includes. (flutter/engine#52579) 2024-05-06 [email protected] Roll Skia from da772ace76ff to a5c042cb4b12 (6 revisions) (flutter/engine#52581) 2024-05-06 [email protected] [Impeller] fix missing GPU probe. (flutter/engine#52580) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
mostly removing unused fml/macros, but a few others that clangd surfaced. This compiled locally,hope it works on CI!