Skip to content

Commit 20ec7b9

Browse files
committed
Update cppcheck config
1 parent d531e9a commit 20ec7b9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,9 @@ if(CPPCHECK)
317317
--quiet
318318
-j4
319319
--inline-suppr
320-
--enable=warning,style,performance,portability,information,missingInclude
320+
--suppress=duplInheritedMember
321+
--enable=warning,style,performance,portability,information
322+
--check-level=exhaustive
321323
--force
322324
-Uassert -DPROTOZERO_STRICT_API -DPROTOZERO_USE_BUILTIN_BSWAP -UPROTOZERO_USE_VIEW)
323325

@@ -344,7 +346,7 @@ if(CPPCHECK)
344346

345347
add_custom_target(cppcheck
346348
${CPPCHECK}
347-
--std=c++14 ${CPPCHECK_OPTIONS}
349+
--std=c++${USE_CPP_VERSION} ${CPPCHECK_OPTIONS}
348350
-I ${CMAKE_SOURCE_DIR}/include
349351
${CPPCHECK_FILES}
350352
)

0 commit comments

Comments
 (0)