Руслан Урядинский / libuavcan

Dependents:   UAVCAN UAVCAN_Subscriber

libuavcan_drivers/linux/cppcheck.sh

Committer:
RuslanUrya
Date:
2018-04-14
Revision:
0:dfe6edabb8ec

File content as of revision 0:dfe6edabb8ec:

#!/bin/sh

num_cores=$(grep -c ^processor /proc/cpuinfo)
if [ -z "$num_cores" ]; then
    echo "num_cores=? WTF?"
    num_cores=4
fi

cppcheck . --error-exitcode=1 --quiet --enable=all --platform=unix64 --std=c99 --std=c++11 \
           --inline-suppr --force --template=gcc -j$num_cores \
           -Iinclude $@