Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project_Phoenix
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Project_Phoenix
Commits
36b65f0f
Commit
36b65f0f
authored
7 years ago
by
jwendt
Browse files
Options
Downloads
Patches
Plain Diff
enable all cppchecks
closes #205
parent
380611ca
No related branches found
No related tags found
1 merge request
!94
Feature/#205 more cppcheck checks
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/cppcheck.cmake
+3
-2
3 additions, 2 deletions
cmake/cppcheck.cmake
with
3 additions
and
2 deletions
cmake/cppcheck.cmake
+
3
−
2
View file @
36b65f0f
...
@@ -30,12 +30,13 @@ if(NOT CPPCHECK_COMMAND)
...
@@ -30,12 +30,13 @@ if(NOT CPPCHECK_COMMAND)
" ERROR: Could not find cppcheck.
" ERROR: Could not find cppcheck.
Having cppcheck is a mandatory requirement.
Having cppcheck is a mandatory requirement.
CMake will not generate the project without it.
CMake will not generate the project without it.
Add its location to the environments variables PATH or CPPCHECK_DIR."
)
Add its location to the environments variables PATH or CPPCHECK_DIR.
However, this should normally be supplied by conan!"
)
else
()
else
()
message
(
STATUS
"Use cppcheck from:
${
CPPCHECK_COMMAND
}
"
)
message
(
STATUS
"Use cppcheck from:
${
CPPCHECK_COMMAND
}
"
)
endif
()
endif
()
set
(
CPPCHECK_ARGUMENTS --enable=warning,performance,portability,missingInclude,unusedFunction --error-exitcode=1 --quiet --verbose
)
set
(
CPPCHECK_ARGUMENTS --enable=warning,performance,portability,missingInclude,unusedFunction
,style
--error-exitcode=1 --quiet --verbose
)
if
(
MSVC
)
if
(
MSVC
)
list
(
APPEND CPPCHECK_ARGUMENTS --template=vs
)
list
(
APPEND CPPCHECK_ARGUMENTS --template=vs
)
elseif
(
CLANG
)
elseif
(
CLANG
)
...
...
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