Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Make it easier to specify the list of checkers to e...
details: https://anonhg.NetBSD.org/src/rev/35d7d0e52a70
branches: trunk
changeset: 778551:35d7d0e52a70
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Apr 04 10:37:18 2012 +0000
description:
Make it easier to specify the list of checkers to enable for the static
analyzer.
diffstat:
share/mk/bsd.clang-analyze.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r a207440e071e -r 35d7d0e52a70 share/mk/bsd.clang-analyze.mk
--- a/share/mk/bsd.clang-analyze.mk Wed Apr 04 10:03:53 2012 +0000
+++ b/share/mk/bsd.clang-analyze.mk Wed Apr 04 10:37:18 2012 +0000
@@ -1,9 +1,15 @@
-# $NetBSD: bsd.clang-analyze.mk,v 1.2 2011/09/01 12:25:10 joerg Exp $
+# $NetBSD: bsd.clang-analyze.mk,v 1.3 2012/04/04 10:37:18 joerg Exp $
.ifndef CLANG_ANALYZE_SRCS
CLANG_ANALYZE_FLAGS+= --analyze
+CLANG_ANALYZE_CHECKERS+= core deadcode security unix
+
+.for checker in ${CLANG_ANALYZE_CHECKERS}
+CLANG_ANALYZE_FLAGS+= -Xanalyzer -analyzer-checker=${checker}
+.endfor
+
.SUFFIXES: .c .cc .cpp .cxx .C .clang-analyzer
CLANG_ANALYZE_CFLAGS= ${CFLAGS:N-Wa,--fatal-warnings}
Home |
Main Index |
Thread Index |
Old Index