xref: /openbmc/dbus-sensors/.clang-tidy (revision b074528654b0f2f9b52d897d0d85c542dcd2566b)
18a57ec09SEd TanousChecks: '
28a57ec09SEd Tanous-*,
3bce0f038SEd Tanousboost-use-to-string,
48a57ec09SEd Tanousbugprone-argument-comment,
572b39116SEd Tanousbugprone-assignment-in-if-condition,
68a57ec09SEd Tanousbugprone-assert-side-effect,
78a57ec09SEd Tanousbugprone-bad-signal-to-kill-thread,
88a57ec09SEd Tanousbugprone-bool-pointer-implicit-conversion,
98a57ec09SEd Tanousbugprone-branch-clone,
108a57ec09SEd Tanousbugprone-copy-constructor-init,
118a57ec09SEd Tanousbugprone-dangling-handle,
128a57ec09SEd Tanousbugprone-dynamic-static-initializers,
138a57ec09SEd Tanousbugprone-fold-init-type,
148a57ec09SEd Tanousbugprone-forward-declaration-namespace,
158a57ec09SEd Tanousbugprone-forwarding-reference-overload,
16bce0f038SEd Tanousbugprone-implicit-widening-of-multiplication-result,
178a57ec09SEd Tanousbugprone-inaccurate-erase,
188a57ec09SEd Tanousbugprone-incorrect-roundings,
198a57ec09SEd Tanousbugprone-infinite-loop,
208a57ec09SEd Tanousbugprone-integer-division,
218a57ec09SEd Tanousbugprone-lambda-function-name,
228a57ec09SEd Tanousbugprone-macro-parentheses,
238a57ec09SEd Tanousbugprone-macro-repeated-side-effects,
248a57ec09SEd Tanousbugprone-misplaced-operator-in-strlen-in-alloc,
258a57ec09SEd Tanousbugprone-misplaced-pointer-arithmetic-in-alloc,
268a57ec09SEd Tanousbugprone-misplaced-widening-cast,
27bce0f038SEd Tanousbugprone-move-forwarding-reference,
288a57ec09SEd Tanousbugprone-multiple-statement-macro,
29*b0745286SEd Tanousbugprone-optional-value-conversion,
308a57ec09SEd Tanousbugprone-no-escape,
318a57ec09SEd Tanousbugprone-not-null-terminated-result,
328a57ec09SEd Tanousbugprone-parent-virtual-call,
338a57ec09SEd Tanousbugprone-posix-return,
34bce0f038SEd Tanousbugprone-redundant-branch-condition,
358a57ec09SEd Tanousbugprone-reserved-identifier,
36bce0f038SEd Tanousbugprone-signal-handler,
378a57ec09SEd Tanousbugprone-signed-char-misuse,
388a57ec09SEd Tanousbugprone-sizeof-container,
398a57ec09SEd Tanousbugprone-sizeof-expression,
408a57ec09SEd Tanousbugprone-spuriously-wake-up-functions,
418a57ec09SEd Tanousbugprone-string-constructor,
428a57ec09SEd Tanousbugprone-string-integer-assignment,
438a57ec09SEd Tanousbugprone-string-literal-with-embedded-nul,
448a57ec09SEd Tanousbugprone-suspicious-enum-usage,
458a57ec09SEd Tanousbugprone-suspicious-include,
468a57ec09SEd Tanousbugprone-suspicious-memset-usage,
478a57ec09SEd Tanousbugprone-suspicious-missing-comma,
488a57ec09SEd Tanousbugprone-suspicious-semicolon,
498a57ec09SEd Tanousbugprone-suspicious-string-compare,
508a57ec09SEd Tanousbugprone-swapped-arguments,
518a57ec09SEd Tanousbugprone-terminating-continue,
528a57ec09SEd Tanousbugprone-throw-keyword-missing,
538a57ec09SEd Tanousbugprone-too-small-loop-variable,
548a57ec09SEd Tanousbugprone-undefined-memory-manipulation,
558a57ec09SEd Tanousbugprone-undelegated-constructor,
56bce0f038SEd Tanousbugprone-unhandled-exception-at-new,
578a57ec09SEd Tanousbugprone-unhandled-self-assignment,
58f3fd5248SEd Tanousbugprone-unused-local-non-trivial-variable,
598a57ec09SEd Tanousbugprone-unused-raii,
608a57ec09SEd Tanousbugprone-unused-return-value,
618a57ec09SEd Tanousbugprone-use-after-move,
628a57ec09SEd Tanousbugprone-virtual-near-miss,
63a25223c2SEd Tanouscert-con36-c,
64a25223c2SEd Tanouscert-con54-cpp,
65a25223c2SEd Tanouscert-dcl03-c,
66a25223c2SEd Tanouscert-dcl16-c,
67a25223c2SEd Tanouscert-dcl21-cpp,
68a25223c2SEd Tanouscert-dcl50-cpp,
69a25223c2SEd Tanouscert-dcl54-cpp,
70a25223c2SEd Tanouscert-dcl58-cpp,
71a25223c2SEd Tanouscert-dcl59-cpp,
72a25223c2SEd Tanouscert-env33-c,
73a25223c2SEd Tanouscert-err09-cpp,
74a25223c2SEd Tanouscert-err34-c,
75a25223c2SEd Tanouscert-err52-cpp,
76a25223c2SEd Tanouscert-err60-cpp,
77a25223c2SEd Tanouscert-err61-cpp,
78a25223c2SEd Tanouscert-fio38-c,
79a25223c2SEd Tanouscert-flp30-c,
80a25223c2SEd Tanouscert-mem57-cpp,
81a25223c2SEd Tanouscert-msc30-c,
82a25223c2SEd Tanouscert-msc32-c,
83a25223c2SEd Tanouscert-msc50-cpp,
84a25223c2SEd Tanouscert-msc51-cpp,
85a25223c2SEd Tanouscert-oop11-cpp,
86a25223c2SEd Tanouscert-oop54-cpp,
87a25223c2SEd Tanouscert-oop57-cpp,
88bce0f038SEd Tanouscert-oop58-cpp,
89bce0f038SEd Tanouscert-pos44-c,
90bce0f038SEd Tanouscert-pos47-c,
91bce0f038SEd Tanouscert-sig30-c,
92bce0f038SEd Tanouscert-str34-c,
93193105f1SEd Tanousclang-analyzer-apiModeling.StdCLibraryFunctions,
94193105f1SEd Tanousclang-analyzer-apiModeling.TrustNonnull,
95a25223c2SEd Tanousclang-analyzer-apiModeling.google.GTest,
96a25223c2SEd Tanousclang-analyzer-apiModeling.llvm.CastValue,
97a25223c2SEd Tanousclang-analyzer-apiModeling.llvm.ReturnValue,
98a25223c2SEd Tanousclang-analyzer-core.CallAndMessageModeling,
99a25223c2SEd Tanousclang-analyzer-core.DivideZero,
100a25223c2SEd Tanousclang-analyzer-core.DynamicTypePropagation,
101a25223c2SEd Tanousclang-analyzer-core.NonNullParamChecker,
102193105f1SEd Tanousclang-analyzer-core.NonnilStringConstants,
103a25223c2SEd Tanousclang-analyzer-core.NullDereference,
104a25223c2SEd Tanousclang-analyzer-core.StackAddrEscapeBase,
105a25223c2SEd Tanousclang-analyzer-core.StackAddressEscape,
106a25223c2SEd Tanousclang-analyzer-core.UndefinedBinaryOperatorResult,
107193105f1SEd Tanousclang-analyzer-core.VLASize,
108193105f1SEd Tanousclang-analyzer-core.builtin.BuiltinFunctions,
109193105f1SEd Tanousclang-analyzer-core.builtin.NoReturnFunctions,
110a25223c2SEd Tanousclang-analyzer-core.uninitialized.ArraySubscript,
111a25223c2SEd Tanousclang-analyzer-core.uninitialized.Assign,
112a25223c2SEd Tanousclang-analyzer-core.uninitialized.Branch,
113a25223c2SEd Tanousclang-analyzer-core.uninitialized.CapturedBlockVariable,
114a25223c2SEd Tanousclang-analyzer-core.uninitialized.UndefReturn,
115a25223c2SEd Tanousclang-analyzer-cplusplus.InnerPointer,
116a25223c2SEd Tanousclang-analyzer-cplusplus.Move,
117a25223c2SEd Tanousclang-analyzer-cplusplus.NewDelete,
118a25223c2SEd Tanousclang-analyzer-cplusplus.NewDeleteLeaks,
119a25223c2SEd Tanousclang-analyzer-cplusplus.PlacementNew,
120a25223c2SEd Tanousclang-analyzer-cplusplus.PureVirtualCall,
121a25223c2SEd Tanousclang-analyzer-cplusplus.SelfAssignment,
122a25223c2SEd Tanousclang-analyzer-cplusplus.SmartPtrModeling,
123a25223c2SEd Tanousclang-analyzer-cplusplus.VirtualCallModeling,
124a25223c2SEd Tanousclang-analyzer-deadcode.DeadStores,
125a25223c2SEd Tanousclang-analyzer-fuchsia.HandleChecker,
126193105f1SEd Tanousclang-analyzer-nullability.NullPassedToNonnull,
127193105f1SEd Tanousclang-analyzer-nullability.NullReturnedFromNonnull,
128a25223c2SEd Tanousclang-analyzer-nullability.NullabilityBase,
129a25223c2SEd Tanousclang-analyzer-nullability.NullableDereferenced,
130a25223c2SEd Tanousclang-analyzer-nullability.NullablePassedToNonnull,
131a25223c2SEd Tanousclang-analyzer-nullability.NullableReturnedFromNonnull,
132a25223c2SEd Tanousclang-analyzer-optin.cplusplus.UninitializedObject,
133a25223c2SEd Tanousclang-analyzer-optin.cplusplus.VirtualCall,
134a25223c2SEd Tanousclang-analyzer-optin.mpi.MPI-Checker,
135193105f1SEd Tanousclang-analyzer-optin.osx.OSObjectCStyleCast,
136a25223c2SEd Tanousclang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
137a25223c2SEd Tanousclang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
138a25223c2SEd Tanousclang-analyzer-optin.performance.GCDAntipattern,
139a25223c2SEd Tanousclang-analyzer-optin.performance.Padding,
140a25223c2SEd Tanousclang-analyzer-optin.portability.UnixAPI,
141a25223c2SEd Tanousclang-analyzer-osx.API,
142193105f1SEd Tanousclang-analyzer-osx.MIG,
143193105f1SEd Tanousclang-analyzer-osx.NSOrCFErrorDerefChecker,
144193105f1SEd Tanousclang-analyzer-osx.NumberObjectConversion,
145193105f1SEd Tanousclang-analyzer-osx.OSObjectRetainCount,
146193105f1SEd Tanousclang-analyzer-osx.ObjCProperty,
147193105f1SEd Tanousclang-analyzer-osx.SecKeychainAPI,
148a25223c2SEd Tanousclang-analyzer-osx.cocoa.AtSync,
149a25223c2SEd Tanousclang-analyzer-osx.cocoa.AutoreleaseWrite,
150a25223c2SEd Tanousclang-analyzer-osx.cocoa.ClassRelease,
151a25223c2SEd Tanousclang-analyzer-osx.cocoa.Dealloc,
152a25223c2SEd Tanousclang-analyzer-osx.cocoa.IncompatibleMethodTypes,
153a25223c2SEd Tanousclang-analyzer-osx.cocoa.Loops,
154a25223c2SEd Tanousclang-analyzer-osx.cocoa.MissingSuperCall,
155a25223c2SEd Tanousclang-analyzer-osx.cocoa.NSAutoreleasePool,
156a25223c2SEd Tanousclang-analyzer-osx.cocoa.NSError,
157193105f1SEd Tanousclang-analyzer-osx.cocoa.NilArg,
158193105f1SEd Tanousclang-analyzer-osx.cocoa.NonNilReturnValue,
159a25223c2SEd Tanousclang-analyzer-osx.cocoa.ObjCGenerics,
160a25223c2SEd Tanousclang-analyzer-osx.cocoa.RetainCount,
161a25223c2SEd Tanousclang-analyzer-osx.cocoa.RetainCountBase,
162a25223c2SEd Tanousclang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
163a25223c2SEd Tanousclang-analyzer-osx.cocoa.SelfInit,
164a25223c2SEd Tanousclang-analyzer-osx.cocoa.SuperDealloc,
165a25223c2SEd Tanousclang-analyzer-osx.cocoa.UnusedIvars,
166a25223c2SEd Tanousclang-analyzer-osx.cocoa.VariadicMethodTypes,
167a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.CFError,
168a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.CFNumber,
169a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.CFRetainRelease,
170a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.containers.OutOfBounds,
171a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
172a25223c2SEd Tanousclang-analyzer-security.FloatLoopCounter,
173193105f1SEd Tanousclang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
174193105f1SEd Tanousclang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
175193105f1SEd Tanousclang-analyzer-security.insecureAPI.UncheckedReturn,
176a25223c2SEd Tanousclang-analyzer-security.insecureAPI.bcmp,
177a25223c2SEd Tanousclang-analyzer-security.insecureAPI.bcopy,
178a25223c2SEd Tanousclang-analyzer-security.insecureAPI.bzero,
179a25223c2SEd Tanousclang-analyzer-security.insecureAPI.decodeValueOfObjCType,
180a25223c2SEd Tanousclang-analyzer-security.insecureAPI.getpw,
181a25223c2SEd Tanousclang-analyzer-security.insecureAPI.gets,
182a25223c2SEd Tanousclang-analyzer-security.insecureAPI.mkstemp,
183a25223c2SEd Tanousclang-analyzer-security.insecureAPI.mktemp,
184a25223c2SEd Tanousclang-analyzer-security.insecureAPI.rand,
185a25223c2SEd Tanousclang-analyzer-security.insecureAPI.strcpy,
186a25223c2SEd Tanousclang-analyzer-security.insecureAPI.vfork,
187a25223c2SEd Tanousclang-analyzer-unix.API,
188a25223c2SEd Tanousclang-analyzer-unix.DynamicMemoryModeling,
189a25223c2SEd Tanousclang-analyzer-unix.Malloc,
190a25223c2SEd Tanousclang-analyzer-unix.MallocSizeof,
191a25223c2SEd Tanousclang-analyzer-unix.MismatchedDeallocator,
192a25223c2SEd Tanousclang-analyzer-unix.Vfork,
193193105f1SEd Tanousclang-analyzer-unix.cstring.BadSizeArg,
194193105f1SEd Tanousclang-analyzer-unix.cstring.CStringModeling,
195193105f1SEd Tanousclang-analyzer-unix.cstring.NullArg,
196a25223c2SEd Tanousclang-analyzer-valist.CopyToSelf,
197a25223c2SEd Tanousclang-analyzer-valist.Uninitialized,
198a25223c2SEd Tanousclang-analyzer-valist.Unterminated,
199a25223c2SEd Tanousclang-analyzer-valist.ValistBase,
200a25223c2SEd Tanousclang-analyzer-webkit.NoUncountedMemberChecker,
201a25223c2SEd Tanousclang-analyzer-webkit.RefCntblBaseVirtualDtor,
202532c8649SEd Tanouscppcoreguidelines-avoid-c-arrays,
20373030639SEd Tanouscppcoreguidelines-avoid-goto,
204bce0f038SEd Tanouscppcoreguidelines-c-copy-assignment-signature,
205bce0f038SEd Tanouscppcoreguidelines-explicit-virtual-functions,
206a771f6a7SEd Tanouscppcoreguidelines-init-variables,
207bce0f038SEd Tanouscppcoreguidelines-interfaces-global-init,
208bce0f038SEd Tanouscppcoreguidelines-macro-usage,
209bce0f038SEd Tanouscppcoreguidelines-no-malloc,
210bce0f038SEd Tanouscppcoreguidelines-prefer-member-initializer,
211bce0f038SEd Tanouscppcoreguidelines-pro-bounds-array-to-pointer-decay,
212bce0f038SEd Tanouscppcoreguidelines-pro-type-const-cast,
213bce0f038SEd Tanouscppcoreguidelines-pro-type-cstyle-cast,
214bce0f038SEd Tanouscppcoreguidelines-pro-type-member-init,
215bce0f038SEd Tanouscppcoreguidelines-pro-type-reinterpret-cast,
216bce0f038SEd Tanouscppcoreguidelines-pro-type-static-cast-downcast,
217bce0f038SEd Tanouscppcoreguidelines-pro-type-union-access,
21899c4409aSEd Tanouscppcoreguidelines-pro-type-vararg,
219bce0f038SEd Tanouscppcoreguidelines-slicing,
220bce0f038SEd Tanousgoogle-explicit-constructor,
2218a57ec09SEd Tanousmisc-misplaced-const,
2228a57ec09SEd Tanousmisc-redundant-expression,
2238a57ec09SEd Tanousmisc-static-assert,
2248a57ec09SEd Tanousmisc-throw-by-value-catch-by-reference,
2258a57ec09SEd Tanousmisc-unconventional-assign-operator,
2268a57ec09SEd Tanousmisc-uniqueptr-reset-release,
2278a57ec09SEd Tanousmisc-unused-using-decls,
228a25223c2SEd Tanousmodernize-avoid-bind,
229a25223c2SEd Tanousmodernize-deprecated-headers,
230a25223c2SEd Tanousmodernize-deprecated-ios-base-aliases,
231a25223c2SEd Tanousmodernize-loop-convert,
232a25223c2SEd Tanousmodernize-make-shared,
233a25223c2SEd Tanousmodernize-make-unique,
234a25223c2SEd Tanousmodernize-raw-string-literal,
235201a1015SEd Tanousmodernize-redundant-void-arg,
236a25223c2SEd Tanousmodernize-replace-auto-ptr,
237a25223c2SEd Tanousmodernize-replace-random-shuffle,
238a25223c2SEd Tanousmodernize-return-braced-init-list,
239a25223c2SEd Tanousmodernize-shrink-to-fit,
240a25223c2SEd Tanousmodernize-unary-static-assert,
241a25223c2SEd Tanousmodernize-use-bool-literals,
242a25223c2SEd Tanousmodernize-use-default-member-init,
243a25223c2SEd Tanousmodernize-use-emplace,
244a25223c2SEd Tanousmodernize-use-equals-default,
245a25223c2SEd Tanousmodernize-use-equals-delete,
246a25223c2SEd Tanousmodernize-use-noexcept,
247a25223c2SEd Tanousmodernize-use-nullptr,
248a25223c2SEd Tanousmodernize-use-override,
249a25223c2SEd Tanousmodernize-use-transparent-functors,
250a25223c2SEd Tanousmodernize-use-uncaught-exceptions,
251a25223c2SEd Tanousmodernize-use-using,
2528a57ec09SEd Tanousperformance-faster-string-find,
2538a57ec09SEd Tanousperformance-for-range-copy,
2548a57ec09SEd Tanousperformance-implicit-conversion-in-loop,
2558a57ec09SEd Tanousperformance-inefficient-algorithm,
2568a57ec09SEd Tanousperformance-inefficient-string-concatenation,
2578a57ec09SEd Tanousperformance-inefficient-vector-operation,
2588a57ec09SEd Tanousperformance-move-const-arg,
2598a57ec09SEd Tanousperformance-move-constructor-init,
260a25223c2SEd Tanousperformance-no-automatic-move,
261bce0f038SEd Tanousperformance-no-int-to-ptr,
2628a57ec09SEd Tanousperformance-noexcept-move-constructor,
2638a57ec09SEd Tanousperformance-trivially-destructible,
264a25223c2SEd Tanousperformance-type-promotion-in-math-fn,
265a25223c2SEd Tanousperformance-unnecessary-copy-initialization,
2668a57ec09SEd Tanousperformance-unnecessary-value-param,
267bce0f038SEd Tanousreadability-avoid-const-params-in-decls,
2688a57ec09SEd Tanousreadability-braces-around-statements,
2698a57ec09SEd Tanousreadability-const-return-type,
270bce0f038SEd Tanousreadability-container-size-empty,
271bce0f038SEd Tanousreadability-convert-member-functions-to-static,
2728a57ec09SEd Tanousreadability-delete-null-pointer,
2738a57ec09SEd Tanousreadability-deleted-default,
274a25223c2SEd Tanousreadability-else-after-return,
275bce0f038SEd Tanousreadability-function-size,
276bce0f038SEd Tanousreadability-identifier-naming,
277bce0f038SEd Tanousreadability-implicit-bool-conversion,
278bce0f038SEd Tanousreadability-inconsistent-declaration-parameter-name,
279bce0f038SEd Tanousreadability-isolate-declaration,
280bce0f038SEd Tanousreadability-make-member-function-const,
281bce0f038SEd Tanousreadability-misleading-indentation,
282bce0f038SEd Tanousreadability-misplaced-array-index,
283bce0f038SEd Tanousreadability-named-parameter,
284bce0f038SEd Tanousreadability-non-const-parameter,
285bce0f038SEd Tanousreadability-qualified-auto,
286bce0f038SEd Tanousreadability-redundant-access-specifiers,
287bce0f038SEd Tanousreadability-redundant-control-flow,
288bce0f038SEd Tanousreadability-redundant-declaration,
289bce0f038SEd Tanousreadability-redundant-function-ptr-dereference,
290bce0f038SEd Tanousreadability-redundant-member-init,
291bce0f038SEd Tanousreadability-redundant-preprocessor,
292bce0f038SEd Tanousreadability-redundant-smartptr-get,
293bce0f038SEd Tanousreadability-redundant-string-cstr,
294bce0f038SEd Tanousreadability-redundant-string-init,
295bce0f038SEd Tanousreadability-simplify-boolean-expr,
296bce0f038SEd Tanousreadability-simplify-subscript-expr,
297bce0f038SEd Tanousreadability-static-accessed-through-instance,
298bce0f038SEd Tanousreadability-static-definition-in-anonymous-namespace,
299bce0f038SEd Tanousreadability-string-compare,
300bce0f038SEd Tanousreadability-suspicious-call-argument,
301bce0f038SEd Tanousreadability-uniqueptr-delete-release,
302bce0f038SEd Tanousreadability-uppercase-literal-suffix'
3038a57ec09SEd Tanous
3048a57ec09SEd TanousWarningsAsErrors: '*'
30577141acbSOleksandr ShulzhenkoHeaderFilterRegex: '(?!^subprojects).*'
3068a57ec09SEd TanousCheckOptions:
3078a57ec09SEd Tanous  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
3088a57ec09SEd Tanous  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
3098a57ec09SEd Tanous  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
3108a57ec09SEd Tanous  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
3118a57ec09SEd Tanous  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
3128a57ec09SEd Tanous  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
313