-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.clang-tidy
69 lines (65 loc) · 2.56 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
# Some duplicate checks were removed; only check per tuple was left from the following:
# - cppcoreguidelines-pro-type-member-init,hicpp-member-init
# - hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix
# - google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements
# - bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions
# - hicpp-use-auto,modernize-use-auto
# - cppcoreguidelines-special-member-functions,hicpp-special-member-functions
# - cppcoreguidelines-non-private-member-variables-in-classes,misc-non-private-member-variables-in-classes
# - google-explicit-constructor,hicpp-explicit-conversions
# - hicpp-use-equals-default,modernize-use-equals-default
# - hicpp-deprecated-headers,modernize-deprecated-headers
# - hicpp-use-nullptr,modernize-use-nullptr
# Reasons for disabling certain checks:
# - llvm-header-guard: Giving false positives, either because of the copyright lines or because we're using #pragma once
# - performance-no-int-to-ptr,cppcoreguidelines-pro-type-cstyle-cast: HAL library relies on int to ptr conversions heavily
Checks: >
bugprone-*,
-bugprone-easily-swappable-parameters,
clang-analyzer-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-narrowing-conversions,
-cppcoreguidelines-pro-type-cstyle-cast,
google-*,
-google-readability-todo,
-google-readability-braces-around-statements,
hicpp-*,
-hicpp-avoid-c-arrays,
-hicpp-vararg,
-hicpp-no-array-decay,
-hicpp-uppercase-literal-suffix,
-hicpp-member-init,
-hicpp-braces-around-statements,
-hicpp-use-auto,
-hicpp-special-member-functions,
-hicpp-explicit-conversions,
-hicpp-deprecated-headers,
-hicpp-use-nullptr,
-hicpp-use-equals-default,
llvm-*,
-llvm-else-after-return,
-llvm-header-guard,
misc-*,
-misc-non-private-member-variables-in-classes,
modernize-*,
-modernize-use-trailing-return-type,
-modernize-avoid-c-arrays,
-modernize-macro-to-enum,
performance-*,
-performance-no-int-to-ptr,
portability-*,
readability-*,
-readability-magic-numbers,
-readability-identifier-length
# Example for future CheckOptions configuration
CheckOptions:
- key: readability-function-cognitive-complexity.Threshold
value: 50
FormatStyle: 'file'