On 2022/01/14 16:52, Rafael Sadowski wrote:
> On Fri Jan 14, 2022 at 03:17:21PM +0100, Tobias Heider wrote:
> > Hi,
> > 
> > clang ships with a pretty useful static analyzer to find all kinds of bugs
> > in C and C++ code:
> > 
> > https://clang-analyzer.llvm.org/
> > 
> > I use it regularly to check my own diffs and found plenty of bugs I could
> > have missed otherwise.  While we have the code in base we don't actually
> > build it into our libclang currently, so the only ways to use it are
> > manually modifying the Makefiles or installing llvm from ports.
> > 
> > I was wondering if anyone else uses this and if there was any interest to
> > have this in our base clang?
> 
> Please checkout devel/clang-tools-extra, if you missed something let me know.
> CLANG_ENABLE_STATIC_ANALYZER=ON is enabled by default.

No need for clang-tools-extra, it is in the llvm package

Like others I am happy just having the static analyzer / scan-build in
ports. It is useful, but I think not really useful enough to add to the
time taken by llvm in every base build when it's available in ports.

Reply via email to