Install deheader by entering the following commands in the terminal:
sudo apt update sudo apt install deheader
Description:
Find and remove unnecessary includes in C or C++ source files
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.
Homepage: http://www.catb.org/~esr/deheader/
Version: 1.6-3
Section: universe/devel