-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
79 lines (72 loc) · 2.18 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
Checks: >
-*, # Disable all checks by default
bugprone-*,
readability-*,
performance-*,
modernize-*,
cppcoreguidelines-*,
clang-analyzer-*,
portability-*,
security-*,
misc-*,
google-*,
CheckOptions:
# Naming conventions
- 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.MethodCase
value: lower_case
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.ParameterCase
value: lower_case
- key: readability-identifier-naming.MemberCase
value: m_camelBack
- key: readability-identifier-naming.StaticMemberCase
value: s_camelBack
- key: readability-identifier-naming.GlobalVariableCase
value: g_lower_case
- key: readability-identifier-naming.NamespaceCase
value: lower_case
# Function complexity
- key: readability-function-cognitive-complexity.Threshold
value: 35
# Bug detection
- key: bugprone-argument-comment
value: 1
- key: bugprone-branch-clone
value: 1
- key: bugprone-use-after-move
value: 1
# Modern practices
- key: modernize-use-nullptr.NullMacros
value: 'NULL'
- key: modernize-use-auto
value: 1
- key: modernize-avoid-bind
value: 1
# Core guidelines
- key: cppcoreguidelines-no-malloc
value: 1
- key: cppcoreguidelines-pro-type-cstyle-cast
value: 1
- key: cppcoreguidelines-special-member-functions
value: 1
# Security
- key: security-undefined-bool-conversion
value: 1
- key: security-implicit-int-float-conversion
value: 1
# Performance
- key: performance-unnecessary-copy-initialization
value: 1
- key: performance-for-range-copy
value: 1
- key: performance-move-const-arg
value: 1