[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
+1
View File
@@ -71,6 +71,7 @@ EXTRA_DIST = \
extras/console-qr/console-qr.sh \
extras/sanitizer/asan-build.sh \
extras/sanitizer/ubsan-build.sh \
extras/clang/scan-build.sh \
fwknop.spec \
iphone/main.m \
iphone/Fwknop.xcodeproj \
+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