-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
134 lines (128 loc) · 3.45 KB
/
.clang-tidy
File metadata and controls
134 lines (128 loc) · 3.45 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
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
Checks: '*'
# General options
FormatStyle: none
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.StructCase
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.GlobalConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.ConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.EnumCase
value: UpperCase
- key: readability-identifier-naming.NamespaceCase
value: CamelCase
- key: readability-identifier-naming.FunctionCase
value: camelBack
- key: readability-identifier-naming.MemberCase
value: camelBack
- key: readability-identifier-naming.ParameterCase
value: camelBack
# Enabled checks
Checks:
- '*'
- bugprone-*
- clang-analyzer-*
- google-*
- llvm-*
- modernize-*
- performance-*
- readability-*
- hicpp-*
# Disabled checks
CheckOptions:
- key: bugprone-exception-escape
value: false
- key: clang-analyzer-alpha.*
value: false
- key: google-objc-*
value: false
- key: google-readability-*
value: false
- key: hicpp-exception-baseclass
value: false
- key: hicpp-special-member-functions
value: false
- key: hicpp-undelegated-constructor
value: false
- key: llvm-include-order
value: false
# Compiler-specific configurations
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: true
CheckOptions:
- key: modernize-use-override.FixOnlyIfOverrideSpecifier
value: true
- key: modernize-use-nullptr.NullMacros
value: 'NULL'
- key: performance-unnecessary-value-param.AlwaysSuppressTemplateArgs
value: true
- key: readability-avoid-const-params-in-decls.CheckFunctionSignatures
value: true
# Diagnostic options
WarningsAsErrors: '*'
ErrorOnUnhandledErrors: true
# Additional options
CheckOptions:
- key: clang-analyzer-core.*
value: true
- key: clang-analyzer-nullability.*
value: true
- key: clang-analyzer-security.*
value: true
- key: clang-analyzer-alpha.core.*
value: true
- key: bugprone-integer-division.*
value: true
- key: bugprone-narrowing-conversions.*
value: true
- key: bugprone-signed-char-misuse.*
value: true
- key: google-global-names-in-headers.*
value: true
- key: google-readability-braces-around-statements.*
value: true
- key: llvm-header-guard.*
value: true
- key: modernize-loop-convert.*
value: true
- key: modernize-pass-by-value.*
value: true
- key: modernize-use-auto.*
value: true
- key: modernize-use-emplace.*
value: true
- key: modernize-use-override.*
value: true
- key: performance-for-range-copy.*
value: true
- key: performance-inefficient-algorithm.*
value: true
- key: readability-avoid-const-params-in-decls.*
value: true
- key: readability-braces-around-statements.*
value: true
- key: readability-container-size-empty.*
value: true
- key: readability-delete-null-pointer.*
value: true
- key: readability-else-after-return.*
value: true
- key: readability-function-cognitive-complexity.*
value: true
- key: readability-function-size.*
value: true
- key: readability-implicit-bool-conversion.*
value: true
- key: readability-magic-numbers.*
value: true
- key: readability-named-parameter.*
value: true
- key: readability-redundant-control-flow.*
value: true
- key: readability-simplify-boolean-expr.*
value: true