Running cppcheck with every build

This commit is contained in:
Pavel Kirienko
2014-02-01 17:04:56 +04:00
parent d77d2967e0
commit b385ffb12e
4 changed files with 25 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
#
# cppcheck static analysis
# For Debian based: apt-get install cppcheck
#
# TODO: with future versions of cppcheck, add --library=glibc
cppcheck . --error-exitcode=1 --quiet --enable=all --platform=unix64 --std=c99 --std=c++11 \
--inconclusive --inline-suppr --force --template=gcc \
-Iinclude $@