-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy path.clang-format
55 lines (43 loc) · 1.1 KB
/
.clang-format
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
# Style for Goxel.
#
# This is still a work in progress, and shouldn't be used systematically yet.
# Unfortunately I couldn't make it work with the style I like, so for the
# moment I disable all alignments.
BasedOnStyle: LLVM
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse
Cpp11BracedListStyle: false
SpacesInContainerLiterals: false
ColumnLimit: 79
PenaltyExcessCharacter: 1000
# Never use tabs for indentation.
UseTab: Never
TabWidth: 4
IndentWidth: 4
ContinuationIndentWidth: 8
BracedInitializerIndentWidth: 4
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: MultiLine
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
BinPackParameters: false
AllowAllArgumentsOnNextLine: true
SortIncludes: true
PenaltyReturnTypeOnItsOwnLine: 10000
PenaltyBreakAssignment: 100
PenaltyIndentedWhitespace: 2
ForEachMacros:
- DL_FOREACH
- DL_FOREACH
- DL_FOREACH2
- DL_FOREACH_SAFE
- DL_FOREACH_SAFE2
- DL_FOREACH_REVERSE