- Go to https://clang-analyzer.llvm.org/
- Grab the
checker-279.tar.bz2file 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
autogenparts, withmake clean, but prefix each call with thescan-buildin 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