Static analysis tools for C and C ++ programs may include checking for unused preprocessor macros.
For example, see PC-Lint .
Another possibility would be to go to specific include files and use #ifdef 0 to delete large sections of macros, and then look at the compiler errors using its separation and rest algorithm.
However, I would expect the static analysis tool to be much better, as the size of the source code will become large.
Richard Chambers
source share