We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--errorlist
1 parent 88ef81e commit d296aaeCopy full SHA for d296aae
1 file changed
tools/errorid.sh
@@ -0,0 +1,29 @@
1
+#!/bin/bash
2
+
3
+#set -x
4
5
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6
7
+# TODO: exclude testinternal.cpp
8
+echo 'no --errorlist entry:'
9
+grep -h -o -P '\[[a-zA-Z0-9_]+\]\\n\"' $DIR/../test/*.cpp | tr -d '[]\"' | sed 's/\\n$//' | sort -u | \
10
+while read -r id; do
11
+ if [ ${#id} -lt 4 ]; then
12
+ continue
13
+ fi
14
+ $DIR/../cppcheck --errorlist | grep "id=\"$id\"" > /dev/null
15
+ if [ $? -ne 0 ]; then
16
+ echo $id
17
18
+done
19
20
+echo ''
21
22
+echo 'no test coverage:'
23
+$DIR/../cppcheck --errorlist | grep -h -o -P 'id=\"[a-zA-Z0-9_]*\"' | sed 's/\id=//' | tr -d '\"' | sort -u | \
24
25
+ grep -h -o -P "\[$id\]\\\\n\"" $DIR/../test/*.cpp > /dev/null
26
27
28
29
0 commit comments