xref: /spdk/.astylerc (revision ac1818748ce1171b87b5af552b8d58b0d584316a)
1# Bracket Style
2style=kr # K&R brackets
3j # Add braces to one-line conditional statements
4keep-one-line-blocks # Don't break blocks that are on one line
5
6# Indentation
7indent=force-tab=8 # Use tabs for indentation, spaces for minor alignment
8min-conditional-indent=0
9
10# Padding
11unpad-paren # Remove all spaces with parens that aren't requested below
12pad-oper # Put spaces around operators
13pad-header # Put spaces between if/while/for etc. and the first paren
14
15# Pointers
16align-pointer=name # Align the * next to the variable name
17
18# Line wrapping
19max-code-length=100 # 100 character line limit
20break-after-logical # For if statements, wrap to the next line after logical operator
21
22# Line endings
23lineend=linux # LF line endings
24
25# General options
26suffix=none
27formatted
28