bin/includes
raw| 1 | #!/bin/bash |
| 2 | if test -z $1; then |
| 3 | echo Use: includes [usual g++ command line] |
| 4 | echo e.g. includes foo.cpp -I /usr/src/Blitz++ |
| 5 | echo This shows bytes included from all header files. |
| 6 | exit 1 |
| 7 | fi |
| 8 | |
| 9 | wc -c `g++ -E -c $* | grep "^#" | grep -v pragma | awk '{ print $3 }' | sort | uniq | tr -s "\"" " "` | sort -nr | more |
| 10 |