configure: Add option to run clang static analysis

This commit is contained in:
TingPing
2014-12-02 01:06:25 -05:00
parent 05a6097dc6
commit e38f00775f
5 changed files with 42 additions and 0 deletions

8
m4/clang-analyze.am Normal file
View File

@@ -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)