forked from open-ephys/plugin-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astyle.options
70 lines (53 loc) · 2.14 KB
/
astyle.options
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
# Custom options file for astyle (astyle.sourceforge.net), a source code
# formatter for C/C++ (and some other languages).
#
# Since it's clunky to use this program on windows and mac (it's a commandline
# program, but there's no installer), the real point is just to be able to
# enforce some general sanity on the codebase every once in a while. That
# said, the general prescription below will actually work on all available
# platforms, with the caveat that on windows and mac you might have to figure
# in the actual path to the astyle binary.
#
# usage:
# cd Source
# astyle --options="../astyle.options" "./*"
#
# The above commands will format the entire source tree using a style which
# mostly conforms to that of the Juce library
# (www.juce.com/wiki/index.php/Coding_Standards).
#
# Some documentation of the options is provided here for convenience. For full
# options documentation, go to astyle.sourceforge.net/astyle.html.
# No backup file suffix, i.e. don't back up the files, since this would just
# make a mess of the source tree. If astyle screws up, we'll rely on git.
suffix=none
recursive
# This is the _bracket_ style (not affecting indentation, for example.)
style=allman
# Just to be clear (even though it's the default): indentation uses 4 spaces.
indent=spaces=4
indent-switches
indent-cases
# Indent multiline #defines.
indent-preprocessor
# Comments starting in the first column of text are not special.
indent-col1-comments
# Conditionals inside if, while, for, etc., are not indented if they have to
# break a line.
min-conditional-indent=0
# Don't limit the size of an in-statement indent.
# Example:
# reallyLongFunctionName(foo,
# --don't limit this---->bar);
max-instatement-indent=80
# Insert space padding around the first parenthesis in a series on the outside only.
# Parentheses that are empty will not be padded.
--pad-first-paren-out
# insert a space after if, while, for, etc.
--pad-header
# Insert space padding around operators.
--pad-oper
# Pad empty lines around header blocks (e.g. 'if', 'for', 'while'...).
--break-blocks
# Pointer/reference operators go next to the type (on the left).
align-pointer=type