File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ list(APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure")
11
11
include (CTest )
12
12
13
13
set (CMAKE_CXX_STANDARD 17 )
14
- set (CMAKE_CXX_STANDARD_REQUIRED on )
15
- set (VCPKG_MANIFEST_INSTALL OFF )
14
+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
15
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
16
16
17
17
SET (GCC_COVERAGE_COMPILE_FLAGS "-fsanitize=address -fprofile-arcs -ftest-coverage -g -O0" )
18
18
SET (GCC_COVERAGE_LINK_FLAGS "--coverage" )
Original file line number Diff line number Diff line change 10
10
},
11
11
"generator" : " Unix Makefiles" ,
12
12
"binaryDir" : " ${sourceDir}/build/default"
13
-
14
13
}
15
14
]
16
15
}
Original file line number Diff line number Diff line change @@ -55,9 +55,10 @@ clean:
55
55
touch ./coverage/.gitkeep
56
56
sh -c " rm -fr -v ./vcpkg_installed" || true
57
57
58
- build : dependencies
59
- cmake --preset debug -B build && \
60
- cmake --preset debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 build && \
58
+ prebuild : dependencies
59
+ cmake --preset debug -B build
60
+
61
+ build : prebuild
61
62
cmake --build build --verbose
62
63
63
64
dependencies :
@@ -72,17 +73,18 @@ lint/yaml:
72
73
73
74
lint : lint/markdown lint/yaml test/styling test/static
74
75
75
- test/static :
76
+ test/static : prebuild
76
77
cppcheck \
78
+ --project=build/compile_commands.json \
77
79
--enable=all \
80
+ --check-level=exhaustive \
78
81
--std=c++17 \
79
82
--library=posix \
80
83
--inconclusive \
81
84
--inline-suppr \
82
85
--error-exitcode=13 \
83
86
--suppress=missingIncludeSystem \
84
- --showtime=summary \
85
- src/
87
+ --showtime=summary
86
88
87
89
test/styling :
88
90
clang-format --dry-run --Werror $(FILES )
You can’t perform that action at this time.
0 commit comments