From 327d62f7d56f79999cac6407bdfdcc0b90510aef Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 15 Jul 2016 19:20:08 +0200 Subject: cppcheck integration ; not much --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9367bbf..f7a291f 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,12 @@ analyze: reanalyze: clean analyze +CHKFLAGS=--enable=warning,performance,information,style --suppress=portability -I src/common/include -j4 --platform=unix32 +cppcheck: + cppcheck $(CHKFLAGS) src/common 2>&1 >/dev/null | tee build/cppcheck.log + cppcheck $(CHKFLAGS) -I src/kernel/include src/kernel 2>&1 >/dev/null | tee -a build/cppcheck.log + cppcheck $(CHKFLAGS) -I src/lib/include src/lib src/sysbin 2>&1 >/dev/null | tee -a build/cppcheck.log + rebuild: clean all mrproper: clean -- cgit v1.2.3