New custom "make cppcheck" target: run a cppcheck with usual args
This commit is contained in:
parent
7d986844c4
commit
c958201148
1 changed files with 12 additions and 0 deletions
12
Makefile.am
12
Makefile.am
|
@ -36,3 +36,15 @@ style:
|
|||
--keep-one-line-blocks --max-instatement-indent=60 \
|
||||
--brackets=linux --pad-oper --unpad-paren --pad-header \
|
||||
--align-pointer=name {} \;
|
||||
|
||||
cppcheck:
|
||||
cppcheck --quiet \
|
||||
-I include -I libnfc -I libnfc/buses -I libnfc/chips -I libnfc/drivers \
|
||||
--check-config .
|
||||
cppcheck --quiet --enable=all --std=posix --std=c99 \
|
||||
-I include -I libnfc -I libnfc/buses -I libnfc/chips -I libnfc/drivers \
|
||||
-DLOG -D__linux__ \
|
||||
-DDRIVER_PN53X_USB_ENABLED -DDRIVER_ACR122_PCSC_ENABLED \
|
||||
-DDRIVER_ACR122_USB_ENABLED -DDRIVER_ACR122S_ENABLED \
|
||||
-DDRIVER_PN532_UART_ENABLED -DDRIVER_ARYGON_ENABLED \
|
||||
--force --inconclusive .
|
||||
|
|
Loading…
Reference in a new issue