cppcheck.sh 315 B

1234567891011
  1. #!/bin/sh
  2. num_cores=$(grep -c ^processor /proc/cpuinfo)
  3. if [ -z "$num_cores" ]; then
  4. echo "num_cores=? WTF?"
  5. num_cores=4
  6. fi
  7. cppcheck . --error-exitcode=1 --quiet --enable=all --platform=unix64 --std=c99 --std=c++11 \
  8. --inline-suppr --force --template=gcc -j$num_cores \
  9. -Iinclude $@