File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ CPPCHECK_unmatched=
4
+ for f in * .c * .h; do
5
+ CPPCHECK_unmatched=" $CPPCHECK_unmatched --suppress=unmatchedSuppression:$f "
6
+ done
3
7
# http-parser was taken from Node.js, and we don't tend to validate it.
4
8
CPPCHECK_suppresses=" --suppress=missingIncludeSystem \
5
9
--suppress=unusedFunction:http_parser.c \
@@ -8,7 +12,7 @@ CPPCHECK_suppresses="--suppress=missingIncludeSystem \
8
12
--suppress=unknownMacro:http_server.c \
9
13
--suppress=unusedStructMember:http_parser.h \
10
14
--suppress=unusedStructMember:http_server.h"
11
- CPPCHECK_OPTS=" -I. --enable=all --error-exitcode=1 --force $CPPCHECK_suppresses "
15
+ CPPCHECK_OPTS=" -I. --enable=all --error-exitcode=1 --force $CPPCHECK_suppresses $CPPCHECK_unmatched "
12
16
13
17
RETURN=0
14
18
CLANG_FORMAT=$( which clang-format)
You can’t perform that action at this time.
0 commit comments