forked from awslabs/aws-c-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcppcheck.sh
executable file
·20 lines (18 loc) · 957 Bytes
/
cppcheck.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -x
set -e
cppcheck \
\
--enable=all --std=c99 --language=c --inline-suppr \
--template='[{file}:{line}]: ({severity},{id}){message}' \
--force --error-exitcode=-1 \
\
-I include \
-USELF_TEST -UCLOCK_MONOTONIC_RAW \
\
--suppress=unusedFunction \
--suppress=missingInclude \
--suppress=memleak:tests/hash_table_test.c \
--suppress=staticStringCompare:tests/assert_test.c \
--suppress=*:build/tests/test_runner.c \
\
-q .