Skip to content

Commit 75e15c8

Browse files
committed
Fixed cppcheck config as XML
1 parent 7a6d1c0 commit 75e15c8

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CppCheckSuppressions.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

cmake/cppcheck.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if(CMAKE_CXX_CPPCHECK)
99
"--addon=y2038"
1010
"--std=c++${CMAKE_CXX_STANDARD}"
1111
"--cppcheck-build-dir=${PROJECT_BINARY_DIR}"
12-
"--suppress-xml=${PROJECT_SOURCE_DIR}/CppCheckSuppressions.xml"
12+
"--suppress-xml=${PROJECT_SOURCE_DIR}/cppcheck-suppressions.xml"
1313
"--output-file=${PROJECT_BINARY_DIR}/cppcheck.xml"
1414
"--check-level=normal")
1515
endif()

cppcheck-suppressions.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<suppressions>
3+
<!-- Exclude Paths -->
4+
<suppress>
5+
<id>*</id>
6+
<fileName>*/build/*</fileName>
7+
</suppress>
8+
9+
<!-- False positive? -->
10+
<suppress>
11+
<id>noExplicitConstructor</id>
12+
</suppress>
13+
</suppressions>

0 commit comments

Comments
 (0)