diff INSTALL @ 1267:d9ecf3a83620

Document scan build
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 26 Sep 2014 19:05:44 +0200
parents a548dd9a5dbe
children 4a3a482dc337
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/