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