make clang

This commit is contained in:
Richard Aas 2010-11-26 14:07:29 +00:00
parent bf7b486ffe
commit 7e4478f12f

View file

@ -727,6 +727,20 @@ splint-test:
@splint $(SPLINT_LIBS) $(SPLINT_OPTIONS) test.c
###############################################################################
#
# Clang section
#
CLANG_OPTIONS := -I$(LIBRE_INC) $(CFLAGS)
CLANG_IGNORE :=
CLANG_SRCS += $(filter-out $(CLANG_IGNORE), $(patsubst %,src/%,$(SRCS)))
clang:
@clang --analyze $(CLANG_OPTIONS) $(CLANG_SRCS)
@rm -f *.plist
###############################################################################
#
# Documentation section