84c67b44d118f5eeca98b96a63ae04980a9e59e1
[darkstat] / dev_analyze.sh
1 #!/bin/sh -x
2 #
3 # Run the clang static analyzer.
4 #
5 TARGET=dev_all.c
6
7 # Adjust to suit:
8 LLVM=$HOME/llvm
9 CHECKER=$LLVM/llvm/tools/clang/tools/scan-build/ccc-analyzer
10 CLANG=$LLVM/install/bin/clang
11
12 $LLVM/llvm/tools/clang/tools/scan-build/scan-build \
13 -analyze-headers \
14 --use-analyzer=$LLVM/install/bin/clang \
15 $CLANG -c $TARGET