Added a default astyle options file and a linux script to run it.
This commit is contained in:
parent
977f6aaf15
commit
5c499484a8
6
Tools/CodeStyle/ardupilot-astyle.sh
Executable file
6
Tools/CodeStyle/ardupilot-astyle.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
DIR=$(dirname $(readlink -f $0))
|
||||
|
||||
astyle --options="${DIR}"/astylerc $*
|
||||
|
9
Tools/CodeStyle/astylerc
Normal file
9
Tools/CodeStyle/astylerc
Normal file
@ -0,0 +1,9 @@
|
||||
style=stroustrup
|
||||
add-brackets
|
||||
indent=spaces=4
|
||||
indent-col1-comments
|
||||
min-conditional-indent=0
|
||||
suffix=none
|
||||
lineend=linux
|
||||
unpad-paren
|
||||
pad-header
|
Loading…
Reference in New Issue
Block a user