astyle-options.txt 973 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# OAI is using a style that is similar to the Google style
--style=google
# long options can be written without the preceding '--'
# Convert tabs to spaces
convert-tabs
# Indentation is 2 spaces
indent=spaces=2
# Indent 'switch' blocks so that the 'case X:' statements are indented in the switch block. 
indent-switches
10 11 12 13
# Indent preprocessor blocks at bracket level 0.
indent-preproc-block
# Indent multi-line preprocessor #define statements.
indent-preproc-define
14 15 16 17 18 19 20
# Indent C++ comments beginning in column one.
indent-col1-comments
# Pad empty lines around header blocks
break-blocks
delete-empty-lines
# Attach a pointer or reference operator (*, &, or ^) to the variable name (right)
align-pointer=name
21
# The code line length is 200 characters/columns (this is the maximum allowed by astyle)
22
max-code-length=200
23
# If the line contains logical conditionals they will be placed first on the new line.
24
break-after-logical
25
# Force use of the linux end of line
26
lineend=linux