资 源 简 介
Tool for detecting unused #included files in C and C++ code.
This project belongs to FuDePAN.
ABSOLUTELY EXPERIMENTAL. Please report errors in the issue tracker.
Usage:
run
uninclude file.cpp [gcc options]
or
uninclude file.c [gcc options]
If you want to run uninclude on a .h file, add the -x c++ (or -x c) option to tell gcc its languange.
Note: uninclude follows the principle that every .h should be "stand-alone", in terms that it should include everything it needs releasing the includer to know what dependencies the former has. Therefore, the program will not suggest to remove includes that would turn the includer not compilable, and will also warn when there is already a .h that is not stand-alone.