[extras] add scan-build wrapper for the CLANG static analyzer
This commit is contained in:
@@ -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 \
|
||||
|
||||
Executable
+11
@@ -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
|
||||
Reference in New Issue
Block a user