News for hackers. Stuff that matters.
Re:Include-what-you-use: Clang tool to analyze includes in C... by revelation on Saturday January 23, 2016 @10:43AM (#10958682)
Big libraries like Boost and OpenCV usually have meta-headers for features and components that just include all the other headers for that particular part you want to use.

(e.g. https://github.com/Itseez/opencv/blob/master/include/opencv2...)

A tool like this would see right through that and walk the tree all the way to the final leaf headers that actually implement the parts you use. This not only means one single include will balloon to many smaller ones, but when the library moves things around internally your code will break.

(Unclear if this is what this tool in particular will do, but I've certainly seen this behavior with Clion for example when it recommends what header to include.)

There are no comments on this comment yet.