-
Notifications
You must be signed in to change notification settings - Fork 23
/
.clang-tidy
137 lines (119 loc) · 3.96 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Checks: >
*,
-altera-id-dependent-backward-branch,
-altera-struct-pack-align,
-altera-unroll-loops,
-cert-err58-cpp,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-slicing,
-cppcoreguidelines-special-member-functions,
-fuchsia-*,
-google-build-using-namespace,
-hicpp-avoid-goto,
-hicpp-no-array-decay,
-hicpp-special-member-functions,
-hicpp-vararg,
-llvm-header-guard,
-llvmlibc-*,
-modernize-use-trailing-return-type,
-readability-avoid-const-params-in-decls,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-uppercase-literal-suffix,
CheckOptions:
# class
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.ClassPrefix
value: "T"
- key: readability-identifier-naming.ClassConstantCase
value: CamelCase
- key: readability-identifier-naming.ConstantMemberCase
value: CamelCase
- key: readability-identifier-naming.MemberCase
value: CamelCase
- key: readability-identifier-naming.MemberSuffix
value: ""
- key: readability-identifier-naming.MethodCase
value: CamelCase
- key: readability-identifier-naming.PublicMethodIgnoredRegexp
value: "(begin|end|empty|size|ysize|front|back)"
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
# abstract class
- key: readability-identifier-naming.AbstractClassCase
value: CamelCase
- key: readability-identifier-naming.AbstractClassPrefix
value: "I"
# struct
- key: readability-identifier-naming.StructCase
value: CamelCase
- key: readability-identifier-naming.StructPrefix
value: "T"
# enum
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.EnumPrefix
value: "E"
- key: readability-identifier-naming.EnumConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.ScopedEnumCase
value: CamelCase
- key: readability-identifier-naming.ScopedEnumPrefix
value: "E"
- key: readability-identifier-naming.ScopedEnumConstantCase
value: CamelCase
# namespace
- key: readability-identifier-naming.NamespaceCase
value: CamelCase
- key: readability-identifier-naming.NamespacePrefix
value: "N"
# function
- key: readability-identifier-naming.FunctionCase
value: CamelCase
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: "(__debugbreak)"
# param
- key: readability-identifier-naming.ParameterCase
value: camelBack
- key: readability-identifier-naming.ConstantParameterCase
value: camelBack
# variable and constant
- key: readability-identifier-naming.ConstantCase
value: camelBack
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.StaticVariableCase
value: CamelCase
- key: readability-identifier-naming.StaticConstantCase
value: CamelCase
- key: readability-identifier-naming.ConstexprVariableCase
value: CamelCase
# template
- key: readability-identifier-naming.TemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.TemplateParameterPrefix
value: "T"
- key: readability-identifier-naming.TemplateParameterIgnoredRegexp
value: "T|U|F"
# union
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.UnionPrefix
value: "T"
# using
- key: readability-identifier-naming.TypeAliasCase
value: CamelCase
# macro
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
# misc
- key: bugprone-easily-swappable-parameters.MinimumLength
value: 4
- key: cppcoreguidelines-avoid-do-while.IgnoreMacros
value: true
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true