Commit 88bddf10 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Logging arguments when running tool

parent 16793a5f
...@@ -8,6 +8,7 @@ if ( CPPCHECK_EXECUTABLE ) ...@@ -8,6 +8,7 @@ if ( CPPCHECK_EXECUTABLE )
configure_file(${CMAKE_SOURCE_DIR}/buildconfig/CMake/CppCheck_Suppressions.txt.in ${CMAKE_BINARY_DIR}/CppCheck_Suppressions.txt) configure_file(${CMAKE_SOURCE_DIR}/buildconfig/CMake/CppCheck_Suppressions.txt.in ${CMAKE_BINARY_DIR}/CppCheck_Suppressions.txt)
# setup the standard arguments # 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 set ( CPPCHECK_ARGS --enable=all --inline-suppr --max-configs=120
--suppressions-list=${CMAKE_BINARY_DIR}/CppCheck_Suppressions.txt --suppressions-list=${CMAKE_BINARY_DIR}/CppCheck_Suppressions.txt
--project=${CMAKE_BINARY_DIR}/compile_commands.json --project=${CMAKE_BINARY_DIR}/compile_commands.json
...@@ -38,9 +39,9 @@ if ( CPPCHECK_EXECUTABLE ) ...@@ -38,9 +39,9 @@ if ( CPPCHECK_EXECUTABLE )
# generate the target # generate the target
if (NOT TARGET cppcheck) if (NOT TARGET cppcheck)
add_custom_target ( cppcheck add_custom_target ( cppcheck
COMMAND ${CPPCHECK_EXECUTABLE} ${_cppcheck_args} ${_cppcheck_xml_args} COMMAND ${CPPCHECK_EXECUTABLE}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} 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) set_target_properties(cppcheck PROPERTIES EXCLUDE_FROM_ALL TRUE)
endif() endif()
......
...@@ -52,6 +52,9 @@ redundantAssignment:${CMAKE_SOURCE_DIR}/Framework/DataHandling/src/LoadRaw/isisr ...@@ -52,6 +52,9 @@ redundantAssignment:${CMAKE_SOURCE_DIR}/Framework/DataHandling/src/LoadRaw/isisr
// Ref binding means Cppcheck can't see these are used // Ref binding means Cppcheck can't see these are used
unreadVariable:${CMAKE_SOURCE_DIR}/Framework/Algorithms/src/MaskBinsIf.cpp 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 ------------------- // --------- Missing copy assignment / constructors -------------------
// We don't want more creeping in so just mark these one by one // We don't want more creeping in so just mark these one by one
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment