Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
88bddf10
Commit
88bddf10
authored
Jul 26, 2021
by
Peterson, Peter
Browse files
Logging arguments when running tool
parent
16793a5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
buildconfig/CMake/CppCheckSetup.cmake
View file @
88bddf10
...
...
@@ -8,6 +8,7 @@ if ( CPPCHECK_EXECUTABLE )
configure_file
(
${
CMAKE_SOURCE_DIR
}
/buildconfig/CMake/CppCheck_Suppressions.txt.in
${
CMAKE_BINARY_DIR
}
/CppCheck_Suppressions.txt
)
# setup the standard arguments
# --inline-suppr appears to be ignored if --suppresions-list is specified
set
(
CPPCHECK_ARGS --enable=all --inline-suppr --max-configs=120
--suppressions-list=
${
CMAKE_BINARY_DIR
}
/CppCheck_Suppressions.txt
--project=
${
CMAKE_BINARY_DIR
}
/compile_commands.json
...
...
@@ -38,9 +39,9 @@ if ( CPPCHECK_EXECUTABLE )
# generate the target
if
(
NOT TARGET cppcheck
)
add_custom_target
(
cppcheck
COMMAND
${
CPPCHECK_EXECUTABLE
}
${
_cppcheck_args
}
${
_cppcheck_xml_args
}
COMMAND
${
CPPCHECK_EXECUTABLE
}
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
COMMENT
"Running cppcheck"
COMMENT
"Running cppcheck
${
_cppcheck_args
}
${
_cppcheck_xml_args
}
"
)
set_target_properties
(
cppcheck PROPERTIES EXCLUDE_FROM_ALL TRUE
)
endif
()
...
...
buildconfig/CMake/CppCheck_Suppressions.txt.in
View file @
88bddf10
...
...
@@ -52,6 +52,9 @@ redundantAssignment:${CMAKE_SOURCE_DIR}/Framework/DataHandling/src/LoadRaw/isisr
// Ref binding means Cppcheck can't see these are used
unreadVariable:${CMAKE_SOURCE_DIR}/Framework/Algorithms/src/MaskBinsIf.cpp
// the mru-list is intentionally not altered
operatorEqVarError:${CMAKE_SOURCE_DIR}/Framework/DataObjects/src/EventList.cpp:309
// --------- Missing copy assignment / constructors -------------------
// We don't want more creeping in so just mark these one by one
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment