Hi,
I am looking for a tool that will display the hierarchy of include
files for a C(++) source. For example for the following files
a.c:
#include "b.h"
#include "c.h"
b.h:
#include "d.h"
c.h:
#include "b.h"
the output would look similar to
a.c
#include "b.h"
#include "d.h"
#include "c.h"
#include "b.h"
#include "d.h"
I guess this should be doable by analysing the result of the
preprocessor run during compilation, e.g. when compiling with
'gcc -save-temps'.
Does anybody know if such a tool exists, and if so, where I can find
it? I would like to run it in RedHat Linux 7.1, compiler is gcc-3.0.
Thanks
Ulrich
PS: Probably someone will reply along the lines of "But this is
already included with RH Linux!", and make me look stupid. But what
the heck ...