xref: /openbmc/dbus-sensors/.clang-tidy (revision 65291360)
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-avoid-c-arrays,
191cppcoreguidelines-init-variables,
192cppcoreguidelines-special-member-functions,
193misc-misplaced-const,
194misc-no-recursion,
195misc-redundant-expression,
196misc-static-assert,
197misc-throw-by-value-catch-by-reference,
198misc-unconventional-assign-operator,
199misc-uniqueptr-reset-release,
200misc-unused-using-decls,
201modernize-avoid-bind,
202modernize-deprecated-headers,
203modernize-deprecated-ios-base-aliases,
204modernize-loop-convert,
205modernize-make-shared,
206modernize-make-unique,
207modernize-raw-string-literal,
208modernize-replace-auto-ptr,
209modernize-replace-random-shuffle,
210modernize-return-braced-init-list,
211modernize-shrink-to-fit,
212modernize-unary-static-assert,
213modernize-use-bool-literals,
214modernize-use-default-member-init,
215modernize-use-emplace,
216modernize-use-equals-default,
217modernize-use-equals-delete,
218modernize-use-noexcept,
219modernize-use-nullptr,
220modernize-use-override,
221modernize-use-transparent-functors,
222modernize-use-uncaught-exceptions,
223modernize-use-using,
224performance-faster-string-find,
225performance-for-range-copy,
226performance-for-range-copy,
227performance-implicit-conversion-in-loop,
228performance-implicit-conversion-in-loop,
229performance-inefficient-algorithm,
230performance-inefficient-algorithm,
231performance-inefficient-string-concatenation,
232performance-inefficient-vector-operation,
233performance-inefficient-vector-operation,
234performance-move-const-arg,
235performance-move-constructor-init,
236performance-move-constructor-init,
237performance-no-automatic-move,
238performance-no-automatic-move,
239performance-noexcept-move-constructor,
240performance-trivially-destructible,
241performance-trivially-destructible,
242performance-type-promotion-in-math-fn,
243performance-type-promotion-in-math-fn,
244performance-unnecessary-copy-initialization,
245performance-unnecessary-copy-initialization,
246performance-unnecessary-value-param,
247readability-braces-around-statements,
248readability-const-return-type,
249readability-delete-null-pointer,
250readability-deleted-default,
251readability-else-after-return,
252readability-identifier-naming'
253
254WarningsAsErrors: '*'
255HeaderFilterRegex: '^((?!linux).)*$'
256CheckOptions:
257  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
258  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
259  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
260  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
261  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
262  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
263
264