forked from leejayID/RuntimeDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
56 lines (38 loc) · 1.03 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
55
56
# 基础样式
BasedOnStyle: LLVM
# 缩进宽度
IndentWidth: 4
# 花括号的换行方式(Attach,Stroustrup, Allman-所有大括号都另起一行)
BreakBeforeBraces: Allman
# 支持一行的if
AllowShortIfStatementsOnASingleLine: false
# 是否允许循环单行
AllowShortLoopsOnASingleLine: false
# switch的case缩进
IndentCaseLabels: true
# 针对OC的block的缩进宽度
ObjCBlockIndentWidth: 4
# 针对OC,属性名后加空格
ObjCSpaceAfterProperty: true
# 每行字符的长度
ColumnLimit: 0
# switch的case缩进
IndentCaseLabels: true
# 注释对齐
AlignTrailingComments: true
# 括号后加空格
SpaceAfterCStyleCast: true
# 不在小括号里加空格
SpacesInParentheses: false
# 不在中括号里加空格
SpacesInSquareBrackets: false
# 指针对准
DerivePointerAlignment: true
# @[]里面两边空格,默认true
SpacesInContainerLiterals: false
# 赋值前(=)的空格 默认true
#SpaceBeforeAssignmentOperators: true
# 指针的位置
PointerAlignment: Right
# 最大空的行数
MaxEmptyLinesToKeep: 1