-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcppcheck
executable file
·46 lines (42 loc) · 1.15 KB
/
cppcheck
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
export INCL_1=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/*/include
export INCL_2=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
export JINCL="$JAVA_HOME/include"
mkdir -p ./cppcheck-build
cppcheck \
--cppcheck-build-dir=./cppcheck-build \
-I $INCL_1 \
-I $INCL_2 \
-I compiled-sweet-b/usr/local/include \
-I compiled-tinycbor/usr/local/include \
-I . \
-isweet-b-master\
-itinycbor-main\
-ijni\
--suppress=*:compiled-tinycbor/usr/local/include/* \
--inline-suppr \
--enable=all --inconclusive --library=posix \
-U __WINT_TYPE__\
-U __WCHAR_TYPE__\
-U __SIZE_TYPE__\
-U __PTRDIFF_TYPE__\
--force \
.
cppcheck \
-I $INCL_1 \
-I $JINCL \
-I . \
-U __INT8_TYPE__ \
-U __INT16_TYPE__ \
-U __INT24_TYPE__ \
-U __INT32_TYPE__ \
-U __INT40_TYPE__ \
-U __INT48_TYPE__ \
-U __INT56_TYPE__ \
-U __INT64_TYPE__ \
--enable=all --inconclusive --library=posix \
--force \
--suppress=missingIncludeSystem:* \
--suppress=*:$JINCL* \
--suppress=unusedFunction:* \
jni/