Welcome! Log In Create A New Profile

Advanced

Re: Clang scan-build output

Adrian Perez de Castro
November 05, 2009 05:48AM
On Wed, 04 Nov 2009 16:51:50 -0800, Cliff wrote:

> That's a pretty cool tool. Surprising though that some really
> simplistic stuff generated false positives, e.g.:

Clang is going to be a great thing. I am already using the compiler in a
daily basis for building plain-C stuff (e.g. Nginx itself), and both the
compilation speed and the generated code are speedy. There are even some
cases where Clang generates slightly better object code than GCC, see:
http://hdante.blogspot.com/2009/05/benchmark-where-clang-wins-gcc.html

The static analyzer is a nice bonus, but as you mention, it produces some
false positives -- but I prefer a picky tool that prodces some false
positives than a loose one that misses some potential bugs. After all, it is
up to the programmer, who really knows the intention of the code, to decide
which warnings are real bugs :)

Br.

--
Adrian Perez de Castro
Subject Author Posted

Clang scan-build output

Akins, Brian November 04, 2009 06:04PM

Re: Clang scan-build output

Cliff Wells November 04, 2009 07:58PM

Re: Clang scan-build output

张立冰 November 04, 2009 08:32PM

Re: Clang scan-build output

Maxim Dounin November 04, 2009 09:18PM

Re: Clang scan-build output

Adrian Perez de Castro November 05, 2009 05:48AM

Re: Clang scan-build output

Maxim Dounin November 04, 2009 09:14PM

Re: Clang scan-build output

Akins, Brian November 05, 2009 01:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready