aboutsummaryrefslogtreecommitdiff
path: root/BuildTests/StaticAnalysisTest
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-02-29 17:04:04 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-02-29 17:04:04 +0000
commite9e6d1992dec544dead4ea3953175362a161a5d4 (patch)
treec7458ce7e75c073431f2e97a9c5fad154719ae59 /BuildTests/StaticAnalysisTest
parent2f2a53b3721a36b93465461695d8ec37cdc0983e (diff)
Update StaticAnalysisTest to check for missing header files. Fix found incorrect header file paths in the demos and projects.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2076 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'BuildTests/StaticAnalysisTest')
-rw-r--r--BuildTests/StaticAnalysisTest/makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/BuildTests/StaticAnalysisTest/makefile b/BuildTests/StaticAnalysisTest/makefile
index 766bf080..44c7d5f8 100644
--- a/BuildTests/StaticAnalysisTest/makefile
+++ b/BuildTests/StaticAnalysisTest/makefile
@@ -9,15 +9,19 @@
# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
# Path to the root of the LUFA tree to scan
-LUFA_ROOT_PATH = ../../
+LUFA_ROOT_PATH = ../../
# Filenames or directories (including fragments) to exclude from the analysis
-EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
+EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
# Output message template for found warnings and errors
-MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
+MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
+
+# Checks to suppress so that generated warnings are discarded
+SUPPRESS_WARNINGS = variableScope unusedFunction missingInclude
all:
- cppcheck -q -f --error-exitcode=1 --inline-suppr --enable=style --suppress=variableScope --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
+ cppcheck -q --std=c99 --check-config $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
+ cppcheck -q -f --std=c99 --error-exitcode=1 --inline-suppr --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
%: \ No newline at end of file