forked from openblack/openblack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
64 lines (64 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
HeaderFilterRegex: '^[^_]*\.h$'
Checks: >-
-*,
clang-analyzer-*,
modernize-*,
-modernize-use-trailing-return-type,
-modernize-use-std-print,
cppcoreguidelines-pro-bounds-constant-array-index,
cppcoreguidelines-avoid-non-const-global-variables,
performance-*,
-performance-enum-size,
-performance-unnecessary-value-param,
misc-*,
-misc-non-private-member-variables-in-classes,
-misc-redundant-expression,
-misc-include-cleaner,
bugprone-*,
-bugprone-reserved-identifier,
-bugprone-easily-swappable-parameters,
-bugprone-narrowing-conversions,
-bugprone-lambda-function-name,
-bugprone-implicit-widening-of-multiplication-result,
google-*,
-google-build-using-namespace,
-google-runtime-references,
readability-*,
-readability-magic-numbers,
-readability-uppercase-literal-suffix,
-readability-function-cognitive-complexity,
-readability-make-member-function-const,
-readability-convert-member-functions-to-static,
-readability-named-parameter,
-readability-identifier-length
CheckOptions:
- key: readability-function-cognitive-complexity.Threshold
value: 35 # TODO: bring that number down to 25
- key: readability-identifier-naming.GlobalConstantCase
value: CamelCase
- key: readability-identifier-naming.GlobalConstantPrefix
value: k_
- key: readability-identifier-naming.ConstexprVariableCase
value: CamelCase
- key: readability-identifier-naming.ConstexprVariablePrefix
value: k_
- key: readability-identifier-naming.GlobalConstantIgnoredRegexp
value: '^Disassembly_[^_]*'
- key: readability-identifier-naming.MethodCase
value: CamelCase
- key: readability-identifier-naming.MethodIgnoredRegexp
value: 'Disassembly_[^_]*|load'
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.VariableIgnoredRegexp
value: '^u_[^_]*'
- key: readability-identifier-naming.ParameterCase
value: camelBack
- key: readability-identifier-naming.MemberCase
value: camelBack
- key: readability-identifier-naming.PrivateMemberPrefix
value: _
- key: readability-identifier-naming.ProtectedMemberPrefix
value: _
ExtraArgsBefore:
- -DLOCATOR_IMPLEMENTATIONS