forked from mongodb/mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy.in
158 lines (158 loc) · 7.48 KB
/
.clang-tidy.in
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
Checks: '-*,
boost-use-to-string,
bugprone-assert-side-effect,
bugprone-bool-pointer-implicit-conversion,
bugprone-copy-constructor-init,
bugprone-dangling-handle,
bugprone-fold-init-type,
bugprone-inaccurate-erase,
bugprone-incorrect-roundings,
bugprone-integer-division,
bugprone-macro-repeated-side-effects,
bugprone-misplaced-operator-in-strlen-in-alloc,
bugprone-misplaced-widening-cast,
bugprone-multiple-statement-macro,
bugprone-parent-virtual-call,
bugprone-redundant-branch-condition,
bugprone-signed-char-misuse,
bugprone-sizeof-container,
bugprone-string-constructor,
bugprone-string-integer-assignment,
bugprone-suspicious-enum-usage,
bugprone-suspicious-memset-usage,
bugprone-suspicious-semicolon,
bugprone-suspicious-string-compare,
bugprone-swapped-arguments,
bugprone-terminating-continue,
bugprone-undelegated-constructor,
bugprone-unused-raii,
bugprone-unused-return-value,
bugprone-use-after-move,
clang-diagnostic-*,
hicpp-static-assert,
hicpp-undelegated-constructor,
misc-new-delete-overloads,
misc-static-assert,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
modernize-avoid-bind,
modernize-deprecated-headers,
modernize-make-shared,
modernize-replace-auto-ptr,
modernize-replace-random-shuffle,
modernize-shrink-to-fit,
modernize-unary-static-assert,
modernize-use-override,
mongo-assert-check,
mongo-cctype-check,
mongo-collection-sharding-runtime-check,
mongo-config-header-check,
mongo-cxx20-banned-includes-check,
mongo-cxx20-std-chrono-check,
mongo-fcv-constant-check,
mongo-header-bracket-check,
mongo-macro-definition-leaks-check,
mongo-mutex-check,
mongo-polyfill-check,
mongo-rand-check,
mongo-std-atomic-check,
mongo-std-optional-check,
mongo-stringdata-const-ref-check,
mongo-trace-check,
mongo-uninterruptible-lock-guard-check,
mongo-unstructured-log-check,
mongo-volatile-check,
performance-faster-string-find,
performance-for-range-copy,
performance-implicit-conversion-in-loop,
performance-inefficient-algorithm,
performance-inefficient-string-concatenation,
performance-move-constructor-init,
performance-no-automatic-move,
performance-trivially-destructible,
performance-type-promotion-in-math-fn,
readability-avoid-const-params-in-decls,
readability-const-return-type,
-bugprone-argument-comment,
-bugprone-exception-escape,
-bugprone-forward-declaration-namespace,
-bugprone-forwarding-reference-overload,
-bugprone-lambda-function-name,
-bugprone-macro-parentheses,
-bugprone-move-forwarding-reference,
-bugprone-narrowing-conversions,
-bugprone-sizeof-expression,
-bugprone-string-literal-with-embedded-nul,
-bugprone-suspicious-missing-comma,
-bugprone-undefined-memory-manipulation,
-cert-err34-c,
-cert-err52-cpp,
-cert-err60-cpp,
-cert-flp30-c,
-cppcoreguidelines-avoid-goto,
-cppcoreguidelines-c-copy-assignment-signature,
-cppcoreguidelines-interfaces-global-init,
-cppcoreguidelines-narrowing-conversions,
-google-build-explicit-make-pair,
-google-build-namespaces,
-google-global-names-in-headers,
-google-objc-avoid-throwing-exception,
-google-objc-global-variable-declaration,
-google-readability-function-size,
-google-readability-namespace-comments,
-google-runtime-operator,
-hicpp-avoid-goto,
-hicpp-function-size,
-hicpp-invalid-access-moved,
-hicpp-move-const-arg,
-hicpp-named-parameter,
-hicpp-use-equals-default,
-hicpp-use-equals-delete,
-hicpp-use-noexcept,
-hicpp-vararg,
-misc-definitions-in-headers,
-misc-misplaced-const,
-misc-non-copyable-objects,
-misc-redundant-expression,
-misc-throw-by-value-catch-by-reference,
-misc-unconventional-assign-operator,
-misc-unused-alias-decls,
-modernize-use-bool-literals,
-modernize-use-emplace,
-modernize-use-noexcept,
-modernize-use-uncaught-exceptions,
-performance-inefficient-vector-operation,
-performance-unnecessary-value-param,
-readability-delete-null-pointer,
-readability-deleted-default,
-readability-inconsistent-declaration-parameter-name,
-readability-misplaced-array-index,
-readability-non-const-parameter,
-readability-redundant-control-flow,
-readability-redundant-function-ptr-dereference,
-readability-simplify-subscript-expr,
-readability-static-accessed-through-instance,
-readability-string-compare,
-readability-uniqueptr-delete-release
'
WarningsAsErrors: '*'
HeaderFilterRegex: '(mongo/.*|@MONGO_BUILD_DIR@/.*)'
CheckOptions:
- key: bugprone-assert-side-effect.AssertMacros
value: assert
- key: bugprone-assert-side-effect.CheckFunctionCalls
value: '0'
- key: bugprone-dangling-handle.HandleClasses
value: 'std::basic_string_view;std::experimental::basic_string_view'
- key: bugprone-string-constructor.WarnOnLargeLength
value: '0'
- key: bugprone-suspicious-enum-usage.StrictMode
value: '0'
- key: modernize-replace-auto-ptr.IncludeStyle
value: llvm
- key: modernize-replace-random-shuffle.IncludeStyle
value: llvm
- key: mongo-collection-sharding-runtime-check.exceptionDirs
value: 'src/mongo/db/s'
- key: mongo-header-bracket-check.mongoSourceDirs
value: 'src/mongo;@MONGO_BUILD_DIR@'