With the recent changes to separate clang from the core structures
of LLDB, many inclusions of clang headers can be removed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
It would be great if there were an automated tool that could detect when any #include wasn't needed for both headers and implementation files.
Comment Actions
Possibly we can try to run IWYU (https://github.com/include-what-you-use/include-what-you-use). I haven't tried it but it sounds like a tool what is suitable for the task.
Comment Actions
I downloaded a build of IWYU over the weekend, but haven't had the time to look at using it yet!
I did find a couple of places where we can alter the included headers though (patch coming this week) to include less and IWYU wouldn't catch those, so I'll still do some manual inspection to remove clang stuff on top of using IWYU. :)