forked from fwupd/fwupd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
54 lines (51 loc) · 1.93 KB
/
Copy path.clang-tidy
File metadata and controls
54 lines (51 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- yaml -*-
Checks:
# desired group patterns
- bugprone-*
- cert-*
- clang-analyzer-*
- concurrency-*
- linuxkernel-*
- misc-*
- modernize-*
- performance-*
- portability-*
- readability-*
# TODO: currently required exclusions; fix as many as possible.
# review fixes carefully so as not to simply mask an underlying mistake!
- -bugprone-branch-clone # TODO: enable and autofix
- -bugprone-easily-swappable-parameters
- -bugprone-implicit-widening-of-multiplication-result
- -bugprone-macro-parentheses
- -bugprone-multi-level-implicit-pointer-conversion
- -bugprone-narrowing-conversions
- -bugprone-reserved-identifier
- -bugprone-unchecked-string-to-number-conversion # sscanf is useful
- -cert-dcl37-c
- -cert-dcl51-cpp
- -cert-err33-c
- -cert-err34-c
- -cert-int09-c # too useful for bitfields
- -clang-analyzer-core.NullDereference
- -clang-analyzer-optin.core.EnumCastOutOfRange
- -clang-analyzer-optin.performance.Padding # not useful enough
- -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling
- -clang-analyzer-unix.Malloc # issues with g_autofree, g_auto
- -concurrency-mt-unsafe
- -misc-header-include-cycle
- -misc-include-cleaner
- -misc-no-recursion
- -misc-unused-parameters # difficult with GObject-style C
- -modernize-macro-to-enum
- -readability-avoid-unconditional-preprocessor-if
- -readability-braces-around-statements # causes a huge diff
- -readability-enum-initial-value
- -readability-function-cognitive-complexity # may need tweaking, long test functions, etc.
- -readability-function-size # FIXME: revisit once IgnoreMacros option is broadly available
- -readability-identifier-length
- -readability-magic-numbers
- -readability-non-const-parameter # not useful enough
- -readability-suspicious-call-argument
- -readability-uppercase-literal-suffix
- -portability-avoid-pragma-once # too useful to remove
WarningsAsErrors: "*"