I am looking into a big C project. The header file include are conditioned on a bunch of macro definitions. It's rather tedious to manually go through them.
I am wondering if there's a tool that can resolve all the actually included header files given the macro definitions in compiler options?
Given a .c file and the compiler options, I hope the tool can automatically walk down the include hierarchy and tell me all the actually included header files.
This question was moved from SO. The responses I got from there are:
A tool called coan: http://coan2.sourceforge.net/
with GCC, file : -M -E (without system's file -MM -E), definitions : -dM -E – BLUEPIXY 1 hour ago