Use all+only the default checkers in scan-build script

This commit is contained in:
Nick Mathewson 2017-09-12 17:43:40 -04:00
parent 3092c8bb3e
commit 4097d646d8

21
scripts/test/scan-build.sh Normal file → Executable file
View File

@ -5,6 +5,18 @@
# This script is used for running a bunch of clang scan-build checkers # This script is used for running a bunch of clang scan-build checkers
# on Tor. # on Tor.
CHECKERS=""
scan-build \
$CHECKERS \
./configure
make clean
scan-build \
$CHECKERS \
make -j5 -k
CHECKERS="\ CHECKERS="\
-disable-checker deadcode.DeadStores \ -disable-checker deadcode.DeadStores \
-enable-checker alpha.core.CastSize \ -enable-checker alpha.core.CastSize \
@ -25,15 +37,6 @@ CHECKERS="\
-enable-checker alpha.core.TestAfterDivZero \ -enable-checker alpha.core.TestAfterDivZero \
" "
scan-build \
$CHECKERS \
./configure
scan-build \
$CHECKERS \
make -j2 -k
# This one gives a false positive on every strcmp. # This one gives a false positive on every strcmp.
# -enable-checker alpha.core.PointerSub # -enable-checker alpha.core.PointerSub