forked from darktable-org/rawspeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
135 lines (135 loc) · 5.02 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
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
127
128
129
130
131
132
133
134
135
---
Checks: >
*,
-clang-analyzer-*,
-clang-diagnostic-*,
-cert-dcl50-cpp,
-cert-env33-c,
-cert-err58-cpp,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-member-init,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-special-member-functions,
-google-default-arguments,
-google-readability-todo,
-hicpp-member-init,
-hicpp-special-member-functions,
-llvm-header-guard,
-llvm-include-order,
-misc-unused-parameters,
-readability-implicit-bool-cast,
-readability-inconsistent-declaration-parameter-name,
-android-*,
-hicpp-braces-around-statements,
-hicpp-function-size,
-google-readability-braces-around-statements,
-google-readability-function-size,
-readability-implicit-bool-conversion,
-hicpp-signed-bitwise,
-hicpp-no-array-decay,
-hicpp-vararg,
-hicpp-multiway-paths-covered,
-cppcoreguidelines-owning-memory,
-fuchsia-*,
-llvmlibc-*,
-portability-simd-intrinsics,
-bugprone-narrowing-conversions,
-cppcoreguidelines-narrowing-conversions,
-readability-magic-numbers,
-cppcoreguidelines-avoid-magic-numbers,
-misc-non-private-member-variables-in-classes,
-cppcoreguidelines-non-private-member-variables-in-classes,
-modernize-use-trailing-return-type,
-cppcoreguidelines-init-variables,
-bugprone-signed-char-misuse,
-cert-str34-c,
-cert-dcl37-c,
-cert-dcl51-cpp,
-misc-no-recursion,
-cppcoreguidelines-avoid-non-const-global-variables,
-abseil-string-find-str-contains,
-altera-struct-pack-align,
-google-runtime-references,
-altera-unroll-loops,
-altera-id-dependent-backward-branch,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-easily-swappable-parameters,
-readability-identifier-length,
-cert-err33-c,
-google-readability-casting,
-readability-container-data-pointer,
-bugprone-exception-escape,
-openmp-exception-escape,
-modernize-use-default-member-init,
-misc-unused-using-decls,
-bugprone-assignment-in-if-condition,
-bugprone-unchecked-optional-access,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-misc-const-correctness
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: false
User: lebedevri
CheckOptions:
- key: bugprone-reserved-identifier.AllowedIdentifiers
value: '_GLIBCXX_SANITIZE_VECTOR'
- key: google-runtime-int.UnsignedTypePrefix
value: 'uint'
- key: google-runtime-int.SignedTypePrefix
value: 'int'
- key: google-runtime-int.TypeSuffix
value: '_t'
- key: readability-braces-around-statements.ShortStatementLines
value: '3'
- key: readability-function-size.BranchThreshold
value: '29'
- key: readability-function-size.LineThreshold
value: '158'
- key: readability-function-size.StatementThreshold
value: '139'
- key: readability-function-size.ParameterThreshold
value: '6'
- key: readability-function-size.NestingThreshold
value: '7'
- key: readability-function-size.VariableThreshold
value: '31'
- key: readability-function-cognitive-complexity.Threshold
value: '87'
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
value: '1'
- key: readability-simplify-boolean-expr.ChainedConditionalReturn
value: '1'
- key: performance-for-range-copy.WarnOnAllAutoCopies
value: '1'
- key: google-build-namespaces.HeaderFileExtensions
value: 'h,
hh,
hpp,
hxx,
'
- key: google-global-names-in-headers.HeaderFileExtensions
value: 'h,
hh,
hpp,
hxx,
'
- key: misc-definitions-in-headers.HeaderFileExtensions
value: 'h,
hh,
hpp,
hxx,
'
- key: misc-definitions-in-headers.UseHeaderFileExtension
value: '1'
- key: modernize-use-auto.MinTypeNameLength
value: '0'
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: modernize-use-default-member-init.UseAssignment
value: 1
- key: cppcoreguidelines-macro-usage.AllowedRegexp
value: 'DEBUG|_GLIBCXX_SANITIZE_VECTOR|RAWSPEED_SOURCE_DIR|STR|XSTR|BSWAP16|BSWAP32|BSWAP64|ThrowExceptionHelper|ThrowIOE|ThrowRSE|ThrowCME|ThrowRDE|ThrowRPE|ThrowTPE|ThrowFIE|ThrowCPE|ThrowFPE|DECODER|fuji_quant_gradient|JPEG_MEMSRC|RLVTABLE|PRECISION_MIN|PRECISION_MAX|MARKER_BAND_END|SQR|RS_CAMERAS_XML_PATH|FULLDECODE|IMPL|IMPL0|IMPL1|PUMP|DECODE|PARSER|GEN_E|GEN_PFS|GEN_PSS|BENCHMARK_CAPTURE_NAME|RAWSPEED_UNLIKELY_FUNCTION|RAWSPEED_NOINLINE|GEN_INNER|GEN_F_BPS|GEN_F|GEN_U_BPS|GEN_U|GEN_BO|invariant'
...