-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.astylerc
46 lines (32 loc) · 1.1 KB
/
.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
37
38
39
40
41
42
43
44
45
46
# Copyright 2020, the Aether Development Team (see doc/dev_team.md for members)
# Full license can be found in License.md
#
# This is the default astyle file for the Aether project.
# braces on the same lines as conditions etc (attached):
--style=google
# Indents are 2 spaces:
-s2
# Comments should be indented:
--indent-col1-comments
# Set the maximum of # spaces to indent a continuation line:
--max-continuation-indent=60
# Pad empty lines around header blocks (e.g. 'if', 'for', 'while'...):
--break-blocks
# Add spaces around math operators:
--pad-oper
# Add a space after commas:
--pad-comma
# Insert space padding between a cond/loop statement and the following paren:
--pad-header
# Break one line cond/loops from a statement residing on the same line:
--break-one-line-headers
# In one line statements, don't bother with braces:
--remove-braces
# Have return type be on the same line as the function name:
--attach-return-type
# Change tabs to spaces
--convert-tabs
# Max line length:
--max-code-length=80
# Leave the && or || on the preceeding line, not the start of the next line:
--break-after-logical