[Libreoffice-commits] dev-tools.git: cppcheck/cppcheck-report.sh
Maarten Hoes
hoes.maarten at gmail.com
Mon Jun 1 01:14:53 PDT 2015
cppcheck/cppcheck-report.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0b9448dafce4b60291ce0526709586bf90faaf4b
Author: Maarten Hoes <hoes.maarten at gmail.com>
Date: Thu May 28 23:20:20 2015 +0200
Use XML v2. cppcheck doesnt report some issues with the legacy format.
Change-Id: I61bd86c964e3fab807718fca2f45c5a00f20d65e
Reviewed-on: https://gerrit.libreoffice.org/15955
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
diff --git a/cppcheck/cppcheck-report.sh b/cppcheck/cppcheck-report.sh
index f69809a..40dca74 100755
--- a/cppcheck/cppcheck-report.sh
+++ b/cppcheck/cppcheck-report.sh
@@ -35,7 +35,7 @@ run_cppcheck()
echo "unusedFunction" > "${DATA_DIR?}"/cppcheck_supp.txt
- "${CPPCHECK_DIR?}"/cppcheck -i external/ -i workdir/ --xml --suppressions-list="${DATA_DIR?}"/cppcheck_supp.txt --enable=all --max-configs=25 ./ 2> "${DATA_DIR?}"/err.xml \
+ "${CPPCHECK_DIR?}"/cppcheck -i external/ -i workdir/ --xml --xml-version=2 --suppressions-list="${DATA_DIR?}"/cppcheck_supp.txt --enable=all --max-configs=25 ./ 2> "${DATA_DIR?}"/err.xml \
|| die "Failed to run cppcheck."
"${CPPCHECK_DIR?}"/htmlreport/cppcheck-htmlreport --file="${DATA_DIR?}"/err.xml --title="LibreOffice ${COMMIT_DATE_LO?} ${COMMIT_TIME_LO?} ${COMMIT_SHA1_LO?}, CppCheck ${COMMIT_DATE_CPPCHECK?} ${COMMIT_TIME_CPPCHECK?} ${COMMIT_SHA1_CPPCHECK?}" --report-dir="${HTML_DIR?}" --source-dir=. \
More information about the Libreoffice-commits
mailing list