We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78654f1 commit b1e1191Copy full SHA for b1e1191
1 file changed
scripts/cppcheck.sh
@@ -13,10 +13,15 @@ fi
13
# See if cppcheck accepts --check-level
14
EXHAUSTIVE=$(cppcheck --check-level=exhaustive --version > /dev/null 2>&1 && echo "--check-level=exhaustive")
15
16
-CPPCHKOPT=( -j "$nproc" --force "$EXHAUSTIVE" )
+CPPCHKOPT=( -j "$nproc" --force "$EXHAUSTIVE" --inline-suppr )
17
CPPCHKOPT+=( "--enable=warning,performance,portability" )
18
CPPCHKOPT+=( "-I$(realpath "$(dirname "$0")/../include")" )
19
20
+if [ -n "$CPPCHECK_OPTS" ]; then
21
+ read -r -a OPTS <<< "$CPPCHECK_OPTS"
22
+ CPPCHKOPT+=( "${OPTS[@]}" )
23
+fi
24
+
25
# Even cppcheck 2.3 (debian 11) supports c++17 (undocumented)
26
CCSTD=( --std=c11 --language=c )
27
CXSTD=( --std=c++17 --language=c++ )
0 commit comments