-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
executable file
·42 lines (39 loc) · 1.38 KB
/
.clang-tidy
File metadata and controls
executable file
·42 lines (39 loc) · 1.38 KB
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
Checks: 'readability-identifier-naming'
CheckOptions:
# ------------------- 变量命名规则
# 变量小写
- key: readability-identifier-naming.VariableCase
value: lower_case
# 成员变量小写
- key: readability-identifier-naming.MemberCase
value: lower_case
# 私有成员变量小写
- key: readability-identifier-naming.PrivateMemberCase
value: lower_case
# 私有成员变量小写,后缀加‘_’
- key: readability-identifier-naming.PrivateMemberSuffix
value: _
# ------------------- 类型,函数命名规则
# 类名称驼峰
- key: readability-identifier-naming.ClassCase
value: CamelCase
# 结构体名称驼峰
- key: readability-identifier-naming.StructCase
value: CamelCase
# 枚举类型名称驼峰
- key: readability-identifier-naming.EnumCase
value: CamelCase
# 函数名称驼峰
- key: readability-identifier-naming.FunctionCase
value: CamelCase
# 宏名称全大写
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
# 命名空间小写
- key: readability-identifier-naming.NamespaceCase
value: lower_case
# ------------------ 命名空间规则
# llvmlibc-implementation-in-namespace
# ------------------- 其他规则
# google-explicit-constructor 隐式类型转换
# modernize-use-override 检查到final或overrider修饰的函数是否有virtual修饰