File | Mode | Size |
---|---|---|
IncTree.cpp | 100644 | 2,943B |
IncTree.hpp | 100644 | 2,113B |
Makefile | 100644 | 529B |
README.md | 100644 | 1,456B |
TODO.md | 100644 | 289B |
inc-tree.cpp | 100644 | 3,636B |
tree.hpp | 100644 | 86KiB |
version.map | 100644 | 104B |
inc-tree, 0.1, 2015
The purpose of this plugin is to display tree of includes per compilation unit. With its help one can answer from which place some particular include comes from.
Turns out there is already -H
option for that.
Tested with GCC 4.9.3, should work with 4.9 and maybe with newer versions.
make
Invocation:
g++ -std=c++11 -fplugin=./inc-tree.so test.c
Output:
test.c
/usr/include/stdc-predef.h
/usr/include/stdio.h
/usr/include/features.h
/usr/include/sys/cdefs.h
/usr/include/bits/wordsize.h
/usr/include/gnu/stubs.h
/usr/include/gnu/stubs-64.h
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/include/stddef.h
/usr/include/bits/types.h
/usr/include/bits/wordsize.h
/usr/include/bits/typesizes.h
/usr/include/libio.h
/usr/include/_G_config.h
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/include/stddef.h
/usr/include/wchar.h
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/include/stdarg.h
/usr/include/bits/stdio_lim.h
/usr/include/bits/sys_errlist.h
GNU General Public License, version 3 or later