| 1 | # astyle -n -r "benchmark/*.h,*.cpp" "src/*.h,*.cpp" "tests/*.h,*.cpp" "tools/*.h,*.cpp" "examples/*.h,*.cpp" |
| 2 | |
| 3 | # brace style |
| 4 | --style=allman |
| 5 | |
| 6 | # tab |
| 7 | --attach-namespaces |
| 8 | --attach-extern-c |
| 9 | --attach-closing-while |
| 10 | |
| 11 | # indentation |
| 12 | --indent-preproc-define |
| 13 | --indent-col1-comments |
| 14 | --min-conditional-indent=0 |
| 15 | --max-continuation-indent=120 |
| 16 | |
| 17 | # padding |
| 18 | --pad-oper |
| 19 | --pad-comma |
| 20 | --pad-header |
| 21 | --align-pointer=type |
| 22 | --align-reference=type |
| 23 | |
| 24 | # formatting |
| 25 | --break-closing-braces |
| 26 | --attach-return-type |
| 27 | --attach-return-type-decl |
| 28 | --keep-one-line-blocks |
| 29 | --keep-one-line-statements |
| 30 | --convert-tabs |
| 31 | --max-code-length=200 |
| 32 | --mode=c |
| 33 | |
| 34 | # other |
| 35 | --lineend=linux |