Skip to content

Commit 32b77c3

Browse files
committedApr 6, 2023
Exclude qgsgcptransformer.cpp from cppcheck scanning
This file causes cppcheck to hang indefinitely. Suppressing warnings is not sufficient, we need to completely exclude this file from the scan.
1 parent be2cd18 commit 32b77c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎scripts/cppcheck.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ LOG_FILE=/tmp/cppcheck_qgis.txt
1919
rm -f ${LOG_FILE}
2020
echo "Checking ${SCRIPT_DIR}/../src ..."
2121

22+
# qgsgcptransformer.cpp causes an effective hang on newer cppcheck!
23+
2224
cppcheck --library=qt.cfg --inline-suppr \
2325
--template='{file}:{line},{severity},{id},{message}' \
2426
--enable=all --inconclusive --std=c++11 \
@@ -34,6 +36,7 @@ cppcheck --library=qt.cfg --inline-suppr \
3436
-DQ_NOWARN_DEPRECATED_PUSH= \
3537
-DQ_NOWARN_DEPRECATED_POP= \
3638
-DQ_DECLARE_OPAQUE_POINTER= \
39+
-i src/analysis/georeferencing/qgsgcptransformer.cpp \
3740
-j $(nproc) \
3841
${SCRIPT_DIR}/../src \
3942
>>${LOG_FILE} 2>&1 &

0 commit comments

Comments
 (0)
Please sign in to comment.