xref: /openbmc/dbus-sensors/.clang-tidy (revision a771f6a70980687ca8bdd0a86963279780bc18c3)
18a57ec09SEd TanousChecks: '
28a57ec09SEd Tanous-*,
38a57ec09SEd Tanousbugprone-argument-comment,
48a57ec09SEd Tanousbugprone-assert-side-effect,
58a57ec09SEd Tanousbugprone-bad-signal-to-kill-thread,
68a57ec09SEd Tanousbugprone-bool-pointer-implicit-conversion,
78a57ec09SEd Tanousbugprone-branch-clone,
88a57ec09SEd Tanousbugprone-copy-constructor-init,
98a57ec09SEd Tanousbugprone-dangling-handle,
108a57ec09SEd Tanousbugprone-dynamic-static-initializers,
118a57ec09SEd Tanousbugprone-fold-init-type,
128a57ec09SEd Tanousbugprone-forward-declaration-namespace,
138a57ec09SEd Tanousbugprone-forwarding-reference-overload,
148a57ec09SEd Tanousbugprone-inaccurate-erase,
158a57ec09SEd Tanousbugprone-incorrect-roundings,
168a57ec09SEd Tanousbugprone-infinite-loop,
178a57ec09SEd Tanousbugprone-integer-division,
188a57ec09SEd Tanousbugprone-lambda-function-name,
198a57ec09SEd Tanousbugprone-macro-parentheses,
208a57ec09SEd Tanousbugprone-macro-repeated-side-effects,
218a57ec09SEd Tanousbugprone-misplaced-operator-in-strlen-in-alloc,
228a57ec09SEd Tanousbugprone-misplaced-pointer-arithmetic-in-alloc,
238a57ec09SEd Tanousbugprone-misplaced-widening-cast,
248a57ec09SEd Tanousbugprone-multiple-statement-macro,
258a57ec09SEd Tanousbugprone-no-escape,
268a57ec09SEd Tanousbugprone-not-null-terminated-result,
278a57ec09SEd Tanousbugprone-parent-virtual-call,
288a57ec09SEd Tanousbugprone-posix-return,
298a57ec09SEd Tanousbugprone-reserved-identifier,
308a57ec09SEd Tanousbugprone-signed-char-misuse,
318a57ec09SEd Tanousbugprone-sizeof-container,
328a57ec09SEd Tanousbugprone-sizeof-expression,
338a57ec09SEd Tanousbugprone-spuriously-wake-up-functions,
348a57ec09SEd Tanousbugprone-string-constructor,
358a57ec09SEd Tanousbugprone-string-integer-assignment,
368a57ec09SEd Tanousbugprone-string-literal-with-embedded-nul,
378a57ec09SEd Tanousbugprone-suspicious-enum-usage,
388a57ec09SEd Tanousbugprone-suspicious-include,
398a57ec09SEd Tanousbugprone-suspicious-memset-usage,
408a57ec09SEd Tanousbugprone-suspicious-missing-comma,
418a57ec09SEd Tanousbugprone-suspicious-semicolon,
428a57ec09SEd Tanousbugprone-suspicious-string-compare,
438a57ec09SEd Tanousbugprone-swapped-arguments,
448a57ec09SEd Tanousbugprone-terminating-continue,
458a57ec09SEd Tanousbugprone-throw-keyword-missing,
468a57ec09SEd Tanousbugprone-too-small-loop-variable,
478a57ec09SEd Tanousbugprone-undefined-memory-manipulation,
488a57ec09SEd Tanousbugprone-undelegated-constructor,
498a57ec09SEd Tanousbugprone-unhandled-self-assignment,
508a57ec09SEd Tanousbugprone-unused-raii,
518a57ec09SEd Tanousbugprone-unused-return-value,
528a57ec09SEd Tanousbugprone-use-after-move,
538a57ec09SEd Tanousbugprone-virtual-near-miss,
54a25223c2SEd Tanouscert-con36-c,
55a25223c2SEd Tanouscert-con54-cpp,
56a25223c2SEd Tanouscert-dcl03-c,
57a25223c2SEd Tanouscert-dcl16-c,
58a25223c2SEd Tanouscert-dcl21-cpp,
59a25223c2SEd Tanouscert-dcl37-c,
60a25223c2SEd Tanouscert-dcl50-cpp,
61a25223c2SEd Tanouscert-dcl51-cpp,
62a25223c2SEd Tanouscert-dcl54-cpp,
63a25223c2SEd Tanouscert-dcl58-cpp,
64a25223c2SEd Tanouscert-dcl59-cpp,
65a25223c2SEd Tanouscert-env33-c,
66a25223c2SEd Tanouscert-err09-cpp,
67a25223c2SEd Tanouscert-err34-c,
68a25223c2SEd Tanouscert-err52-cpp,
69a25223c2SEd Tanouscert-err60-cpp,
70a25223c2SEd Tanouscert-err61-cpp,
71a25223c2SEd Tanouscert-fio38-c,
72a25223c2SEd Tanouscert-flp30-c,
73a25223c2SEd Tanouscert-mem57-cpp,
74a25223c2SEd Tanouscert-msc30-c,
75a25223c2SEd Tanouscert-msc32-c,
76a25223c2SEd Tanouscert-msc50-cpp,
77a25223c2SEd Tanouscert-msc51-cpp,
78a25223c2SEd Tanouscert-oop11-cpp,
79a25223c2SEd Tanouscert-oop54-cpp,
80a25223c2SEd Tanouscert-oop57-cpp,
81a25223c2SEd Tanousclang-analyzer-apiModeling.google.GTest,
82a25223c2SEd Tanousclang-analyzer-apiModeling.llvm.CastValue,
83a25223c2SEd Tanousclang-analyzer-apiModeling.llvm.ReturnValue,
84a25223c2SEd Tanousclang-analyzer-apiModeling.StdCLibraryFunctions,
85a25223c2SEd Tanousclang-analyzer-apiModeling.TrustNonnull,
86a25223c2SEd Tanousclang-analyzer-core.builtin.BuiltinFunctions,
87a25223c2SEd Tanousclang-analyzer-core.builtin.NoReturnFunctions,
88a25223c2SEd Tanousclang-analyzer-core.CallAndMessageModeling,
89a25223c2SEd Tanousclang-analyzer-core.DivideZero,
90a25223c2SEd Tanousclang-analyzer-core.DynamicTypePropagation,
91a25223c2SEd Tanousclang-analyzer-core.NonnilStringConstants,
92a25223c2SEd Tanousclang-analyzer-core.NonNullParamChecker,
93a25223c2SEd Tanousclang-analyzer-core.NullDereference,
94a25223c2SEd Tanousclang-analyzer-core.StackAddrEscapeBase,
95a25223c2SEd Tanousclang-analyzer-core.StackAddressEscape,
96a25223c2SEd Tanousclang-analyzer-core.UndefinedBinaryOperatorResult,
97a25223c2SEd Tanousclang-analyzer-core.uninitialized.ArraySubscript,
98a25223c2SEd Tanousclang-analyzer-core.uninitialized.Assign,
99a25223c2SEd Tanousclang-analyzer-core.uninitialized.Branch,
100a25223c2SEd Tanousclang-analyzer-core.uninitialized.CapturedBlockVariable,
101a25223c2SEd Tanousclang-analyzer-core.uninitialized.UndefReturn,
102a25223c2SEd Tanousclang-analyzer-core.VLASize,
103a25223c2SEd Tanousclang-analyzer-cplusplus.InnerPointer,
104a25223c2SEd Tanousclang-analyzer-cplusplus.Move,
105a25223c2SEd Tanousclang-analyzer-cplusplus.NewDelete,
106a25223c2SEd Tanousclang-analyzer-cplusplus.NewDeleteLeaks,
107a25223c2SEd Tanousclang-analyzer-cplusplus.PlacementNew,
108a25223c2SEd Tanousclang-analyzer-cplusplus.PureVirtualCall,
109a25223c2SEd Tanousclang-analyzer-cplusplus.SelfAssignment,
110a25223c2SEd Tanousclang-analyzer-cplusplus.SmartPtrModeling,
111a25223c2SEd Tanousclang-analyzer-cplusplus.VirtualCallModeling,
112a25223c2SEd Tanousclang-analyzer-deadcode.DeadStores,
113a25223c2SEd Tanousclang-analyzer-fuchsia.HandleChecker,
114a25223c2SEd Tanousclang-analyzer-nullability.NullabilityBase,
115a25223c2SEd Tanousclang-analyzer-nullability.NullableDereferenced,
116a25223c2SEd Tanousclang-analyzer-nullability.NullablePassedToNonnull,
117a25223c2SEd Tanousclang-analyzer-nullability.NullableReturnedFromNonnull,
118a25223c2SEd Tanousclang-analyzer-nullability.NullPassedToNonnull,
119a25223c2SEd Tanousclang-analyzer-nullability.NullReturnedFromNonnull,
120a25223c2SEd Tanousclang-analyzer-optin.cplusplus.UninitializedObject,
121a25223c2SEd Tanousclang-analyzer-optin.cplusplus.VirtualCall,
122a25223c2SEd Tanousclang-analyzer-optin.mpi.MPI-Checker,
123a25223c2SEd Tanousclang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
124a25223c2SEd Tanousclang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
125a25223c2SEd Tanousclang-analyzer-optin.osx.OSObjectCStyleCast,
126a25223c2SEd Tanousclang-analyzer-optin.performance.GCDAntipattern,
127a25223c2SEd Tanousclang-analyzer-optin.performance.Padding,
128a25223c2SEd Tanousclang-analyzer-optin.portability.UnixAPI,
129a25223c2SEd Tanousclang-analyzer-osx.API,
130a25223c2SEd Tanousclang-analyzer-osx.cocoa.AtSync,
131a25223c2SEd Tanousclang-analyzer-osx.cocoa.AutoreleaseWrite,
132a25223c2SEd Tanousclang-analyzer-osx.cocoa.ClassRelease,
133a25223c2SEd Tanousclang-analyzer-osx.cocoa.Dealloc,
134a25223c2SEd Tanousclang-analyzer-osx.cocoa.IncompatibleMethodTypes,
135a25223c2SEd Tanousclang-analyzer-osx.cocoa.Loops,
136a25223c2SEd Tanousclang-analyzer-osx.cocoa.MissingSuperCall,
137a25223c2SEd Tanousclang-analyzer-osx.cocoa.NilArg,
138a25223c2SEd Tanousclang-analyzer-osx.cocoa.NonNilReturnValue,
139a25223c2SEd Tanousclang-analyzer-osx.cocoa.NSAutoreleasePool,
140a25223c2SEd Tanousclang-analyzer-osx.cocoa.NSError,
141a25223c2SEd Tanousclang-analyzer-osx.cocoa.ObjCGenerics,
142a25223c2SEd Tanousclang-analyzer-osx.cocoa.RetainCount,
143a25223c2SEd Tanousclang-analyzer-osx.cocoa.RetainCountBase,
144a25223c2SEd Tanousclang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
145a25223c2SEd Tanousclang-analyzer-osx.cocoa.SelfInit,
146a25223c2SEd Tanousclang-analyzer-osx.cocoa.SuperDealloc,
147a25223c2SEd Tanousclang-analyzer-osx.cocoa.UnusedIvars,
148a25223c2SEd Tanousclang-analyzer-osx.cocoa.VariadicMethodTypes,
149a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.CFError,
150a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.CFNumber,
151a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.CFRetainRelease,
152a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.containers.OutOfBounds,
153a25223c2SEd Tanousclang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
154a25223c2SEd Tanousclang-analyzer-osx.MIG,
155a25223c2SEd Tanousclang-analyzer-osx.NSOrCFErrorDerefChecker,
156a25223c2SEd Tanousclang-analyzer-osx.NumberObjectConversion,
157a25223c2SEd Tanousclang-analyzer-osx.ObjCProperty,
158a25223c2SEd Tanousclang-analyzer-osx.OSObjectRetainCount,
159a25223c2SEd Tanousclang-analyzer-osx.SecKeychainAPI,
160a25223c2SEd Tanousclang-analyzer-security.FloatLoopCounter,
161a25223c2SEd Tanousclang-analyzer-security.insecureAPI.bcmp,
162a25223c2SEd Tanousclang-analyzer-security.insecureAPI.bcopy,
163a25223c2SEd Tanousclang-analyzer-security.insecureAPI.bzero,
164a25223c2SEd Tanousclang-analyzer-security.insecureAPI.decodeValueOfObjCType,
165a25223c2SEd Tanousclang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
166a25223c2SEd Tanousclang-analyzer-security.insecureAPI.getpw,
167a25223c2SEd Tanousclang-analyzer-security.insecureAPI.gets,
168a25223c2SEd Tanousclang-analyzer-security.insecureAPI.mkstemp,
169a25223c2SEd Tanousclang-analyzer-security.insecureAPI.mktemp,
170a25223c2SEd Tanousclang-analyzer-security.insecureAPI.rand,
171a25223c2SEd Tanousclang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
172a25223c2SEd Tanousclang-analyzer-security.insecureAPI.strcpy,
173a25223c2SEd Tanousclang-analyzer-security.insecureAPI.UncheckedReturn,
174a25223c2SEd Tanousclang-analyzer-security.insecureAPI.vfork,
175a25223c2SEd Tanousclang-analyzer-unix.API,
176a25223c2SEd Tanousclang-analyzer-unix.cstring.BadSizeArg,
177a25223c2SEd Tanousclang-analyzer-unix.cstring.CStringModeling,
178a25223c2SEd Tanousclang-analyzer-unix.cstring.NullArg,
179a25223c2SEd Tanousclang-analyzer-unix.DynamicMemoryModeling,
180a25223c2SEd Tanousclang-analyzer-unix.Malloc,
181a25223c2SEd Tanousclang-analyzer-unix.MallocSizeof,
182a25223c2SEd Tanousclang-analyzer-unix.MismatchedDeallocator,
183a25223c2SEd Tanousclang-analyzer-unix.Vfork,
184a25223c2SEd Tanousclang-analyzer-valist.CopyToSelf,
185a25223c2SEd Tanousclang-analyzer-valist.Uninitialized,
186a25223c2SEd Tanousclang-analyzer-valist.Unterminated,
187a25223c2SEd Tanousclang-analyzer-valist.ValistBase,
188a25223c2SEd Tanousclang-analyzer-webkit.NoUncountedMemberChecker,
189a25223c2SEd Tanousclang-analyzer-webkit.RefCntblBaseVirtualDtor,
190*a771f6a7SEd Tanouscppcoreguidelines-init-variables,
1918a57ec09SEd Tanousmisc-misplaced-const,
1928a57ec09SEd Tanousmisc-no-recursion,
1938a57ec09SEd Tanousmisc-redundant-expression,
1948a57ec09SEd Tanousmisc-static-assert,
1958a57ec09SEd Tanousmisc-throw-by-value-catch-by-reference,
1968a57ec09SEd Tanousmisc-unconventional-assign-operator,
1978a57ec09SEd Tanousmisc-uniqueptr-reset-release,
1988a57ec09SEd Tanousmisc-unused-using-decls,
199a25223c2SEd Tanousmodernize-avoid-bind,
200a25223c2SEd Tanousmodernize-deprecated-headers,
201a25223c2SEd Tanousmodernize-deprecated-ios-base-aliases,
202a25223c2SEd Tanousmodernize-loop-convert,
203a25223c2SEd Tanousmodernize-make-shared,
204a25223c2SEd Tanousmodernize-make-unique,
205a25223c2SEd Tanousmodernize-raw-string-literal,
206a25223c2SEd Tanousmodernize-replace-auto-ptr,
207a25223c2SEd Tanousmodernize-replace-random-shuffle,
208a25223c2SEd Tanousmodernize-return-braced-init-list,
209a25223c2SEd Tanousmodernize-shrink-to-fit,
210a25223c2SEd Tanousmodernize-unary-static-assert,
211a25223c2SEd Tanousmodernize-use-bool-literals,
212a25223c2SEd Tanousmodernize-use-default-member-init,
213a25223c2SEd Tanousmodernize-use-emplace,
214a25223c2SEd Tanousmodernize-use-equals-default,
215a25223c2SEd Tanousmodernize-use-equals-delete,
216a25223c2SEd Tanousmodernize-use-noexcept,
217a25223c2SEd Tanousmodernize-use-nullptr,
218a25223c2SEd Tanousmodernize-use-override,
219a25223c2SEd Tanousmodernize-use-transparent-functors,
220a25223c2SEd Tanousmodernize-use-uncaught-exceptions,
221a25223c2SEd Tanousmodernize-use-using,
2228a57ec09SEd Tanousperformance-faster-string-find,
2238a57ec09SEd Tanousperformance-for-range-copy,
224a25223c2SEd Tanousperformance-for-range-copy,
2258a57ec09SEd Tanousperformance-implicit-conversion-in-loop,
226a25223c2SEd Tanousperformance-implicit-conversion-in-loop,
227a25223c2SEd Tanousperformance-inefficient-algorithm,
2288a57ec09SEd Tanousperformance-inefficient-algorithm,
2298a57ec09SEd Tanousperformance-inefficient-string-concatenation,
2308a57ec09SEd Tanousperformance-inefficient-vector-operation,
231a25223c2SEd Tanousperformance-inefficient-vector-operation,
2328a57ec09SEd Tanousperformance-move-const-arg,
2338a57ec09SEd Tanousperformance-move-constructor-init,
234a25223c2SEd Tanousperformance-move-constructor-init,
235a25223c2SEd Tanousperformance-no-automatic-move,
2368a57ec09SEd Tanousperformance-no-automatic-move,
2378a57ec09SEd Tanousperformance-noexcept-move-constructor,
2388a57ec09SEd Tanousperformance-trivially-destructible,
239a25223c2SEd Tanousperformance-trivially-destructible,
240a25223c2SEd Tanousperformance-type-promotion-in-math-fn,
2418a57ec09SEd Tanousperformance-type-promotion-in-math-fn,
2428a57ec09SEd Tanousperformance-unnecessary-copy-initialization,
243a25223c2SEd Tanousperformance-unnecessary-copy-initialization,
2448a57ec09SEd Tanousperformance-unnecessary-value-param,
2458a57ec09SEd Tanousreadability-braces-around-statements,
2468a57ec09SEd Tanousreadability-const-return-type,
2478a57ec09SEd Tanousreadability-delete-null-pointer,
2488a57ec09SEd Tanousreadability-deleted-default,
249a25223c2SEd Tanousreadability-else-after-return,
250a25223c2SEd Tanousreadability-identifier-naming'
2518a57ec09SEd Tanous
2528a57ec09SEd TanousWarningsAsErrors: '*'
2538a57ec09SEd TanousHeaderFilterRegex: '^((?!linux).)*$'
2548a57ec09SEd TanousCheckOptions:
2558a57ec09SEd Tanous  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
2568a57ec09SEd Tanous  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
2578a57ec09SEd Tanous  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
2588a57ec09SEd Tanous  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
2598a57ec09SEd Tanous  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
2608a57ec09SEd Tanous  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
2618a57ec09SEd Tanous
262