changeset 1267:d9ecf3a83620

Document scan build
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 26 Sep 2014 19:05:44 +0200
parents a548dd9a5dbe
children 2efdf2faf4e5
files INSTALL
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/INSTALL	Fri Sep 26 18:44:41 2014 +0200
+++ b/INSTALL	Fri Sep 26 19:05:44 2014 +0200
@@ -128,6 +128,16 @@
     cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX \
     -DUSE_CLANG=TRUE \
     -DCMAKE_VERBOSE_MAKEFILE=TRUE
+    make
+
+To run scan build:
+
+    CXX=/usr/share/clang/scan-build/c++-analyzer \
+    CC=/usr/share/clang/scan-build/ccc-analyzer \
+    cmake .. -DCMAKE_PREFIX_PATH=$YOURPREFIX \
+    -DUSE_CLANG=TRUE \
+    -DCMAKE_VERBOSE_MAKEFILE=TRUE
+    scan-build make
 
 I386
 ====

http://wald.intevation.org/projects/trustbridge/