aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2012-05-27 20:43:09 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2012-05-27 20:43:09 +1000
commit12311e426da03e63647dfca33b258ddf215016c6 (patch)
tree53e36865f17d43ea801ae9c2aea1997af8ee3430
parentd377d681327f2d8d799bfd0976bfe00cf588aea0 (diff)
downloadscintilla-mirror-12311e426da03e63647dfca33b258ddf215016c6.tar.gz
Add a way to run the clang static analyzer by defining CLANG_ANALYZE to make.
-rw-r--r--gtk/makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/makefile b/gtk/makefile
index 4483205c1..9921fae36 100644
--- a/gtk/makefile
+++ b/gtk/makefile
@@ -8,8 +8,11 @@
.SUFFIXES: .cxx .c .o .h .a
ifdef CLANG
-CC = clang
-CCOMP = clang
+ifdef CLANG_ANALYZE
+ANALYZE=--analyze
+endif
+CC = clang $(ANALYZE)
+CCOMP = clang $(ANALYZE)
else
CC = g++
CCOMP = gcc