File: cppclean.sh

package info (click to toggle)
kdb 3.2.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,276 kB
  • sloc: cpp: 38,360; yacc: 940; python: 779; sh: 711; ansic: 440; lex: 367; xml: 182; sql: 51; makefile: 10
file content (11 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# cppclean attempts to find problems in C++ source that slow development

srcdir=$1
builddir=$2

cppclean --verbose $srcdir \
    --exclude *.moc \
    $(for i in $(find $srcdir -type d | egrep -v "(\.git|generated)") ; do echo -e "-I $i " ; done) \
    $(for i in $(find $builddir -type d | egrep -v "(CMakeFiles|Testing)") ; do echo -e "-I $i " ; done)