xref: /openbmc/dbus-sensors/.clang-tidy (revision a771f6a7)
1Checks: '
2-*,
3bugprone-argument-comment,
4bugprone-assert-side-effect,
5bugprone-bad-signal-to-kill-thread,
6bugprone-bool-pointer-implicit-conversion,
7bugprone-branch-clone,
8bugprone-copy-constructor-init,
9bugprone-dangling-handle,
10bugprone-dynamic-static-initializers,
11bugprone-fold-init-type,
12bugprone-forward-declaration-namespace,
13bugprone-forwarding-reference-overload,
14bugprone-inaccurate-erase,
15bugprone-incorrect-roundings,
16bugprone-infinite-loop,
17bugprone-integer-division,
18bugprone-lambda-function-name,
19bugprone-macro-parentheses,
20bugprone-macro-repeated-side-effects,
21bugprone-misplaced-operator-in-strlen-in-alloc,
22bugprone-misplaced-pointer-arithmetic-in-alloc,
23bugprone-misplaced-widening-cast,
24bugprone-multiple-statement-macro,
25bugprone-no-escape,
26bugprone-not-null-terminated-result,
27bugprone-parent-virtual-call,
28bugprone-posix-return,
29bugprone-reserved-identifier,
30bugprone-signed-char-misuse,
31bugprone-sizeof-container,
32bugprone-sizeof-expression,
33bugprone-spuriously-wake-up-functions,
34bugprone-string-constructor,
35bugprone-string-integer-assignment,
36bugprone-string-literal-with-embedded-nul,
37bugprone-suspicious-enum-usage,
38bugprone-suspicious-include,
39bugprone-suspicious-memset-usage,
40bugprone-suspicious-missing-comma,
41bugprone-suspicious-semicolon,
42bugprone-suspicious-string-compare,
43bugprone-swapped-arguments,
44bugprone-terminating-continue,
45bugprone-throw-keyword-missing,
46bugprone-too-small-loop-variable,
47bugprone-undefined-memory-manipulation,
48bugprone-undelegated-constructor,
49bugprone-unhandled-self-assignment,
50bugprone-unused-raii,
51bugprone-unused-return-value,
52bugprone-use-after-move,
53bugprone-virtual-near-miss,
54cert-con36-c,
55cert-con54-cpp,
56cert-dcl03-c,
57cert-dcl16-c,
58cert-dcl21-cpp,
59cert-dcl37-c,
60cert-dcl50-cpp,
61cert-dcl51-cpp,
62cert-dcl54-cpp,
63cert-dcl58-cpp,
64cert-dcl59-cpp,
65cert-env33-c,
66cert-err09-cpp,
67cert-err34-c,
68cert-err52-cpp,
69cert-err60-cpp,
70cert-err61-cpp,
71cert-fio38-c,
72cert-flp30-c,
73cert-mem57-cpp,
74cert-msc30-c,
75cert-msc32-c,
76cert-msc50-cpp,
77cert-msc51-cpp,
78cert-oop11-cpp,
79cert-oop54-cpp,
80cert-oop57-cpp,
81clang-analyzer-apiModeling.google.GTest,
82clang-analyzer-apiModeling.llvm.CastValue,
83clang-analyzer-apiModeling.llvm.ReturnValue,
84clang-analyzer-apiModeling.StdCLibraryFunctions,
85clang-analyzer-apiModeling.TrustNonnull,
86clang-analyzer-core.builtin.BuiltinFunctions,
87clang-analyzer-core.builtin.NoReturnFunctions,
88clang-analyzer-core.CallAndMessageModeling,
89clang-analyzer-core.DivideZero,
90clang-analyzer-core.DynamicTypePropagation,
91clang-analyzer-core.NonnilStringConstants,
92clang-analyzer-core.NonNullParamChecker,
93clang-analyzer-core.NullDereference,
94clang-analyzer-core.StackAddrEscapeBase,
95clang-analyzer-core.StackAddressEscape,
96clang-analyzer-core.UndefinedBinaryOperatorResult,
97clang-analyzer-core.uninitialized.ArraySubscript,
98clang-analyzer-core.uninitialized.Assign,
99clang-analyzer-core.uninitialized.Branch,
100clang-analyzer-core.uninitialized.CapturedBlockVariable,
101clang-analyzer-core.uninitialized.UndefReturn,
102clang-analyzer-core.VLASize,
103clang-analyzer-cplusplus.InnerPointer,
104clang-analyzer-cplusplus.Move,
105clang-analyzer-cplusplus.NewDelete,
106clang-analyzer-cplusplus.NewDeleteLeaks,
107clang-analyzer-cplusplus.PlacementNew,
108clang-analyzer-cplusplus.PureVirtualCall,
109clang-analyzer-cplusplus.SelfAssignment,
110clang-analyzer-cplusplus.SmartPtrModeling,
111clang-analyzer-cplusplus.VirtualCallModeling,
112clang-analyzer-deadcode.DeadStores,
113clang-analyzer-fuchsia.HandleChecker,
114clang-analyzer-nullability.NullabilityBase,
115clang-analyzer-nullability.NullableDereferenced,
116clang-analyzer-nullability.NullablePassedToNonnull,
117clang-analyzer-nullability.NullableReturnedFromNonnull,
118clang-analyzer-nullability.NullPassedToNonnull,
119clang-analyzer-nullability.NullReturnedFromNonnull,
120clang-analyzer-optin.cplusplus.UninitializedObject,
121clang-analyzer-optin.cplusplus.VirtualCall,
122clang-analyzer-optin.mpi.MPI-Checker,
123clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
124clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
125clang-analyzer-optin.osx.OSObjectCStyleCast,
126clang-analyzer-optin.performance.GCDAntipattern,
127clang-analyzer-optin.performance.Padding,
128clang-analyzer-optin.portability.UnixAPI,
129clang-analyzer-osx.API,
130clang-analyzer-osx.cocoa.AtSync,
131clang-analyzer-osx.cocoa.AutoreleaseWrite,
132clang-analyzer-osx.cocoa.ClassRelease,
133clang-analyzer-osx.cocoa.Dealloc,
134clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
135clang-analyzer-osx.cocoa.Loops,
136clang-analyzer-osx.cocoa.MissingSuperCall,
137clang-analyzer-osx.cocoa.NilArg,
138clang-analyzer-osx.cocoa.NonNilReturnValue,
139clang-analyzer-osx.cocoa.NSAutoreleasePool,
140clang-analyzer-osx.cocoa.NSError,
141clang-analyzer-osx.cocoa.ObjCGenerics,
142clang-analyzer-osx.cocoa.RetainCount,
143clang-analyzer-osx.cocoa.RetainCountBase,
144clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
145clang-analyzer-osx.cocoa.SelfInit,
146clang-analyzer-osx.cocoa.SuperDealloc,
147clang-analyzer-osx.cocoa.UnusedIvars,
148clang-analyzer-osx.cocoa.VariadicMethodTypes,
149clang-analyzer-osx.coreFoundation.CFError,
150clang-analyzer-osx.coreFoundation.CFNumber,
151clang-analyzer-osx.coreFoundation.CFRetainRelease,
152clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
153clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
154clang-analyzer-osx.MIG,
155clang-analyzer-osx.NSOrCFErrorDerefChecker,
156clang-analyzer-osx.NumberObjectConversion,
157clang-analyzer-osx.ObjCProperty,
158clang-analyzer-osx.OSObjectRetainCount,
159clang-analyzer-osx.SecKeychainAPI,
160clang-analyzer-security.FloatLoopCounter,
161clang-analyzer-security.insecureAPI.bcmp,
162clang-analyzer-security.insecureAPI.bcopy,
163clang-analyzer-security.insecureAPI.bzero,
164clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
165clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
166clang-analyzer-security.insecureAPI.getpw,
167clang-analyzer-security.insecureAPI.gets,
168clang-analyzer-security.insecureAPI.mkstemp,
169clang-analyzer-security.insecureAPI.mktemp,
170clang-analyzer-security.insecureAPI.rand,
171clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
172clang-analyzer-security.insecureAPI.strcpy,
173clang-analyzer-security.insecureAPI.UncheckedReturn,
174clang-analyzer-security.insecureAPI.vfork,
175clang-analyzer-unix.API,
176clang-analyzer-unix.cstring.BadSizeArg,
177clang-analyzer-unix.cstring.CStringModeling,
178clang-analyzer-unix.cstring.NullArg,
179clang-analyzer-unix.DynamicMemoryModeling,
180clang-analyzer-unix.Malloc,
181clang-analyzer-unix.MallocSizeof,
182clang-analyzer-unix.MismatchedDeallocator,
183clang-analyzer-unix.Vfork,
184clang-analyzer-valist.CopyToSelf,
185clang-analyzer-valist.Uninitialized,
186clang-analyzer-valist.Unterminated,
187clang-analyzer-valist.ValistBase,
188clang-analyzer-webkit.NoUncountedMemberChecker,
189clang-analyzer-webkit.RefCntblBaseVirtualDtor,
190cppcoreguidelines-init-variables,
191misc-misplaced-const,
192misc-no-recursion,
193misc-redundant-expression,
194misc-static-assert,
195misc-throw-by-value-catch-by-reference,
196misc-unconventional-assign-operator,
197misc-uniqueptr-reset-release,
198misc-unused-using-decls,
199modernize-avoid-bind,
200modernize-deprecated-headers,
201modernize-deprecated-ios-base-aliases,
202modernize-loop-convert,
203modernize-make-shared,
204modernize-make-unique,
205modernize-raw-string-literal,
206modernize-replace-auto-ptr,
207modernize-replace-random-shuffle,
208modernize-return-braced-init-list,
209modernize-shrink-to-fit,
210modernize-unary-static-assert,
211modernize-use-bool-literals,
212modernize-use-default-member-init,
213modernize-use-emplace,
214modernize-use-equals-default,
215modernize-use-equals-delete,
216modernize-use-noexcept,
217modernize-use-nullptr,
218modernize-use-override,
219modernize-use-transparent-functors,
220modernize-use-uncaught-exceptions,
221modernize-use-using,
222performance-faster-string-find,
223performance-for-range-copy,
224performance-for-range-copy,
225performance-implicit-conversion-in-loop,
226performance-implicit-conversion-in-loop,
227performance-inefficient-algorithm,
228performance-inefficient-algorithm,
229performance-inefficient-string-concatenation,
230performance-inefficient-vector-operation,
231performance-inefficient-vector-operation,
232performance-move-const-arg,
233performance-move-constructor-init,
234performance-move-constructor-init,
235performance-no-automatic-move,
236performance-no-automatic-move,
237performance-noexcept-move-constructor,
238performance-trivially-destructible,
239performance-trivially-destructible,
240performance-type-promotion-in-math-fn,
241performance-type-promotion-in-math-fn,
242performance-unnecessary-copy-initialization,
243performance-unnecessary-copy-initialization,
244performance-unnecessary-value-param,
245readability-braces-around-statements,
246readability-const-return-type,
247readability-delete-null-pointer,
248readability-deleted-default,
249readability-else-after-return,
250readability-identifier-naming'
251
252WarningsAsErrors: '*'
253HeaderFilterRegex: '^((?!linux).)*$'
254CheckOptions:
255  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
256  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
257  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
258  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
259  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
260  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
261
262