From 948679fe20f62385fc6d02f82787ae1bb600f116 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 27 Apr 2022 16:47:03 -0600 Subject: [PATCH] Disable difficult/unhelpful CppCheck warnings --- CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f887d73d..324628e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,7 +108,17 @@ dynamic_project_options( # MSVC_WARNINGS # Override the defaults for the MSVC warnings # CLANG_WARNINGS # Override the defaults for the CLANG warnings # GCC_WARNINGS # Override the defaults for the GCC warnings - # CPPCHECK_OPTIONS # Override the defaults for CppCheck + CPPCHECK_OPTIONS + --enable=style,performance,warning,portability + --inline-suppr + # We cannot act on a bug/missing feature of cppcheck + --suppress=cppcheckError + --suppress=internalAstError + # if a file does not have an internalAstError, we get an unmatchedSuppression error + --suppress=unmatchedSuppression + --suppress=passedByValue + --suppress=syntaxError + --inconclusive ) target_compile_features(project_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD})