-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
40 lines (35 loc) · 914 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
38
39
40
BasedOnStyle: Google
UseTab: Never
IndentWidth: 4
TabWidth: 4
ColumnLimit: 120
---
Language: Cpp
Standard: c++20
# indentation
NamespaceIndentation: None
AccessModifierOffset: -4
ContinuationIndentWidth: 4
IndentPPDirectives: BeforeHash
# pointer/reference alignment
DerivePointerAlignment: false
PointerAlignment: Left
ReferenceAlignment: Left
# line breaks
BreakBeforeBraces: Linux
AlwaysBreakTemplateDeclarations: Yes
AllowShortLoopsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
MaxEmptyLinesToKeep: 2
# arguments & parameters
PackConstructorInitializers: CurrentLine
BinPackArguments: false
BinPackParameters: false
AlignAfterOpenBracket: AlwaysBreak
AllowAllParametersOfDeclarationOnNextLine: true
AllowAllArgumentsOnNextLine: true
# includes
IncludeBlocks: Preserve