summary refs log tree commit diff stats
path: root/m4
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-02 01:06:25 -0500
committerTingPing <tingping@tingping.se>2014-12-02 01:06:25 -0500
commite38f00775f31102a696418b59e88b1586706a359 (patch)
tree5332f76a6da8ea436131bd65d8b849b18ed053b7 /m4
parent05a6097dc659e6567e2d081061a44a585ddc5f67 (diff)
configure: Add option to run clang static analysis
Diffstat (limited to 'm4')
-rw-r--r--m4/clang-analyze.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/clang-analyze.am b/m4/clang-analyze.am
new file mode 100644
index 00000000..a5765774
--- /dev/null
+++ b/m4/clang-analyze.am
@@ -0,0 +1,8 @@
+analysis_verbose = $(analysis_verbose_$(V))
+analysis_verbose_ = $(analysis_verbose_$(AM_DEFAULT_VERBOSITY))
+analysis_verbose_0 = @echo "  CCSA    " $@; $(COMPILE) --analyze $< -o $@;
+analysis_verbose_1 = $(COMPILE) --analyze $< -o $@;
+
+%.plist: %.c
+	$(analysis_verbose)
+