Search notes:
gcc -H
gcc -H
prints the names of each header file that is processed.
Each #include
indents one level, finishing a file dedents one level.
$ echo '#include <syscall.h>' | gcc -c -xc - -E -P -H
. /usr/include/syscall.h
.. /usr/include/x86_64-linux-gnu/sys/syscall.h
... /usr/include/x86_64-linux-gnu/asm/unistd.h
.... /usr/include/x86_64-linux-gnu/asm/unistd_64.h
... /usr/include/x86_64-linux-gnu/bits/syscall.h
Multiple include guards may be useful for:
/usr/include/syscall.h
/usr/include/x86_64-linux-gnu/bits/syscall.h