Very simple include analyzer.
- Reads all
.h
/.cpp
files from given directories - Looks for
#include xxx
directives - Builds an include tree
- Analyzes the tree
- Prints to stdout in LibreOffice-friendly way (simply copy-paste into Calc)
- Size in bytes / lines / lines of code
- List of includees, sorted in most-included order
- Total direct/indirect inclusions
- Contribution to compilation, both self and self + includes
- Ignores preprocessor macros, but repsects comments
- Does not seek out system/missing headers, assumes each to be 1 code line long with no includes
- Fails if there's a recursive dependency
cargo run --release -- input/dir/1/ input/dir/2/ input/dir/3/ > ~/Desktop/report.txt
Then copy contents of report.txt
and paste into LibreOffice Calc.