Update scan-build call.
[darkstat] / dev_analyze.sh
1 #!/bin/bash -x
2 #
3 # Run the clang static analyzer.
4 #
5 time $HOME/llvm/install/bin/scan-build \
6 -analyze-headers \
7 \
8 -enable-checker alpha.core.BoolAssignment \
9 -enable-checker alpha.core.CallAndMessageUnInitRefArg \
10 -enable-checker alpha.core.CastSize \
11 -enable-checker alpha.core.CastToStruct \
12 -enable-checker alpha.core.DynamicTypeChecker \
13 -enable-checker alpha.core.FixedAddr \
14 -enable-checker alpha.core.IdenticalExpr \
15 -enable-checker alpha.core.PointerArithm \
16 -enable-checker alpha.core.PointerSub \
17 -enable-checker alpha.core.SizeofPtr \
18 -enable-checker alpha.core.TestAfterDivZero \
19 -enable-checker alpha.cplusplus.VirtualCall \
20 -enable-checker alpha.deadcode.UnreachableCode \
21 -enable-checker alpha.security.ArrayBound \
22 -enable-checker alpha.security.ArrayBoundV2 \
23 -enable-checker alpha.security.MallocOverflow \
24 -enable-checker alpha.security.ReturnPtrRange \
25 -enable-checker alpha.security.taint.TaintPropagation \
26 -enable-checker alpha.unix.Chroot \
27 -enable-checker alpha.unix.PthreadLock \
28 -enable-checker alpha.unix.SimpleStream \
29 -enable-checker alpha.unix.Stream \
30 -enable-checker alpha.unix.cstring.BufferOverlap \
31 -enable-checker alpha.unix.cstring.NotNullTerminated \
32 -enable-checker alpha.unix.cstring.OutOfBounds \
33 -enable-checker llvm.Conventions \
34 -enable-checker nullability.NullableDereferenced \
35 -enable-checker nullability.NullablePassedToNonnull \
36 -enable-checker nullability.NullablePassedToNonnull \
37 -enable-checker optin.performance.Padding \
38 -enable-checker security.FloatLoopCounter \
39 -enable-checker security.insecureAPI.rand \
40 -enable-checker security.insecureAPI.strcpy \
41 \
42 '$CC -c dev_all.c'