-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
38 lines (35 loc) · 962 Bytes
/
.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
---
BasedOnStyle: Google
AccessModifierOffset: -2
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AlwaysBreakBeforeMultilineStrings: false
BreakConstructorInitializersBeforeComma: true
BinPackParameters: true
ColumnLimit: 100
PointerBindsToType: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakFirstLessLess: 1000
PenaltyExcessCharacter: 1000
Cpp11BracedListStyle: true
IndentWidth: 4
TabWidth: 4
SpaceAfterControlStatementKeyword: true
ReflowComments: false
# Configure each individual brace in BraceWrapping
BreakBeforeBraces: Custom
# Control of individual brace wrapping cases
BraceWrapping: {
AfterClass: 'true'
AfterControlStatement: 'true'
AfterEnum : 'true'
AfterFunction : 'true'
AfterNamespace : 'true'
AfterStruct : 'true'
AfterUnion : 'true'
BeforeCatch : 'true'
BeforeElse : 'true'
IndentBraces : 'false'
}
...