xref: /openbmc/dbus-sensors/.clang-tidy (revision 74cffa88)
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-dcl50-cpp,
60cert-dcl54-cpp,
61cert-dcl58-cpp,
62cert-dcl59-cpp,
63cert-env33-c,
64cert-err09-cpp,
65cert-err34-c,
66cert-err52-cpp,
67cert-err60-cpp,
68cert-err61-cpp,
69cert-fio38-c,
70cert-flp30-c,
71cert-mem57-cpp,
72cert-msc30-c,
73cert-msc32-c,
74cert-msc50-cpp,
75cert-msc51-cpp,
76cert-oop11-cpp,
77cert-oop54-cpp,
78cert-oop57-cpp,
79clang-analyzer-apiModeling.google.GTest,
80clang-analyzer-apiModeling.llvm.CastValue,
81clang-analyzer-apiModeling.llvm.ReturnValue,
82clang-analyzer-apiModeling.StdCLibraryFunctions,
83clang-analyzer-apiModeling.TrustNonnull,
84clang-analyzer-core.builtin.BuiltinFunctions,
85clang-analyzer-core.builtin.NoReturnFunctions,
86clang-analyzer-core.CallAndMessageModeling,
87clang-analyzer-core.DivideZero,
88clang-analyzer-core.DynamicTypePropagation,
89clang-analyzer-core.NonnilStringConstants,
90clang-analyzer-core.NonNullParamChecker,
91clang-analyzer-core.NullDereference,
92clang-analyzer-core.StackAddrEscapeBase,
93clang-analyzer-core.StackAddressEscape,
94clang-analyzer-core.UndefinedBinaryOperatorResult,
95clang-analyzer-core.uninitialized.ArraySubscript,
96clang-analyzer-core.uninitialized.Assign,
97clang-analyzer-core.uninitialized.Branch,
98clang-analyzer-core.uninitialized.CapturedBlockVariable,
99clang-analyzer-core.uninitialized.UndefReturn,
100clang-analyzer-core.VLASize,
101clang-analyzer-cplusplus.InnerPointer,
102clang-analyzer-cplusplus.Move,
103clang-analyzer-cplusplus.NewDelete,
104clang-analyzer-cplusplus.NewDeleteLeaks,
105clang-analyzer-cplusplus.PlacementNew,
106clang-analyzer-cplusplus.PureVirtualCall,
107clang-analyzer-cplusplus.SelfAssignment,
108clang-analyzer-cplusplus.SmartPtrModeling,
109clang-analyzer-cplusplus.VirtualCallModeling,
110clang-analyzer-deadcode.DeadStores,
111clang-analyzer-fuchsia.HandleChecker,
112clang-analyzer-nullability.NullabilityBase,
113clang-analyzer-nullability.NullableDereferenced,
114clang-analyzer-nullability.NullablePassedToNonnull,
115clang-analyzer-nullability.NullableReturnedFromNonnull,
116clang-analyzer-nullability.NullPassedToNonnull,
117clang-analyzer-nullability.NullReturnedFromNonnull,
118clang-analyzer-optin.cplusplus.UninitializedObject,
119clang-analyzer-optin.cplusplus.VirtualCall,
120clang-analyzer-optin.mpi.MPI-Checker,
121clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
122clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
123clang-analyzer-optin.osx.OSObjectCStyleCast,
124clang-analyzer-optin.performance.GCDAntipattern,
125clang-analyzer-optin.performance.Padding,
126clang-analyzer-optin.portability.UnixAPI,
127clang-analyzer-osx.API,
128clang-analyzer-osx.cocoa.AtSync,
129clang-analyzer-osx.cocoa.AutoreleaseWrite,
130clang-analyzer-osx.cocoa.ClassRelease,
131clang-analyzer-osx.cocoa.Dealloc,
132clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
133clang-analyzer-osx.cocoa.Loops,
134clang-analyzer-osx.cocoa.MissingSuperCall,
135clang-analyzer-osx.cocoa.NilArg,
136clang-analyzer-osx.cocoa.NonNilReturnValue,
137clang-analyzer-osx.cocoa.NSAutoreleasePool,
138clang-analyzer-osx.cocoa.NSError,
139clang-analyzer-osx.cocoa.ObjCGenerics,
140clang-analyzer-osx.cocoa.RetainCount,
141clang-analyzer-osx.cocoa.RetainCountBase,
142clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
143clang-analyzer-osx.cocoa.SelfInit,
144clang-analyzer-osx.cocoa.SuperDealloc,
145clang-analyzer-osx.cocoa.UnusedIvars,
146clang-analyzer-osx.cocoa.VariadicMethodTypes,
147clang-analyzer-osx.coreFoundation.CFError,
148clang-analyzer-osx.coreFoundation.CFNumber,
149clang-analyzer-osx.coreFoundation.CFRetainRelease,
150clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
151clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
152clang-analyzer-osx.MIG,
153clang-analyzer-osx.NSOrCFErrorDerefChecker,
154clang-analyzer-osx.NumberObjectConversion,
155clang-analyzer-osx.ObjCProperty,
156clang-analyzer-osx.OSObjectRetainCount,
157clang-analyzer-osx.SecKeychainAPI,
158clang-analyzer-security.FloatLoopCounter,
159clang-analyzer-security.insecureAPI.bcmp,
160clang-analyzer-security.insecureAPI.bcopy,
161clang-analyzer-security.insecureAPI.bzero,
162clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
163clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
164clang-analyzer-security.insecureAPI.getpw,
165clang-analyzer-security.insecureAPI.gets,
166clang-analyzer-security.insecureAPI.mkstemp,
167clang-analyzer-security.insecureAPI.mktemp,
168clang-analyzer-security.insecureAPI.rand,
169clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
170clang-analyzer-security.insecureAPI.strcpy,
171clang-analyzer-security.insecureAPI.UncheckedReturn,
172clang-analyzer-security.insecureAPI.vfork,
173clang-analyzer-unix.API,
174clang-analyzer-unix.cstring.BadSizeArg,
175clang-analyzer-unix.cstring.CStringModeling,
176clang-analyzer-unix.cstring.NullArg,
177clang-analyzer-unix.DynamicMemoryModeling,
178clang-analyzer-unix.Malloc,
179clang-analyzer-unix.MallocSizeof,
180clang-analyzer-unix.MismatchedDeallocator,
181clang-analyzer-unix.Vfork,
182clang-analyzer-valist.CopyToSelf,
183clang-analyzer-valist.Uninitialized,
184clang-analyzer-valist.Unterminated,
185clang-analyzer-valist.ValistBase,
186clang-analyzer-webkit.NoUncountedMemberChecker,
187clang-analyzer-webkit.RefCntblBaseVirtualDtor,
188cppcoreguidelines-avoid-c-arrays,
189cppcoreguidelines-init-variables,
190misc-misplaced-const,
191misc-redundant-expression,
192misc-static-assert,
193misc-throw-by-value-catch-by-reference,
194misc-unconventional-assign-operator,
195misc-uniqueptr-reset-release,
196misc-unused-using-decls,
197modernize-avoid-bind,
198modernize-deprecated-headers,
199modernize-deprecated-ios-base-aliases,
200modernize-loop-convert,
201modernize-make-shared,
202modernize-make-unique,
203modernize-raw-string-literal,
204modernize-replace-auto-ptr,
205modernize-replace-random-shuffle,
206modernize-return-braced-init-list,
207modernize-shrink-to-fit,
208modernize-unary-static-assert,
209modernize-use-bool-literals,
210modernize-use-default-member-init,
211modernize-use-emplace,
212modernize-use-equals-default,
213modernize-use-equals-delete,
214modernize-use-noexcept,
215modernize-use-nullptr,
216modernize-use-override,
217modernize-use-transparent-functors,
218modernize-use-uncaught-exceptions,
219modernize-use-using,
220performance-faster-string-find,
221performance-for-range-copy,
222performance-for-range-copy,
223performance-implicit-conversion-in-loop,
224performance-implicit-conversion-in-loop,
225performance-inefficient-algorithm,
226performance-inefficient-algorithm,
227performance-inefficient-string-concatenation,
228performance-inefficient-vector-operation,
229performance-inefficient-vector-operation,
230performance-move-const-arg,
231performance-move-constructor-init,
232performance-move-constructor-init,
233performance-no-automatic-move,
234performance-no-automatic-move,
235performance-noexcept-move-constructor,
236performance-trivially-destructible,
237performance-trivially-destructible,
238performance-type-promotion-in-math-fn,
239performance-type-promotion-in-math-fn,
240performance-unnecessary-copy-initialization,
241performance-unnecessary-copy-initialization,
242performance-unnecessary-value-param,
243readability-braces-around-statements,
244readability-const-return-type,
245readability-delete-null-pointer,
246readability-deleted-default,
247readability-else-after-return,
248readability-identifier-naming'
249
250WarningsAsErrors: '*'
251HeaderFilterRegex: '.*'
252CheckOptions:
253  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
254  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
255  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
256  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
257  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
258  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
259  - { key: readability-identifier-naming.StructIgnoredRegexp,    value: ((peci_xfer_msg)|(peci_ping_msg)|(peci_get_dib_msg)|(peci_get_temp_msg)|(peci_rd_pkg_cfg_msg)|(peci_wr_pkg_cfg_msg)|(peci_rd_ia_msr_msg)|(peci_wr_ia_msr_msg)|(peci_rd_ia_msrex_msg)|(peci_rd_pci_cfg_msg)|(peci_wr_pci_cfg_msg)|(peci_rd_pci_cfg_local_msg)|(peci_wr_pci_cfg_local_msg)|(peci_rd_end_pt_cfg_msg)|(peci_wr_end_pt_cfg_msg)|(peci_crashdump_disc_msg)|(peci_crashdump_get_frame_msg))  }
260  - { key: bugprone-reserved-identifier.AllowedIdentifiers,    value: __PECI_IOCTL_H }
261