File: run_cppcheck.sh

package info (click to toggle)
alien-arena 7.71.7%2Bdfsg-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 175,388 kB
  • sloc: xml: 297,981; ansic: 117,017; cpp: 52,844; sh: 4,436; cs: 859; makefile: 656; ruby: 438; perl: 71
file content (14 lines) | stat: -rwxr-xr-x 488 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

# run_cppcheck.sh: a simple script to run cppcheck on all the source code.
# Note: older versions of cppcheck can have false positives. I recommend 
# installing the latest version if you can.

PREPROC_FLAGS="-I. -I../config/ -I./game -DHAVE_CONFIG_H -U__cplusplus"
OUTPUT_FLAGS="-v"
PERF_FLAGS="-j 4 --max-configs=6"
DO_CPPCHECK="cppcheck $PREPROC_FLAGS $OUTPUT_FLAGS $PERF_FLAGS"

TESTED_FILES="game ref_gl unix server qcommon null client win32"

$DO_CPPCHECK $TESTED_FILES