Codebase list ponyprog / upstream/3.0.0_rc0+ds cppcheck.sh
upstream/3.0.0_rc0+ds

Tree @upstream/3.0.0_rc0+ds (Download .tar.gz)

cppcheck.sh @upstream/3.0.0_rc0+dsraw · history · blame

#!/bin/bash

CPPCHCK=`type -p cppcheck`

if [ ! -f "$CPPCHCK" ]; then
   # not found exit
   echo "please install cppcheck and restart this script"
   exit 0
fi

COUNT=$(cat /proc/cpuinfo | grep 'model name' | sed -e 's/.*: //' | wc -l)
echo "number of detected CPUs =" $COUNT

#cppcheck -j $COUNT --force --inline-suppr --enable=warning . 2>errors.txt
cppcheck -j $COUNT --force --enable=style . 2>cppreport.txt