Skip to content

Commit

Permalink
Fixed cppcheck config as XML
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Sauter committed Feb 8, 2025
1 parent 7a6d1c0 commit 75e15c8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 0 additions & 3 deletions CppCheckSuppressions.txt

This file was deleted.

2 changes: 1 addition & 1 deletion cmake/cppcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(CMAKE_CXX_CPPCHECK)
"--addon=y2038"
"--std=c++${CMAKE_CXX_STANDARD}"
"--cppcheck-build-dir=${PROJECT_BINARY_DIR}"
"--suppress-xml=${PROJECT_SOURCE_DIR}/CppCheckSuppressions.xml"
"--suppress-xml=${PROJECT_SOURCE_DIR}/cppcheck-suppressions.xml"
"--output-file=${PROJECT_BINARY_DIR}/cppcheck.xml"
"--check-level=normal")
endif()
13 changes: 13 additions & 0 deletions cppcheck-suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<suppressions>
<!-- Exclude Paths -->
<suppress>
<id>*</id>
<fileName>*/build/*</fileName>
</suppress>

<!-- False positive? -->
<suppress>
<id>noExplicitConstructor</id>
</suppress>
</suppressions>

0 comments on commit 75e15c8

Please sign in to comment.