-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.clang-tidy
63 lines (61 loc) · 2.77 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
Checks: '-*,
readability-*,
modernize-*,
cppcoreguidelines-init-variables,
-modernize-use-trailing-return-type,
-modernize-use-nodiscard,
-modernize-use-emplace,
-modernize-return-braced-init-list,
-readability-magic-numbers,
-readability-qualified-auto,
-readability-function-cognitive-complexity,
-readability-convert-member-functions-to-static,
-readability-const-return-type,
-readability-use-anyofallof,
-readability-redundant-string-init,
-readability-identifier-length,
-readability-named-parameter,
-readability-suspicious-call-argument'
# readability-named-parameter disabled because: C++ Core Guidelines F.9
WarningsAsErrors: '*'
CheckOptions:
- key: readability-braces-around-statements.ShortStatementLines
value: 4
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.LocalVariableCase
value: lower_case
- key: readability-identifier-naming.MemberCase
value: lower_case
# underscore suffix for static and protected/private class members.
# Public members (especially in structs) should not have an underscore suffix.
- key: readability-identifier-naming.ClassMemberSuffix # static
value: _
- key: readability-identifier-naming.ProtectedMemberSuffix
value: _
- key: readability-identifier-naming.PrivateMemberSuffix
value: _
- key: readability-identifier-naming.ClassMethodCase
value: camelBack
- key: readability-identifier-naming.FunctionCase
value: camelBack
- key: readability-identifier-naming.ConstexprVariableCase
value: CamelCase
- key: readability-identifier-naming.ConstexprVariablePrefix
value: k
- key: readability-identifier-naming.GlobalConstantCase
value: CamelCase
- key: readability-identifier-naming.GlobalConstantPrefix
value: k
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
value: 1
- key: readability-identifier-length.MinimumVariableNameLength
value: 2
- key: readability-identifier-length.MinimumParameterNameLength
value: 2
- key: readability-identifier-length.IgnoredParameterNames
value: ^[nK]$
- key: readability-identifier-naming.EnumConstantCase
value: CamelCase
- key: readability-identifier-naming.EnumConstantPrefix
value: k