clang static analyzer: use it!

Lennart Poettering mzerqung at 0pointer.de
Tue Sep 8 17:52:14 UTC 2009


On Tue, 08.09.09 10:33, Michel Alexandre Salim (michael.silvanus at gmail.com) wrote:

> The latest Rawhide llvm build:
> 
> http://koji.fedoraproject.org/koji/buildinfo?buildID=130997
> 
> -- which you'd probably have to install manually until it hits the
> Rawhide mirrors -- have clang's analyzer packaged. Once it lands
> properly you can have llvm, llvm-clang (the compiler) and
> llvm-clang-analyzer installed by simply doing
> 
>   yum install llvm-clang-analyzer

Thanks for packaging this. Unfortunately it doesn't really work:

Whatever I try to use scan-build on I get:

Can't exec "clang-cc": No such file or directory at
/usr/lib64/clang-analyzer/libexec/ccc-analyzer line 216.
readline() on closed filehandle FROM_CHILD at
/usr/lib64/clang-analyzer/libexec/ccc-analyzer line 222.

Adding /usr/libexec/ to the $PATH seems to fix this. However, it still
can't find any standard C includes then.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4




More information about the fedora-devel-list mailing list