forked from paparazzi/paparazzi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You need to have astyle installed. Run with ./fix_code_style.sh <FILENAME>
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
astyle \ | ||
--style=kr \ | ||
--indent=spaces=2 \ | ||
--convert-tabs \ | ||
--indent-switches \ | ||
--indent-preprocessor \ | ||
--pad-oper \ | ||
--pad-header \ | ||
--unpad-paren \ | ||
--keep-one-line-blocks \ | ||
--keep-one-line-statements \ | ||
--align-pointer=name \ | ||
--suffix=none \ | ||
--lineend=linux \ | ||
--add-brackets \ | ||
$* | ||
|
||
# options that don't seem to be supported by astyle 2.01 | ||
# --attach-extern-c --align-reference=name --ignore-exclude-errors-x --max-code-length=120 |