mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
chore(cppcheck): add optional parameter to specify the directory to check, ../src by default
co-author: rouault
This commit is contained in:
parent
13b15b4911
commit
78463c0226
@ -14,10 +14,12 @@ case $SCRIPT_DIR in
|
||||
;;
|
||||
esac
|
||||
|
||||
SRC_DIR=${1:-${SCRIPT_DIR}/../src}
|
||||
|
||||
LOG_FILE=/tmp/cppcheck_qgis.txt
|
||||
|
||||
rm -f ${LOG_FILE}
|
||||
echo "Checking ${SCRIPT_DIR}/../src ..."
|
||||
echo "Checking ${SCRIPT_DIR}/${SRC_DIR} ..."
|
||||
|
||||
# qgsgcptransformer.cpp causes an effective hang on newer cppcheck!
|
||||
|
||||
@ -51,7 +53,7 @@ cppcheck --library=qt.cfg --inline-suppr \
|
||||
-DBUILTIN_UNREACHABLE="__builtin_unreachable();" \
|
||||
-i src/analysis/georeferencing/qgsgcptransformer.cpp \
|
||||
-j $(nproc) \
|
||||
${SCRIPT_DIR}/../src \
|
||||
${SRC_DIR} \
|
||||
>>${LOG_FILE} 2>&1 &
|
||||
|
||||
PID=$!
|
||||
|
Loading…
x
Reference in New Issue
Block a user