diff options
author | Rechi <Rechi@users.noreply.github.com> | 2022-08-26 19:45:37 +0100 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2022-08-26 19:45:37 +0100 |
commit | d5bffca416e37eec7269bbb843269704957030e9 (patch) | |
tree | 8306f2b22cb1ac4f1418fa0ca4f0f39e08c21623 /cmake | |
parent | 1ed7dd0565830cf54402ad8e9617a71038b7b075 (diff) |
[cppcheck] enable performance checks
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/buildtools/FindCppcheck.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/buildtools/FindCppcheck.cmake b/cmake/modules/buildtools/FindCppcheck.cmake index d3b6e84e4b..27e2675291 100644 --- a/cmake/modules/buildtools/FindCppcheck.cmake +++ b/cmake/modules/buildtools/FindCppcheck.cmake @@ -21,7 +21,7 @@ if(CPPCHECK_FOUND) # but cppcheck doesn't support Objective-C and Objective-C++. # CMake >= 3.16 added support for Objective-C and Objective-C++ language, # but doesn't support OBJC and OBJCXX for <LANG>_CLANG_TIDY. - file(WRITE "${CMAKE_BINARY_DIR}/cppcheck" "case \"$@\" in *.m|*.mm) exit 0; esac\nexec \"${CPPCHECK_EXECUTABLE}\" --quiet --relative-paths=\"${CMAKE_SOURCE_DIR}\" \"$@\"\n") + file(WRITE "${CMAKE_BINARY_DIR}/cppcheck" "case \"$@\" in *.m|*.mm) exit 0; esac\nexec \"${CPPCHECK_EXECUTABLE}\" --enable=performance --quiet --relative-paths=\"${CMAKE_SOURCE_DIR}\" \"$@\"\n") execute_process(COMMAND chmod +x "${CMAKE_BINARY_DIR}/cppcheck") # Supports Unix Makefiles and Ninja |