Override cppcheck library & platform options (#691)

* Using LIBRARY=[avr|gnu] git cppcheck ... will set the command
   line library= to the value
 * Using PLATFORM=[avr.xml|unix32.xml] git cppcheck ... will set
   the command line platform= to the value
 * Corrected logical if error when bootstapping a pristine repo

References #672
This commit is contained in:
Bruce Lacey
2016-12-13 00:26:11 +01:00
committed by Patrick Fallberg
parent 707442b257
commit 4753c1ec3d
3 changed files with 21 additions and 4 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ OPTIONS="--quiet \
--error-exitcode=1 \
--force \
--enable=style,information \
--library=avr \
--platform="${TOOLCONFIG}"/avr.xml \
--library=${LIBRARY:-avr} \
--platform="${TOOLCONFIG}"/${PLATFORM:-avr.xml} \
--includes-file="${TOOLCONFIG}"/includes.cfg \
--suppressions-list="${TOOLCONFIG}"/suppressions.cfg"