-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
45 lines (37 loc) · 1.12 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
BasedOnStyle: LLVM
IndentWidth: 8
#UseTab: UT_AlignWithSpaces # available in release later than 9
#UseTab: ForContinuationAndIndentation
UseTab: ForIndentation
BreakBeforeBraces: Custom
BraceWrapping:
AfterNamespace: false
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
#ColumnLimit: 110
ColumnLimit: 100
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AccessModifierOffset: -8 # It has to be equal to the tab size
NamespaceIndentation: None
PointerAlignment: Left
AlwaysBreakAfterReturnType: None
SortIncludes: false
#AlwaysBreakAfterReturnType: All
AlwaysBreakAfterReturnType: TopLevel
BreakConstructorInitializers: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: true
SpaceBeforeCtorInitializerColon: false
BinPackParameters: true
BinPackArguments: true
AllowAllArgumentsOnNextLine: true
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Always
PenaltyReturnTypeOnItsOwnLine: 0
AlignEscapedNewlines: Left
ContinuationIndentWidth: 8
# Comments
#SpacesBeforeTrailingComments: 2
AlignTrailingComments: true
ReflowComments: true