Page MenuHomePhabricator

Clean up includes of MITK core
Closed, WontfixPublic

Description

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.

Event Timeline

franza added a subscriber: franza.

List of candidates with unnecessary header includes

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.

User maerz has pushed new remote branch:

bug-12407-CleanupIncludesOfMITKCore

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:

http://www.cmake.org/cmake/help/v3.3/prop_tgt/LANG_INCLUDE_WHAT_YOU_USE.html#prop_tgt:%3CLANG%3E_INCLUDE_WHAT_YOU_USE

stopped working on this, as other automatic approaches are more favorable.

kislinsk added a project: Auto-closed.
kislinsk added a subscriber: kislinsk.

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