mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Clean up and improve the devel/ scripts.
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Run through the clang static analyzer
|
||||
# Run through the clang static analyzer.
|
||||
#
|
||||
TARGET=$(dirname $0)/../darkhttpd.c
|
||||
|
||||
# Adjust to suit:
|
||||
LLVM=$HOME/llvm
|
||||
CHECKER=$LLVM/llvm/tools/clang/tools/scan-build/ccc-analyzer
|
||||
|
||||
env PATH=$LLVM/build/Release/bin:$PATH $CHECKER ../darkhttpd.c
|
||||
|
||||
rm -f a.out
|
||||
$LLVM/llvm/tools/clang/tools/scan-build/scan-build \
|
||||
-analyze-headers \
|
||||
--use-analyzer=$LLVM/install/bin/clang \
|
||||
clang $TARGET
|
||||
|
Reference in New Issue
Block a user