forked from DeepLink-org/DIOPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
70 lines (68 loc) · 2.45 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
---
Checks: '
-*,
clang-diagnostic-*,
-clang-diagnostic-ignored-optimization-argument,
bugprone-*,
-bugprone-easily-swappable-parameters,
-bugprone-forward-declaration-namespace,
-bugprone-macro-parentheses,
-bugprone-lambda-function-name,
-bugprone-reserved-identifier,
-bugprone-swapped-arguments,
-bugprone-narrowing-conversions,
misc-*,-misc-const-correctness,
-misc-unused-parameters,
-misc-non-private-member-variables-in-classes,
-misc-no-recursion,
-misc-use-anonymous-namespace,
hicpp-avoid-goto,
modernize-*,
-modernize-concat-nested-namespaces,
-modernize-macro-to-enum,
-modernize-return-braced-init-list,
-modernize-use-auto,
-modernize-use-default-member-init,
-modernize-use-using,
-modernize-use-trailing-return-type,
-modernize-use-nodiscard,
-modernize-avoid-c-arrays,
performance-*,
-performance-noexcept-move-constructor,
-performance-unnecessary-value-param,
readability-identifier-naming,
readability-container-size-empty,
'
# NOTE there must be no spaces before the '-', so put the comma last.
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: "CamelCase"
- key: readability-identifier-naming.ClassMethodCase
value: "camelBack"
- key: readability-identifier-naming.EnumCase
value: "CamelCase"
- key: readability-identifier-naming.FunctionCase
value: "camelBack"
- key: readability-identifier-naming.MemberCase
value: "camelBack"
- key: readability-identifier-naming.MemberSuffix
value: "_"
- key: readability-identifier-naming.ParameterCase
value: "camelBack"
- key: readability-identifier-naming.ParameterIgnoredRegexp
value: "^([a-z]+_)*[a-z]+$"
- key: readability-identifier-naming.UnionCase
value: "camelBack"
- key: readability-identifier-naming.VariableCase
value: "camelBack"
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: 1
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
value: 1
- key: modernize-use-default-member-init.UseAssignment
value: 1
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: false
WarningsAsErrors: '*,-clang-diagnostic-ignored-optimization-argument'
UseColor: true
...