-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
35 lines (35 loc) · 975 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
---
# We'll use defaults from the LLVM style, but with 4 columns indentation.
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
# Force pointers to the type for C++.
AccessModifierOffset: -4
IndentAccessModifiers: false
DerivePointerAlignment: false
PointerAlignment: Left
AlignAfterOpenBracket: AlwaysBreak
BinPackParameters: false
BinPackArguments: false
AlignOperands: true
UseTab: Never
IndentWidth: 4
ColumnLimit: 120
FixNamespaceComments: true
IncludeBlocks: Regroup
IndentCaseLabels: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
SortIncludes: true
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
BreakBeforeBraces: WebKit
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakAfterDefinitionReturnType: false
ContinuationIndentWidth: 4
PenaltyBreakAssignment: 100000
PenaltyBreakBeforeFirstCallParameter: 0
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false