-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-tidy
114 lines (100 loc) · 3.21 KB
/
.clang-tidy
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
Checks: "-*\
,clang-*\
,concurrency-*\
,performance-*\
,portability-*\
,readability-*\
,modernize-*\
,-readability-braces-around-statements\
,-readability-identifier-length\
,-readability-magic-numbers\
,-readability-redundant-access-specifiers\
,-readability-implicit-bool-conversion\
,-readability-qualified-auto\
,-modernize-use-trailing-return-type\
,-modernize-use-nodiscard\
,-modernize-avoid-c-arrays"
CheckOptions:
# Class
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.ClassIgnoredRegexp
value: "^_|_$"
- key: readability-identifier-naming.ClassMethodIgnoredRegexp
value: "^get_|^set_"
# ClassMember
- key: readability-identifier-naming.ClassMemberCase
value: CamelCase
- key: readability-identifier-naming.ClassMemberPrefix
value: g
- key: readability-identifier-naming.ClassMemberIgnoredRegexp
value: "^_|_$"
# Constant
- key: readability-identifier-naming.ConstantCase
value: CamelCase
- key: readability-identifier-naming.ConstantPrefix
value: k
- key: readability-identifier-naming.ConstantIgnoredRegexp
value: "^_|_$"
# Enum
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.EnumIgnoredRegexp
value: "^_|_$"
# Function
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: "^_|_$"
# GlobalVariable
- key: readability-identifier-naming.StaticVariableCase
value: CamelCase
- key: readability-identifier-naming.GlobalVariablePrefix
value: g
- key: readability-identifier-naming.GlobalVariableIgnoredRegexp
value: "^_|_$"
# Macro
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
- key: readability-identifier-naming.MacroDefinitionIgnoredRegexp
value: "^_|_$|self"
# Member
- key: readability-identifier-naming.MemberCase
value: CamelCase
- key: readability-identifier-naming.MemberPrefix
value: m
- key: readability-identifier-naming.MemberIgnoredRegexp
value: "^_|_$"
# Method
- key: readability-identifier-naming.MethodCase
value: lower_case
- key: readability-identifier-naming.MethodIgnoredRegexp
value: "^_|_$|^get_|^set_|^s_|^w_"
# Namespace
- key: readability-identifier-naming.NamespaceCase
value: Camel_Snake_Case
- key: readability-identifier-naming.NamespaceIgnoredRegexp
value: "^_|_$|err"
# Parameter
- key: readability-identifier-naming.ParameterCase
value: camelBack
- key: readability-identifier-naming.ParameterIgnoredRegexp
value: "^_|_$"
# StaticVariable
- key: readability-identifier-naming.StaticVariableCase
value: CamelCase
- key: readability-identifier-naming.StaticVariablePrefix
value: s
- key: readability-identifier-naming.StaticVariableIgnoredRegexp
value: "^_|_$"
# Union
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.UnionIgnoredRegexp
value: "^_|_$"
# Variable
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.VariableIgnoredRegexp
value: "^_|_$"