clang static analyzer

From the main page:

The analyzer is 100% open source and is part of the Clang project. Like the rest of Clang, the analyzer is implemented as a C++ library that can be used by other tools and applications.

Emphasis mine

Download the Clang project and the analyzer will be included.


The easiest way to install is to get HomeBrew installed (https://brew.sh if needed), and then have it grab llvm :

brew install llvm