mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 16:56:25 +08:00
moving astyle options into astyle options file, adding sublime settings for astyle formatter plugin
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
indent=force-tab=8
|
||||
style=linux
|
||||
indent-preprocessor
|
||||
indent-cases
|
||||
break-blocks=all
|
||||
pad-oper
|
||||
pad-header
|
||||
unpad-paren
|
||||
keep-one-line-blocks
|
||||
keep-one-line-statements
|
||||
align-pointer=name
|
||||
align-reference=name
|
||||
-n #--suffix=none
|
||||
ignore-exclude-errors-x
|
||||
lineend=linux
|
||||
exclude=EASTL
|
||||
add-brackets
|
||||
max-code-length=120
|
||||
+2
-18
@@ -1,22 +1,6 @@
|
||||
#!/bin/sh
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
astyle \
|
||||
--style=linux \
|
||||
--indent=force-tab=8 \
|
||||
--indent-cases \
|
||||
--indent-preprocessor \
|
||||
--break-blocks=all \
|
||||
--pad-oper \
|
||||
--pad-header \
|
||||
--unpad-paren \
|
||||
--keep-one-line-blocks \
|
||||
--keep-one-line-statements \
|
||||
--align-pointer=name \
|
||||
--align-reference=name \
|
||||
--suffix=none \
|
||||
--ignore-exclude-errors-x \
|
||||
--lineend=linux \
|
||||
--exclude=EASTL \
|
||||
--add-brackets \
|
||||
--max-code-length=120 \
|
||||
--options=$DIR/astylerc \
|
||||
--preserve-date \
|
||||
$*
|
||||
|
||||
Reference in New Issue
Block a user