diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-03-04 16:15:59 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-03-04 16:15:59 +0000 |
| commit | ce40f19cfc51f640013874e80d656b48a9ff5b2b (patch) | |
| tree | 358b663f2d9e2dbd1555af6ab6ee174da26711e1 /BuildTests/StaticAnalysisTest/makefile | |
| parent | 18a9ae43a22e260f7510fcd5c7ccf604508c4ff0 (diff) | |
Update code and StaticAnlysisTest so that missingInclude warnings do not have to be suppressed, and so that all code except for third party libraries can be checked.
Update SingleUSBModeTest makefile to separate out the messages from the test commands.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2079 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'BuildTests/StaticAnalysisTest/makefile')
| -rw-r--r-- | BuildTests/StaticAnalysisTest/makefile | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/BuildTests/StaticAnalysisTest/makefile b/BuildTests/StaticAnalysisTest/makefile index 44c7d5f8..8b15a715 100644 --- a/BuildTests/StaticAnalysisTest/makefile +++ b/BuildTests/StaticAnalysisTest/makefile @@ -9,19 +9,36 @@ # 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 = 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
+SUPPRESS_WARNINGS = variableScope \
+ unusedFunction
-all:
- 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)
+# Extra paths to search for include files
+INCLUDE_PATHS = $(LUFA_ROOT_PATH)/LUFA/CodeTemplates/
+
+
+all: begin staticcheck end
+
+begin:
+ @echo Executing build test "StaticAnalysisTest".
+ @echo
+
+end:
+ @echo Build test "StaticAnalysisTest" complete.
+ @echo
+
+staticcheck:
+ cppcheck --quiet --inline-suppr --check-config $(SUPPRESS_WARNINGS:%=--suppress=%) --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
+ cppcheck --quiet --inline-suppr --error-exitcode=1 --std=c99 --force --enable=all --inconclusive $(SUPPRESS_WARNINGS:%=--suppress=%) --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
%:
\ No newline at end of file |
