Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit 948679f

Browse files
committed
Disable difficult/unhelpful CppCheck warnings
1 parent 235115d commit 948679f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

CMakeLists.txt

+11-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,17 @@ dynamic_project_options(
108108
# MSVC_WARNINGS # Override the defaults for the MSVC warnings
109109
# CLANG_WARNINGS # Override the defaults for the CLANG warnings
110110
# GCC_WARNINGS # Override the defaults for the GCC warnings
111-
# CPPCHECK_OPTIONS # Override the defaults for CppCheck
111+
CPPCHECK_OPTIONS
112+
--enable=style,performance,warning,portability
113+
--inline-suppr
114+
# We cannot act on a bug/missing feature of cppcheck
115+
--suppress=cppcheckError
116+
--suppress=internalAstError
117+
# if a file does not have an internalAstError, we get an unmatchedSuppression error
118+
--suppress=unmatchedSuppression
119+
--suppress=passedByValue
120+
--suppress=syntaxError
121+
--inconclusive
112122
)
113123

114124
target_compile_features(project_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD})

0 commit comments

Comments
 (0)