-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
54 lines (48 loc) · 1.53 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
---
### Configured via: https://zed0.co.uk/clang-format-configurator/
### Documentation: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
AlignEscapedNewlines: Left
AllowAllArgumentsOnNextLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: 'Yes'
BinPackParameters: 'false'
BreakBeforeBraces: Linux
ColumnLimit: '100'
IncludeBlocks: Regroup
### Settings for spacing
PointerAlignment: Left
SpaceAfterCStyleCast: 'false'
SpaceAfterTemplateKeyword: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeCpp11BracedList: 'true'
SpaceBeforeCtorInitializerColon: 'true'
SpaceBeforeInheritanceColon: 'true'
Cpp11BracedListStyle: 'false'
### Indentation Settings
CompactNamespaces: 'false'
ContinuationIndentWidth: '4'
IndentWidth: '4'
UseTab: Never
IndentPPDirectives: BeforeHash
NamespaceIndentation: Inner
### Comment Settings
AlignTrailingComments: 'true'
FixNamespaceComments: 'true'
ReflowComments: 'true'
### Control Block Settings
AllowShortLoopsOnASingleLine: 'false'
AllowShortBlocksOnASingleLine: 'true'
AllowShortIfStatementsOnASingleLine: 'false'
IndentCaseLabels: 'true'
BreakBeforeTernaryOperators: 'true'
### Class Access Modifier Settings
EmptyLineBeforeAccessModifier: 'Always'
EmptyLineAfterAccessModifier: 'Never'
# IndentAccessModifiers: 'true'
AccessModifierOffset: -4
### Class formatting settings
BreakConstructorInitializers: AfterColon
AllowAllConstructorInitializersOnNextLine: 'true'