Running c++-analyzer on svn r159506 llvm-clang

Hi,

Just for fun, I decided to run the svn r159506 llvm/clang/c++-analyzer
on svn r159506 llvm-clang. I just thought that it might be interesting
to run the analyzer on the llvm-clang codebase itself. I guess that
most people on this list will probably have at least some knowledge of
the llvm codebase, and be able to determine any false positives
relatively easily ?. And for the truly interested, maybe they can post
'false positives' against the Clang Static Analyzer component in the
llvm-clang bug tracker: http://llvm.org/bugs/

Anyway, the full report is located here:
http://lbalbalba.x90x.net/clang-analyzer/llvm-clang/

Regards,

John Smith

John,

Thanks for making the results of the analyzer available.

Ted has recently added IPA support for C++, so the number of bugs reported increased dramatically. In some cases our diagnostic clarity is still lagging behind for C++ bugs that span multiple functions (it's WIP).

Cheers,
Anna.

Thanks for making the results of the analyzer available.

No problem. Im still just thinking about how I could assist in
improving both the compiler and the src analyzer. Running the analyzer
on the compiler seemed to be a sensible approach, as people here will
probably know (at least a little) about the both of them, which may
increase the small likelyhood that they either fix the compiler or the
analyzer.

Ted has recently added IPA support for C++, so the number of bugs reported increased dramatically.
In some cases our diagnostic clarity is still lagging behind for C++ bugs that span multiple functions (it's WIP).

Im aware that some of the program is still work in progress; the C++
analyzer does seem to be in a better state though than what the
current web pages imply. :slight_smile:

If doing this is indeed helpful, and if it's not part of the build-bot
already, I have no problems with running the analyzer on a
semi-regular basis.

Thanks,

John Smith.