-
Notifications
You must be signed in to change notification settings - Fork 0
/
_clang-format
42 lines (40 loc) · 1.83 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
# BasedOnStyle : LVM
# Language : Cpp
AccessModifierOffset : -4
AlignTrailingComments : true
AlignConsecutiveAssignments : true
AlignOperands : true
# AlignConsecutiveDeclarations : true
AllowShortBlocksOnASingleLine : false
AllowShortFunctionsOnASingleLine : Inline
AllowShortIfStatementsOnASingleLine : false
AllowShortLoopsOnASingleLine : false
AlwaysBreakTemplateDeclarations : true
BinPackParameters : false
BreakConstructorInitializersBeforeComma : true
ColumnLimit : 100
#ColumnLimit : 127
ConstructorInitializerAllOnOneLineOrOnePerLine : false
ConstructorInitializerIndentWidth : 0
Cpp11BracedListStyle : true
IndentCaseLabels : true
IndentWidth : 4
PointerBindsToType : true
Standard : Cpp11
TabWidth : 4
UseTab : Never
# Configure each individual brace in BraceWrapping
BreakBeforeBraces: 'Custom'
# Control of individual brace wrapping cases
BraceWrapping: {
AfterClass: 'true'
AfterControlStatement: 'true'
AfterEnum : 'true'
AfterFunction : 'true'
AfterNamespace : 'false'
AfterStruct : 'true'
AfterUnion : 'true'
BeforeCatch : 'false'
BeforeElse : 'true'
IndentBraces : 'false'
}