For developers: script to run through clang static analyzer.
authorEmil Mikulic <emikulic@gmail.com>
Sat, 15 Jan 2011 09:56:30 +0000 (20:56 +1100)
committerEmil Mikulic <emikulic@gmail.com>
Sun, 28 Apr 2013 10:37:08 +0000 (20:37 +1000)
devel/checker [new file with mode: 0755]

diff --git a/devel/checker b/devel/checker
new file mode 100755 (executable)
index 0000000..76adc6e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Run through the clang static analyzer
+#
+
+# 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