[Qgis-developer] QGIS and Coverity scans

Hugo Mercier hugo.mercier at oslandia.com
Wed Feb 11 08:18:03 PST 2015


Hi Jürgen,

Le 11/02/2015 14:18, Jürgen E. Fischer a écrit :
> Hi Hugo,
> 
> On Wed, 11. Feb 2015 at 14:04:56 +0100, Hugo Mercier wrote:
>> What would be very good is to call static analyzers during the build/testing
>> process (as an option). Has somebody experiences with such things ? CLang
>> static analyzer ?
> 
> We have used cppcheck - but not integrated into the build process.
> There are also some good options for gcc (eg. -Weffc++).

Good to know. A CMake option with such compilation flags can be a first
pass.
Using another compiler (Clang) may also help to exhibit different
wwarning messages.

> 
> I didn't know clang's scan-build[1] before Even Rouault mentioned it on #qgis.
> Maybe we could use that with travis.  But it's not packaged in ubuntu and
> apparently you have to build clang to get it.

It's shipped with the clang-3.4 package on ubuntu (14.04 here).



More information about the Qgis-developer mailing list