- Go to https://clang-analyzer.llvm.org/
- Grab the
checker-279.tar.bz2
file from the link underMac OS X
- Untar this file somewhere, e.g.
~/workspace/checker-279
- Go to e.g.
~/workspace/myproject
- Compile it from scratch, including
autogen
parts, withmake clean
, but prefix each call with thescan-build
in the path above. E.g.
$ ~/workspace/checker-279/bin/scan-build ./autogen.sh
$ ~/workspace/checker-279/bin/scan-build ./configure --enable-debug
$ ~/workspace/checker-279/bin/scan-build make clean
$ ~/workspace/checker-279/bin/scan-build make -j5