Conversation
|
I guess I'm not really convinced that transitive includes are a bad thing. This just seems like it adds lots of lines of code (e.g. including Error.h everywhere). Definitely worth removing unused includes though. Can we set it up to just detect that? |
At a very general level I disagree; having each file explicitly include what it uses is IMHO a best practice and makes the code more resilient. But I really don't feel strongly about it. I'll leave this sitting open for a while to see if there are other people with strong feelings in any direction.
Eh, maybe, I'll circle back at some point and see. |
|
At this point I don't think this is worth any more thought -- I'm gonna close this out (it can be regenerated with modest effort using #6251 if we want) |
Follow-on PR to #6251 that actually applies IWYU. (Note that #6251 must land before this.)