Blame view

script/generate_cppcheck_report.sh 313 Bytes
ea99df80   Benjamin Renard   Add script to gen...
1
2
#!/bin/bash

ea99df80   Benjamin Renard   Add script to gen...
3
4
SCRIPT=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPT")
6c8de11c   Benjamin Renard   Remove hard coded...
5
6
7

. ${SCRIPTDIR}/amda-kernel-env

ea99df80   Benjamin Renard   Add script to gen...
8
9
10
11
12
13
14
15
PROJECTDIR=${SCRIPTDIR}/..
REPORTDIR=${PROJECTDIR}/build/report
REPORTFILE=cppcheck-report.xml

cd ${PROJECTDIR}

mkdir -p ${REPORTDIR}

6c8de11c   Benjamin Renard   Remove hard coded...
16
cppcheck -v --enable=all --xml -I. ./src 2>"${REPORTDIR}/${REPORTFILE}"