3 ms·
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 w
by revelation 11y ago
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/opencv.hpp 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.)