-
Notifications
You must be signed in to change notification settings - Fork 293
/
.clang-tidy
76 lines (75 loc) · 2.59 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
FormatStyle: file
HeaderFilterRegex: 'lib/evmone/|test/state/'
WarningsAsErrors: '*'
Checks:
- "bugprone-*"
- "-bugprone-assignment-in-if-condition"
- "-bugprone-easily-swappable-parameters"
- "-bugprone-implicit-widening-of-multiplication-result"
- "-bugprone-unchecked-optional-access"
- "cert-dcl21-cpp"
- "cert-dcl50-cpp"
- "cert-dcl58-cpp"
- "cert-env33-c"
- "cert-err33-c"
- "cert-err34-c"
- "cert-err52-cpp"
- "cert-err60-cpp"
- "cert-flp30-c"
- "cert-mem57-cpp"
- "cert-msc50-cpp"
- "cert-msc51-cpp"
- "cert-oop57-cpp"
- "cert-oop58-cpp"
- "clang-analyzer-*"
- "cppcoreguidelines-*"
- "-cppcoreguidelines-avoid-c-arrays"
- "-cppcoreguidelines-avoid-const-or-ref-data-members"
- "-cppcoreguidelines-avoid-goto"
- "-cppcoreguidelines-avoid-magic-numbers"
- "-cppcoreguidelines-avoid-non-const-global-variables"
- "-cppcoreguidelines-macro-usage"
- "-cppcoreguidelines-no-malloc"
- "-cppcoreguidelines-non-private-member-variables-in-classes"
- "-cppcoreguidelines-owning-memory"
- "-cppcoreguidelines-pro-bounds-array-to-pointer-decay"
- "-cppcoreguidelines-pro-bounds-constant-array-index"
- "-cppcoreguidelines-pro-bounds-pointer-arithmetic"
- "-cppcoreguidelines-pro-type-reinterpret-cast"
- "-cppcoreguidelines-pro-type-static-cast-downcast"
- "-cppcoreguidelines-pro-type-union-access"
- "-cppcoreguidelines-pro-type-vararg"
- "-cppcoreguidelines-special-member-functions"
- "google-global-names-in-headers"
- "google-runtime-int"
- "hicpp-exception-baseclass"
- "hicpp-multiway-paths-covered"
- "hicpp-no-assembler"
- "misc-*"
- "-misc-include-cleaner"
- "-misc-non-private-member-variables-in-classes"
- "-misc-use-anonymous-namespace"
- "modernize-*"
- "-modernize-avoid-c-arrays"
- "-modernize-use-nodiscard"
- "-modernize-use-trailing-return-type"
- "performance-*"
- "-performance-enum-size"
- "portability-*"
- "readability-*"
- "-readability-braces-around-statements"
# Sometimes we actually want to take the address of the first element.
- "-readability-container-data-pointer"
- "-readability-else-after-return"
- "-readability-function-cognitive-complexity"
- "-readability-function-size"
- "-readability-identifier-length"
- "-readability-magic-numbers"
- "-readability-named-parameter"
- "-readability-qualified-auto"
# TODO: Check if removing inline affects clang optimized builds.
- "-readability-redundant-inline-specifier"
- "-readability-uppercase-literal-suffix"
CheckOptions:
readability-identifier-naming.ClassCase: CamelCase
readability-identifier-naming.UnionCase: CamelCase