summaryrefslogtreecommitdiffhomepage
path: root/.clang-tidy
blob: 53c0012e4a57b147ca9d03c6f40da41f8ec8ce4d (plain)
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
Checks: '
*,
-altera-*,
-android-*,
-clang-analyzer-osx.*,
-fuchsia-*,
-google-*,
-llvm-*,
-llvmlibc-*,
-objc-*,
-bugprone-easily-swappable-parameters,
-bugprone-narrowing-conversions,
-cert-dcl54-cpp,
-cert-err34-c,
-cert-err58-cpp,
-cert-flp30-c,
clang-analyze-core.CallAndMessage,
clang-analyzer-deadcode.DeadStores,
-clang-diagnostic-nonportable-include-path,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-goto,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-c-copy-assignment-signature,
-cppcoreguidelines-init-variables,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-narrowing-conversions,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-static-cast-downcast,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-special-member-functions,
-cppcoreguidelines-special-member-functions-hicpp-special-member-functions,
-google-readability-braces-around-statements,
-google-readability-casting,
-hicpp-avoid-c-arrays,
-hicpp-avoid-goto,
-hicpp-braces-around-statements,
-hicpp-explicit-conversions,
-hicpp-function-size,
-hicpp-member-init,
-hicpp-named-parameter,
-hicpp-new-delete-operators,
-hicpp-no-array-decay,
-hicpp-signed-bitwise,
-hicpp-special-member-functions,
-hicpp-uppercase-literal-suffix,
-hicpp-use-auto,
-hicpp-use-equals-default,
-hicpp-use-equals-delete,
-hicpp-use-override,
-hicpp-vararg,
-misc-non-private-member-variables-in-classes,
-modernize-avoid-c-arrays,
-modernize-loop-convert,
-modernize-pass-by-value,
-modernize-raw-string-literal,
-modernize-redundant-void-arg,
modernize-return-braced-init-list,
-modernize-use-auto,
modernize-use-equals-default,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
-modernize-use-using,
-performance-no-int-to-ptr,
-readability-braces-around-statements,
-readability-else-after-return,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-inconsistent-declaration-parameter-name,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-named-parameter,
-readability-static-accessed-through-instance,
-readability-uppercase-literal-suffix,
'

AnalyzeTemporaryDtors: true
#HeaderFilterRegex: '/dev/opentrack'

CheckOptions:
  - key:      cert-dcl59-cpp.HeaderFileExtensions
    value:    ',h,hpp'
  - key:      cppcoreguidelines-pro-type-member-init.IgnoreArrays
    value:    '1'
  - key:      readability-simplify-boolean-expr.ChainedConditionalAssignment
    value:    '1'
  - key:      readability-simplify-boolean-expr.ChainedConditionalReturn
    value:    '1'
  - key:      readability-function-size.BranchThreshold
    value:    '15'
  - key:      readability-function-size.LineThreshold
    value:    '120'
  - key:      readability-function-size.NestingThreshold
    value:    '6'
  - key:      readability-function-size.ParameterThreshold
    value:    '8'
  - key:      readability-function-size.StatementThreshold
    value:    '90'
  - key:      readability-function-size.VariableThreshold
    value:    '10'

# vim: ft=yaml