forked from yangyangFeng/TTPatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
41 lines (39 loc) · 1.12 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
#
# Reference: https://releases.llvm.org/11.0.0/tools/clang/docs/ClangFormatStyleOptions.html
#
# Created by eddiecmchen on 2020/02/07
#
BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: true
SpacesBeforeTrailingComments: 2
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine : false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
ColumnLimit: 150
CommentPragmas: '^ IWYU pragma:'
PointerAlignment: Right
IndentWidth: 4
MaxEmptyLinesToKeep: 1
#ObjCBreakBeforeNestedBlockParam: false
ObjCSpaceAfterProperty: true
ObjCBlockIndentWidth: 4
SpacesInSquareBrackets: false
SpacesInParentheses : false
SpaceBeforeAssignmentOperators: true
SpacesInContainerLiterals: false
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
SpaceAfterCStyleCast: false
SortIncludes: false
IndentCaseLabels: true
BreakBeforeBraces: Attach
TabWidth: 4
UseTab: Never