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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
---
Checks: >
-*,
boost-use-to-string,
# M-Link checks to enable later
# clang-diagnostic-*,
# misc-definitions-in-headers,
# misc-forwarding-reference-overload,
# misc-incorrect-roundings,
# misc-lambda-function-name,
# misc-macro-repeated-side-effects,
# misc-misplaced-const,
# misc-misplaced-widening-cast,
# misc-new-delete-overloads,
# misc-non-copyable-objects,
# misc-redundant-expression,
# misc-sizeof-container,
# misc-sizeof-expression,
# misc-static-assert,
# misc-string-compare,
# misc-string-integer-assignment,
# misc-string-literal-with-embedded-nul,
# misc-suspicious-enum-usage,
# misc-suspicious-missing-comma,
# misc-suspicious-semicolon,
# misc-suspicious-string-compare,
# misc-swapped-arguments,
# misc-throw-by-value-catch-by-reference,
# misc-unconventional-assign-operator,
# misc-undelegated-constructor,
# misc-uniqueptr-reset-release,
# misc-unused-alias-decls,
# misc-unused-raii,
# misc-unused-using-decls,
# modernize-avoid-bind,
# modernize-deprecated-headers,
# modernize-loop-convert,
# modernize-make-shared,
# modernize-make-unique,
# modernize-raw-string-literal,
# modernize-redundant-void-arg,
# modernize-replace-auto-ptr,
# modernize-replace-random-shuffle,
# modernize-return-braced-init-list,
# modernize-shrink-to-fit,
# modernize-unary-static-assert,
# modernize-use-bool-literals,
# modernize-use-default-member-init,
# modernize-use-equals-delete,
# modernize-use-noexcept,
# modernize-use-transparent-functors,
# modernize-use-uncaught-exceptions,
# modernize-use-using,
# performance-faster-string-find,
# performance-implicit-conversion-in-loop,
# performance-inefficient-algorithm,
# performance-inefficient-string-concatenation,
# performance-inefficient-vector-operation,
# performance-move-constructor-init,
# performance-noexcept-move-constructor,
# performance-type-promotion-in-math-fn,
# performance-unnecessary-copy-initialization,
# readability-avoid-const-params-in-decls,
# readability-delete-null-pointer,
# readability-deleted-default,
# readability-function-size,
# readability-identifier-naming,
# readability-inconsistent-declaration-parameter-name,
# readability-misleading-indentation,
# readability-misplaced-array-index,
# readability-non-const-parameter,
# readability-redundant-control-flow,
# readability-redundant-declaration,
# readability-redundant-function-ptr-dereference,
# readability-redundant-member-init,
# readability-redundant-smartptr-get,
# readability-redundant-string-cstr,
# readability-redundant-string-init,
# readability-simplify-subscript-expr,
# readability-static-accessed-through-instance,
# readability-static-definition-in-anonymous-namespace,
# readability-string-compare,
# readability-uniqueptr-delete-release
# Fix code and enable checks:
# misc-unused-parameters,
# modernize-pass-by-value,
# modernize-use-auto,
# modernize-use-emplace,
# modernize-use-equals-default,
# modernize-use-nullptr,
# modernize-use-override,
# performance-for-range-copy,
# performance-move-const-arg,
# performance-unnecessary-value-param,
# readability-braces-around-statements,
# readability-container-size-empty,
# readability-else-after-return,
# readability-implicit-bool-conversion,
# readability-named-parameter,
# readability-redundant-smartptr-get,
# readability-simplify-boolean-expr,
WarningsAsErrors: '*'
HeaderFilterRegex: '(Swift|Swiften|Sluift)/.*'
AnalyzeTemporaryDtors: false
CheckOptions:
- key: modernize-loop-convert.MaxCopySize
value: '16'
- key: modernize-loop-convert.MinConfidence
value: reasonable
- key: modernize-use-nullptr.NullMacros
value: 'NULL'
- key: readability-identifier-naming.PrivateMemberSuffix
value: '_'
|