Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
b7627803
Commit
b7627803
authored
13 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Add source static analysis build test using "cppcheck".
parent
f5c155cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BuildTests/StaticAnalysisTest/makefile
+23
-0
23 additions, 0 deletions
BuildTests/StaticAnalysisTest/makefile
BuildTests/makefile
+2
-1
2 additions, 1 deletion
BuildTests/makefile
with
25 additions
and
1 deletion
BuildTests/StaticAnalysisTest/makefile
0 → 100644
+
23
−
0
View file @
b7627803
#
# LUFA Library
# Copyright (C) Dean Camera, 2011.
#
# dean [at] fourwalledcubicle [dot] com
# www.lufa-lib.org
#
# 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
=
../../
# Filenames or directories (including fragments) to exclude from the analysis
EXCLUDE_LIST
=
HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
# Output message template for found warnings and errors
MESSAGE_TEMPLATE
=
"{file}({line}): {severity} ({id}): {message}"
all
:
cppcheck
-q
-f
--error-exitcode
=
1
--template
$(
MESSAGE_TEMPLATE
)
--enable
=
style
--suppress
=
variableScope
$(
EXCLUDE_LIST:%
=
-i
%
)
$(
LUFA_ROOT_PATH
)
%
:
\ No newline at end of file
This diff is collapsed.
Click to expand it.
BuildTests/makefile
+
2
−
1
View file @
b7627803
...
...
@@ -13,8 +13,9 @@
all
:
$(
MAKE
)
-C
ModuleTest all
$(
MAKE
)
-C
SingleUSBModeTest all
$(
MAKE
)
-C
StaticAnalysisTest all
%
:
$(
MAKE
)
-C
ModuleTest
$@
$(
MAKE
)
-C
SingleUSBModeTest
$@
$(
MAKE
)
-C
StaticAnalysisTest
$@
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment