-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
44 lines (40 loc) · 1.02 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
UseTab: Never
IndentWidth: 4
ColumnLimit: 100
---
Language: Cpp
Standard: Latest
AlignConsecutiveAssignments: AcrossComments
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: True
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: True
# AlwaysBreakAfterDefinitionReturnType: All
AlwaysBreakAfterReturnType: All
BreakBeforeBraces: Custom
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: AfterComma
BraceWrapping:
AfterEnum: true
AfterCaseLabel: False
AfterFunction: true
AfterNamespace: False
AfterStruct: true
BeforeCatch: true
BeforeElse: true
SplitEmptyFunction: False
SplitEmptyRecord: False
CompactNamespaces: True
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: True
IncludeBlocks: Preserve
IndentAccessModifiers: False
# Penalties
PenaltyBreakString: 60
PenaltyExcessCharacter: 120
PenaltyReturnTypeOnItsOwnLine: 16
PointerAlignment: Left