From #include <rules>, via hacker news, two compile time options to consider:
- use the preprocessor output (cl /E, gcc -E)
- use the include output (cl /showIncludes, gcc -M), gather the codebase statistics (average size after preprocessing, most included header files, header files with largest payload, etc.)
I've been doing this backwards, but I don't understand why though:
The header file named after the source should be included first (to catch errors in the header)