Skip to content

Commit

Permalink
[extras] add scan-build wrapper for the CLANG static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrash committed Jan 13, 2016
1 parent 2451050 commit 8bb46f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -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 \
Expand Down
11 changes: 11 additions & 0 deletions extras/clang/scan-build.sh
@@ -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

0 comments on commit 8bb46f9

Please sign in to comment.