Say, I\'d like to have a tool (or script?) taking project (or .h file) and building searchable tree of \"includes\" included into it (of included into of included into and s
Not entirely sure this is what you're after, but you can easily get a list of includes by generating the post-CPP-processed file from the base c file, and grepping out the file/line number comments, e.g., using gcc
gcc -E main.c {usual flags} | grep '#' | cut -d' ' -f3 | sort | uniq
where main.c is your base c file.