From a588482e68564d50027523d254f9c87d8f6c56c0 Mon Sep 17 00:00:00 2001 From: Andrew Cooks Date: Tue, 3 Mar 2015 12:53:52 +0800 Subject: [PATCH] add make targets for cppcheck and clang-analyze static analyzers. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index fc420dd1..cd06cccc 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,13 @@ coverity-build: $(CLEANDIRS) coverity-clean: rm -rf cov-int jittertrap-coverity-build.lzma +cppcheck: + cppcheck --enable=style,warning,performance,portability src/ $(DEFINES) + #cppcheck ../deps/fossa/fossa.c $(DEFINES) $(FOSSA_DEFINES) + +clang-analyze: + scan-build make src + clean: $(CLEANDIRS) $(CLEANDIRS): @echo "Cleaning $@"