summaryrefslogtreecommitdiffhomepage
path: root/.clang-tidy
blob: 8898ca05f65259c514149a097c41cdd416556432 (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
Checks: '
*,
-altera-*,
-android-*,
-clang-analyzer-osx.*,
-fuchsia-*,
-google-*,
-llvm-*,
-llvmlibc-*,
-objc-*,
-bugprone-assignment-in-if-condition,
-bugprone-easily-swappable-parameters,
bugprone-exception-escape,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-narrowing-conversions,
-cert-*,
llvm-namespace-comment,
clang-analyzer-core.CallAndMessage,
clang-analyzer-deadcode.DeadStores,
-clang-diagnostic-nonportable-include-path,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-capture-default-when-capturing-this,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-avoid-goto,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-c-copy-assignment-signature,
-cppcoreguidelines-init-variables,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-narrowing-conversions,
-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-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,
-google-readability-braces-around-statements,
-google-readability-casting,
-hicpp-avoid-c-arrays,
-hicpp-avoid-goto,
-hicpp-braces-around-statements,
-hicpp-exception-baseclass,
-hicpp-explicit-conversions,
-hicpp-function-size,
-hicpp-invalid-access-moved,
-hicpp-member-init,
-hicpp-move-const-arg,
-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,
-misc-use-anonymous-namespace,
-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-function-cognitive-complexity,
-readability-function-size,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-inconsistent-declaration-parameter-name,
-readability-isolate-declaration,
-readability-magic-numbers,
readability-make-member-function-const,
-readability-named-parameter,
-readability-redundant-access-specifiers,
-readability-simplify-boolean-expr,
-readability-static-accessed-through-instance,
-readability-uppercase-literal-suffix,
-readability-use-anyofallof,
'

AnalyzeTemporaryDtors: true

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'
  - key:      readability-function-cognitive-complexity.IgnoreMacros
    value:    '1'
  - key:      readability-function-cognitive-complexity.DescribeBasicIncrements
    value:    '1'
  - key:      misc-const-correctness.AnalyzeValues
    value:    '0'

# vim: ft=yaml