-
Notifications
You must be signed in to change notification settings - Fork 29
/
.clang-format
53 lines (53 loc) · 1.47 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
# Clang-format v14 based configuration
---
BasedOnStyle: Google
Language: Cpp
Standard: c++17
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine : None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: All
BinPackParameters: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma
ColumnLimit: 100
PackConstructorInitializers: BinPack
IndentCaseLabels : false
IndentWidth: 4
PenaltyBreakComment: 60
SortIncludes: Never
SortUsingDeclarations: false
SpacesInContainerLiterals: false
SpacesInAngles: Always
SpacesInParentheses: true
SpaceInEmptyParentheses: true
SpacesInSquareBrackets: true
SpaceInEmptyBlock: false
TabWidth: 4
Cpp11BracedListStyle: false
SpaceBeforeCpp11BracedList: false
SpacesInCStyleCastParentheses: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
...