mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add uncrustify config and code formatting script.
This commit is contained in:
parent
28569b91cf
commit
2199a776ad
9
tools/codeformat.sh
Executable file
9
tools/codeformat.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
CFG_PATH=`dirname $0`/uncrustify.cfg
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "usage `basename $0` file.(h/c)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
uncrustify -c ${CFG_PATH} --no-backup -lC $1
|
||||
3214
tools/uncrustify.cfg
Normal file
3214
tools/uncrustify.cfg
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user