Check if all includes are necessary. Some can be moved from the cpp to the header file, some may even be removed completely.
Marco created a list of candidates of unnecessary header includes of MITK core, which I'll add as attachment to this bug.
franza | |
Jul 4 2012, 3:48 PM |
F856: 20120620_mitk-includes_vonMarco.txt | |
Jul 4 2012, 3:49 PM |
Check if all includes are necessary. Some can be moved from the cpp to the header file, some may even be removed completely.
Marco created a list of candidates of unnecessary header includes of MITK core, which I'll add as attachment to this bug.
Maybe the list is a bit out of date. But cleaning up the includes still might help to improve the build time.
I'll start working on this periodically as filler when I have no task towards the end of bugsquashing
To Facialiate work on this, I moved the List to google docs. Anyone can participate! Yay!
Also I request a core flag pre-emptively as only headers will be touched and I would like to steadly merge the changes back into mitk.
I think the availability of useful tools is better than it was at the time we "started" working on this:
http://include-what-you-use.org/
I have some experience with clang based tools, Caspar as well, so maybe we should look at it together.
And there is also something integrated in Eclipse CDT, forgot the name, but easy to find.
CMake 3.3 will support running IWYU along side with the usual compiler for Makefile and Ninja generators:
Hi there! 🙂
This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. 🚑
Best wishes,
The MITK devs