Remove unnecessary cppcheck include-path
[alexxy/gromacs.git] / tests / CppCheck.cmake
index 8ca224cb9d9250cd9627441b1e409d0c0456b68a..2b3e93386c63a4751ce8cbd4034f7923583e5c75 100644 (file)
@@ -71,9 +71,10 @@ if (CPPCHECK_EXECUTABLE AND UNIX)
     endif()
     set(_common_flags
         --enable=style -DLINUX -DHAVE_UNISTD_H
-        -I src/gromacs/legacyheaders -I src
+        -I src
         -I src/external/thread_mpi/include
-        -I ${CMAKE_BINARY_DIR}/src -I ${CMAKE_BINARY_DIR}/src/gromacs/utility
+        -I src/external/tng_io/include
+        -I ${CMAKE_BINARY_DIR}/src
         --quiet
         --inline-suppr
         ${_outputopt})
@@ -99,7 +100,9 @@ if (CPPCHECK_EXECUTABLE AND UNIX)
         --suppress=invalidscanf:src/gromacs/fileio/matio.cpp
         --suppress=invalidscanf:src/gromacs/fileio/xvgr.cpp
         --suppress=invalidscanf:src/gromacs/topology/index.cpp
-        --suppress=invalidscanf:src/gromacs/gmxpreprocess/pdb2top.cpp)
+        --suppress=invalidscanf:src/gromacs/gmxpreprocess/pdb2top.cpp
+        --suppress=passedByValue:src/gromacs/simd/tests/*
+        )
 
     # This list will hold the list of all files with cppcheck errors
     # (one per input file)