darkhttpd/devel/checker
2013-04-28 21:16:40 +10:00

15 lines
321 B
Bash
Executable File

#!/bin/sh
#
# 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
$LLVM/llvm/tools/clang/tools/scan-build/scan-build \
-analyze-headers \
--use-analyzer=$LLVM/install/bin/clang \
clang $TARGET