Summary

Find and optionally remove unneeded includes in C or C++ sourcefiles.

deheader analyzes C and C++ files to determine which header inclusions can be removed while still allowing them to compile. This may result in substantial improvements in compilation time, especially on large C++ projects; it also sometimes exposes dependencies and cohesions of which developers were unaware.

Resources


NEWSproject news
COPYINGproject license
READMEroadmap file
deheader-1.6.tar.gzgzipped source tarball
deheader.htmlHTML rendering of deheader.1

The project repository is at https://gitlab.com/esr/deheader.

Project statistics are available at OpenHub.

If you appreciate this code (and especially if you make money by using it) please support me on Patreon.

Recent Changes

    Fix bug that prevented the -b option from being interpreted.
    Acknowledge Debian bug #839179: keywords in comments not ignored.

Supporters

This work is funded by...

My Bronze supporters on Patreon: Martin Hohenberg, Jae Yang, Daniel Garber, Kyle Burkholder, Mike Nichols, Mark Ping, Tom Taylor, Arnold F. Williams, George Brower, Michael Nygard, Brendan Long, Sven Dowideit, Dave Witten, Jonathan Cast, James Cronin, David L. Jessup, Christopher Chang, Killer Delicious, Jacob Lyles, Neil Anuskiewicz, Mordant, Clemens Ladisch, Wojciech Woytniak, Masa Bando, John Carmack, Xingyu Wang, Jane Tang, Steven Evans, Jan Roudaut, Hsueh Sung, Ken LaCrosse, taishi28012, John Simpson, Jerod Tufte, Paul Abbott, Stan Witherspoon, Donald Greer, Gratiela Chergu, Michael Ciagala, Dale Carstensen, Chip Davis.

My Institutional supporters on Patreon: Jason Azze and the DEVOPS team at his $DAYJOB, Mark Atwood, Christoph Happle.

Become a Patreon patron!