[extras] add scan-build wrapper for the CLANG static analyzer

This commit is contained in:
Michael Rash
2016-01-12 21:42:42 -05:00
parent 2451050a4c
commit 8bb46f9664
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
if [ -x ./configure ]; then
make clean
scan-build ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/run $@
script -c 'scan-build make'
else
echo "[*] Execute from the fwknop top level sources directory"
fi
exit 0