generate_cppcheck_report.sh 313 Bytes
#!/bin/bash

SCRIPT=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPT")

. ${SCRIPTDIR}/amda-kernel-env

PROJECTDIR=${SCRIPTDIR}/..
REPORTDIR=${PROJECTDIR}/build/report
REPORTFILE=cppcheck-report.xml

cd ${PROJECTDIR}

mkdir -p ${REPORTDIR}

cppcheck -v --enable=all --xml -I. ./src 2>"${REPORTDIR}/${REPORTFILE}"