summaryrefslogtreecommitdiff
path: root/json4cpp/tools/astyle/.astylerc
blob: 580a3fca50ea4d68f94be13583ee4bb31ba3bba6 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Configuration for Artistic Style
# see https://astyle.sourceforge.net/astyle.html

#######################
# Brace Style Options #
#######################

# use Allman style for braces
--style=allman

###############
# Tab Options #
###############

# indent using 4 spaces
--indent=spaces=4

#######################
# Indentation Options #
#######################

# indent access modifiers one half indent
--indent-modifiers

# indent switch cases to the switch block
--indent-switches

# indent preprocessor blocks
--indent-preproc-block

# indent preprocessor defines
--indent-preproc-define

# indent C++ comments
--indent-col1-comments

###################
# Padding Options #
###################

# insert space padding around operators
--pad-oper

# insert space between if/for/while... and the following parentheses
--pad-header

# attach the pointer to the variable type (left)
--align-pointer=type

# attach the reference to the variable type (left)
--align-reference=type

######################
# Formatting Options #
######################

# add braces to unbraced one line conditional statements
--add-braces

# convert tabs to spaces
--convert-tabs

# closes whitespace between the ending angle brackets of template definitions
--close-templates

#################
# Other Options #
#################

# do not create backup files
--suffix=none

# preserve the original file date
--preserve-date

# display only the files that have been formatted
--formatted

# for the linux (LF) line end style
--lineend=linux