-
Notifications
You must be signed in to change notification settings - Fork 96
/
fair.astyle
31 lines (23 loc) · 955 Bytes
/
fair.astyle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# setup of the default options used for the fairbase classes
# to use this option "astyle --options=fair.astyle <infile>"
# bracket-style is linux
# Break brackets from namespace, class, and function definitions,
# but attach brackets to statements within a function
--brackets=linux
# indent is 2 spaces
--indent=spaces=2
# convert all tabs into spaces
--convert-tabs
# Add brackets to unbracketed one line conditional statements
--add-brackets
# Don't break one-line blocks.
--keep-one-line-blocks
# Force use of the linux (LF) line end style.
--lineend=linux
# Indent 'class' and 'struct' blocks so that the blocks
# 'public:', 'protected:' and 'private:' are indented.
# The struct blocks are indented only if an access modifier
# is declared somewhere in the struct. The entire block is indented.
--indent-classes
# Attach a pointer or reference operator (* or &) to the variable type.
--align-pointer=type