Description
Issue №1321 opened by illume at 2019-09-21 14:46:26
The Clang Static Analyzer (http://clang-analyzer.llvm.org/) is a free to use static analyzer that is quite high quality.
The Clang Static Analyzer is a source code analysis tool that finds bugs in C, C++, and Objective-C programs. Currently it can be run either as a standalone tool or within Apple Xcode. The standalone tool is invoked from the command line, and is intended to be run in tandem with a build of a codebase.
On MacOS scan-build and scan-view is included with the brew install llvm
.
$SCANBUILD=`ls /usr/local/Cellar/llvm/*/bin/scan-build`
$SCANBUILD -V python3 setup.py build
This generates a report (at time of writing it finds 110 issues).
Comments
# # robertpfeiffer commented at 2019-10-20 17:07:33
On Ubuntu 18.04, I ran sudo apt-get install clang-tools
and then scan-build python3.6 setup.py bdist_wheel
. It runs, but it doesn't quite work. Could be because the version of clang used by scan_build in Ubuntu 18.04 is 3.5.