Add cppcheck tools

This commit is contained in:
Mathieu Maret 2018-01-22 11:30:59 +01:00
parent c474df4ab6
commit adcb9aebae
5 changed files with 18 additions and 0 deletions

View File

@ -38,6 +38,7 @@
cleanbrshow = remote prune origin --dry-run
contains = !sh -c 'git branch -a --contains $1' -
wdiff = diff --word-diff=color --unified=1
first = rev-list --max-parents=0 HEAD # or use log --reverse
[branch]
#New branch track remote
#autoSetupMerge = always

View File

@ -0,0 +1,2 @@
~/Sources/grabserial-1.9.3
o390pix0053% ./grabserial -v -d /dev/ttyUSB1 -m "^U-Boot 2010.06-00003-g77be133-dirty" -t -e 30

View File

@ -0,0 +1,8 @@
== generate report ==
find -name "*.c" -o -name "*.cpp" | grep -v lib | xargs cppcheck 2> repport
* Error list cppcheck --errorlist | grep -v "severity=\"style\"" | sed "s/.*msg=\"\(.*\)\".*/\1/g" | sed '/^\s*$/d' | recode xml..ascii
== more tools ==
* git pre-commit https://github.com/danmar/cppcheck/blob/master/tools/git-pre-commit-cppcheck
*

View File

@ -4,6 +4,8 @@
= Dev =
* [[Code Checker]]
* [[GCC]]
* [[cppcheck]]
* [[Serial and time]]
= Android =
* [[AndroidCamera]]

View File

@ -3,6 +3,7 @@
This repo contains a set of tools and configuration files used for development.
Especially for Android Rom development
gdb init came from : https://github.com/cyrus-and/gdb-dashboard
## Install tool
First get git submodule:
```
@ -81,3 +82,7 @@ Vim plugins are managed by vundle. So at first lunch you have to run in vim
* unrar
* unzip
* xchat
# dev tools
* cppcheck
* cppcheck git precommit https://github.com/danmar/cppcheck/blob/master/tools/git-pre-commit-cppcheck