Skip to content

Commit a592d97

Browse files
update from inner
1 parent a7e0b22 commit a592d97

File tree

493 files changed

+5553
-3896
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

493 files changed

+5553
-3896
lines changed

Diff for: .clang-format

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
# 语言: None Cpp Java ObjC Protp
3+
Language: Cpp
4+
#LLVM Google
5+
BasedOnStyle: Google
6+
# 语言: None Cpp Java ObjC Protp
7+
# 访问说明符的偏移(public private)
8+
AccessModifierOffset: -4
9+
# 括号之后,水平对齐参数: Align DontAlign AlwaysBreak
10+
AlignAfterOpenBracket: Align
11+
# 连续的宏
12+
# AlignConsecutiveMacros: true
13+
# 连续的赋值时,对齐所有的等号
14+
AlignConsecutiveAssignments: true
15+
# 左对齐换行(使用反斜杠换行)的反斜杠
16+
AlignEscapedNewlines: Right
17+
# # 左对齐换行(使用反斜杠换行)的反斜杠
18+
# AlignEscapedNewlinesLeft: true
19+
# 水平对齐二元和三元表达式的操作数
20+
AlignOperands: true
21+
# 允许函数声明的所有参数在放在下一行
22+
AllowAllParametersOfDeclarationOnNextLine: false
23+
# AllowAllArgumentsOnNextLine: false
24+
# 允许短的块放在同一行
25+
AllowShortBlocksOnASingleLine : false
26+
# 允许短的case标签放在同一行
27+
AllowShortCaseLabelsOnASingleLine: false
28+
# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
29+
AllowShortFunctionsOnASingleLine: Empty
30+
# 是否允许短if单行 If true, if (a) return; 可以放到同一行
31+
AllowShortIfStatementsOnASingleLine: false
32+
# 允许短的循环保持在同一行
33+
AllowShortLoopsOnASingleLine: false
34+
# 总是在定义返回类型后换行(deprecated)
35+
AlwaysBreakAfterDefinitionReturnType: None
36+
# 每行字符的限制,0表示没有限制
37+
ColumnLimit: 120
38+
# 描述具有特殊意义的注释的正则表达式,它不应该被分割为多行或以其它方式改变
39+
CommentPragmas: '^ IWYU pragma:'
40+
#指针的*的挨着哪边
41+
PointerAlignment: Right
42+
#缩进宽度
43+
IndentWidth: 4
44+
# OC block后面的缩进
45+
ObjCBlockIndentWidth: 4
46+
#tab键盘的宽度
47+
TabWidth: 4
48+
Standard: Cpp11
49+
UseTab: Never
50+
CompactNamespaces: false
51+
# 命名空间的偏移
52+
NamespaceIndentation: Inner
53+
# 命名空间的末尾注释
54+
FixNamespaceComments: true
55+
# IndentPPDirectives: BeforeHash
56+
---
57+
# 语言: None Cpp Java ObjC Protp
58+
Language: ObjC
59+
#LLVM Google
60+
BasedOnStyle: LLVM
61+
# 访问说明符的偏移(public private)
62+
AccessModifierOffset: -4
63+
# 括号之后,水平对齐参数: Align DontAlign AlwaysBreak
64+
AlignAfterOpenBracket: Align
65+
# 连续的宏
66+
# AlignConsecutiveMacros: true
67+
# 连续的赋值时,对齐所有的等号
68+
AlignConsecutiveAssignments: true
69+
# 左对齐换行(使用反斜杠换行)的反斜杠
70+
AlignEscapedNewlines: Right
71+
# # 左对齐换行(使用反斜杠换行)的反斜杠
72+
# AlignEscapedNewlinesLeft: true
73+
# 水平对齐二元和三元表达式的操作数
74+
AlignOperands: true
75+
# 允许函数声明的所有参数在放在下一行
76+
AllowAllParametersOfDeclarationOnNextLine: false
77+
# AllowAllArgumentsOnNextLine: false
78+
# 允许短的块放在同一行
79+
AllowShortBlocksOnASingleLine : false
80+
# 允许短的case标签放在同一行
81+
AllowShortCaseLabelsOnASingleLine: false
82+
# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
83+
AllowShortFunctionsOnASingleLine: Empty
84+
# 是否允许短if单行 If true, if (a) return; 可以放到同一行
85+
AllowShortIfStatementsOnASingleLine: false
86+
# 允许短的循环保持在同一行
87+
AllowShortLoopsOnASingleLine: false
88+
# 总是在定义返回类型后换行(deprecated)
89+
AlwaysBreakAfterDefinitionReturnType: None
90+
# 每行字符的限制,0表示没有限制
91+
ColumnLimit: 120
92+
# 描述具有特殊意义的注释的正则表达式,它不应该被分割为多行或以其它方式改变
93+
CommentPragmas: '^ IWYU pragma:'
94+
#指针的*的挨着哪边
95+
PointerAlignment: Right
96+
#缩进宽度
97+
IndentWidth: 4
98+
# OC block后面的缩进
99+
ObjCBlockIndentWidth: 4
100+
#tab键盘的宽度
101+
TabWidth: 4
102+
Standard: Cpp11
103+
UseTab: Never
104+
CompactNamespaces: false
105+
# 命名空间的偏移
106+
NamespaceIndentation: Inner
107+
# 命名空间的末尾注释
108+
FixNamespaceComments: true
109+
# IndentPPDirectives: BeforeHash
110+
---
111+
Language: Proto
112+
#.proto文件不格式化
113+
DisableFormat: true
114+
...

0 commit comments

Comments
 (0)