-
Notifications
You must be signed in to change notification settings - Fork 122
/
.astylerc
36 lines (33 loc) · 972 Bytes
/
.astylerc
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
32
33
34
35
36
##
# Why am I here?
#
# This file exists to document which settings have been used to reformat the code in general the
# last time and to somewhat describe main aspects of the code style in use. It's NOT intended to get
# applied whenever any piece of code is changed! Instead, it IS OK to not follow these settings for
# some pieces of code, if it makes those pieces more readable in the end. Some pieces of code simply
# can not be described properly using automatic formatting rules.
#
# Example invocation:
#
# astyle --project src/main/include/*.h src/main/cpp/*.cpp
# astyle --project src/test/cpp/*.h src/test/cpp/*.cpp
#
--add-braces
--align-pointer=type
--align-reference=type
--break-blocks
--break-one-line-headers
--convert-tabs
--indent=force-tab=4
--indent-after-parens
--indent-classes
--indent-col1-comments
--indent-preproc-block
--indent-preproc-define
--indent-switches
--lineend=linux
--pad-comma
--pad-header
--pad-oper
--style=break
--suffix=none