On Fri, Feb 26, 2016 at 02:19:33PM -0800, Bryan Drewery wrote: > On 2/26/16 2:14 PM, Bryan Drewery wrote: > > Author: bdrewery > > Date: Fri Feb 26 22:14:00 2016 > > New Revision: 296124 > > URL: https://svnweb.freebsd.org/changeset/base/296124 > > > > Log: > > Import bsd.clang-analyze.mk based on NetBSD's version. > > > > This allows 'make analyze' or 'make OBJ.clang-analyzer' to run the > > Clang static analyzer and present results on stdout. > > > > Obtained from: NetBSD (CVS Rev. 1.3) > > Sponsored by: EMC / Isilon Storage Division > > Differential Revision: https://reviews.freebsd.org/D5449 > > > > I just wanted to call special attention to this one. You may find it > useful to run in something you maintain. scan-build can achieve the > same thing but this one is at least built-in and dependency-free.
The primary limitation is that it only gives the text report and that generally doesn't include the reasoning, i.e. which pre-conditions the analyzer has been taking into account for deriving with a specific warning. That sadly makes it quite a bit less useful. Joerg _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"