scons: Enable building through Clang Static Analyzer.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 14 Apr 2014 11:10:25 +0000 (12:10 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Apr 2014 10:44:06 +0000 (11:44 +0100)
commita45a50a4828e1357e9555474bc127c5585b3a420
tree9075bd2cdfb26dbf0ccb4ed1dc1a79f5eab34941
parent6d0e30c6a332de9ea7ab00e1fd303df2fb337c64
scons: Enable building through Clang Static Analyzer.

By accurately detecting gcc/clang through --version option instead
of executable name.

Clang Static Analyzer reports many issues, most false positives, but it
found at least one real and subtle use-after-free issue
in st_texture_get_sampler_view():

  http://people.freedesktop.org/~jrfonseca/scan-build-2014-04-14-1/report-869047.html#EndPath

Reviewed-by: Brian Paul <brianp@vmware.com>
scons/gallium.py