2022-08-26 22:50:19 +02:00
|
|
|
Checks: '-*,
|
|
|
|
boost-use-to-string,
|
|
|
|
bugprone-assert-side-effect,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-assignment-in-if-condition,
|
|
|
|
bugprone-bad-signal-to-kill-thread,
|
2024-05-17 17:12:13 +02:00
|
|
|
bugprone-bool-pointer-implicit-conversion,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-casting-through-void,
|
|
|
|
bugprone-chained-comparison,
|
|
|
|
bugprone-compare-pointer-to-member-virtual-function,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-copy-constructor-init,
|
|
|
|
bugprone-dangling-handle,
|
2024-05-17 17:12:13 +02:00
|
|
|
bugprone-fold-init-type,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-implicit-widening-of-multiplication-result,
|
2024-05-17 17:12:13 +02:00
|
|
|
bugprone-inaccurate-erase,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-inc-dec-in-conditions,
|
|
|
|
bugprone-incorrect-enable-if,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-incorrect-roundings,
|
2024-05-17 17:12:13 +02:00
|
|
|
bugprone-integer-division,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-macro-repeated-side-effects,
|
|
|
|
bugprone-misplaced-operator-in-strlen-in-alloc,
|
2022-09-15 19:38:01 +02:00
|
|
|
bugprone-misplaced-widening-cast,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-multi-level-implicit-pointer-conversion,
|
|
|
|
bugprone-multiple-new-in-one-expression,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-multiple-statement-macro,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-non-zero-enum-to-bool-conversion,
|
|
|
|
bugprone-optional-value-conversion,
|
2023-08-14 17:27:41 +02:00
|
|
|
bugprone-parent-virtual-call,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-posix-return,
|
2024-05-17 23:02:23 +02:00
|
|
|
bugprone-redundant-branch-condition,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-return-const-ref-from-parameter,
|
|
|
|
bugprone-shared-ptr-array-mismatch,
|
2024-05-17 17:12:13 +02:00
|
|
|
bugprone-signed-char-misuse,
|
2024-05-15 23:46:11 +02:00
|
|
|
bugprone-sizeof-container,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-spuriously-wake-up-functions,
|
|
|
|
bugprone-standalone-empty,
|
2024-05-16 22:16:08 +02:00
|
|
|
bugprone-string-constructor,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-string-integer-assignment,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-stringview-nullptr,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-suspicious-enum-usage,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-suspicious-memory-comparison,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-suspicious-memset-usage,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-suspicious-realloc-usage,
|
2024-05-16 16:20:42 +02:00
|
|
|
bugprone-suspicious-semicolon,
|
2024-05-17 17:12:13 +02:00
|
|
|
bugprone-suspicious-string-compare,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-suspicious-stringview-data-usage,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-swapped-arguments,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-switch-missing-default-case,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-terminating-continue,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-throw-keyword-missing,
|
2024-05-22 00:20:06 +02:00
|
|
|
bugprone-too-small-loop-variable,
|
2022-08-26 22:50:19 +02:00
|
|
|
bugprone-undelegated-constructor,
|
2024-05-22 16:44:09 +02:00
|
|
|
bugprone-unhandled-self-assignment,
|
2024-05-28 16:59:33 +02:00
|
|
|
bugprone-unique-ptr-array-mismatch,
|
|
|
|
bugprone-unsafe-functions,
|
|
|
|
bugprone-unused-local-non-trivial-variable,
|
2024-05-17 17:12:13 +02:00
|
|
|
bugprone-unused-raii,
|
2023-08-15 20:24:18 +02:00
|
|
|
bugprone-unused-return-value,
|
2024-05-17 17:12:13 +02:00
|
|
|
bugprone-use-after-move,
|
|
|
|
clang-diagnostic-*,
|
2022-08-26 22:50:19 +02:00
|
|
|
hicpp-static-assert,
|
|
|
|
hicpp-undelegated-constructor,
|
2024-05-17 23:48:21 +02:00
|
|
|
misc-new-delete-overloads,
|
2023-06-20 19:28:42 +02:00
|
|
|
misc-static-assert,
|
2024-05-16 23:12:03 +02:00
|
|
|
misc-unconventional-assign-operator,
|
2022-09-01 21:52:37 +02:00
|
|
|
misc-uniqueptr-reset-release,
|
2024-05-28 16:25:08 +02:00
|
|
|
misc-unused-alias-decls,
|
2024-05-23 19:17:58 +02:00
|
|
|
misc-unused-using-decls,
|
2022-09-02 18:41:35 +02:00
|
|
|
modernize-avoid-bind,
|
2023-01-24 20:48:58 +01:00
|
|
|
modernize-deprecated-headers,
|
2024-05-17 17:12:13 +02:00
|
|
|
modernize-make-shared,
|
2022-08-26 22:50:19 +02:00
|
|
|
modernize-replace-auto-ptr,
|
|
|
|
modernize-replace-random-shuffle,
|
|
|
|
modernize-shrink-to-fit,
|
|
|
|
modernize-unary-static-assert,
|
2024-03-19 08:41:25 +01:00
|
|
|
modernize-use-override,
|
2023-06-20 20:34:18 +02:00
|
|
|
mongo-assert-check,
|
2023-02-17 00:18:25 +01:00
|
|
|
mongo-cctype-check,
|
2023-05-26 22:48:58 +02:00
|
|
|
mongo-collection-sharding-runtime-check,
|
2024-05-17 17:12:13 +02:00
|
|
|
mongo-config-header-check,
|
2023-04-12 03:07:12 +02:00
|
|
|
mongo-cxx20-banned-includes-check,
|
2023-06-06 01:15:23 +02:00
|
|
|
mongo-cxx20-std-chrono-check,
|
2024-05-17 17:12:13 +02:00
|
|
|
mongo-fcv-constant-check,
|
2023-02-12 07:50:02 +01:00
|
|
|
mongo-header-bracket-check,
|
2024-07-11 02:46:55 +02:00
|
|
|
mongo-invariant-status-is-ok-check,
|
2023-06-05 18:37:19 +02:00
|
|
|
mongo-macro-definition-leaks-check,
|
2023-03-28 01:21:52 +02:00
|
|
|
mongo-mutex-check,
|
2023-06-20 20:34:18 +02:00
|
|
|
mongo-polyfill-check,
|
2023-06-15 01:31:44 +02:00
|
|
|
mongo-rand-check,
|
2023-06-20 20:34:18 +02:00
|
|
|
mongo-std-atomic-check,
|
2023-02-18 01:34:19 +01:00
|
|
|
mongo-std-optional-check,
|
2024-05-17 17:12:13 +02:00
|
|
|
mongo-stringdata-const-ref-check,
|
2023-06-20 20:34:18 +02:00
|
|
|
mongo-trace-check,
|
2023-02-13 17:20:22 +01:00
|
|
|
mongo-uninterruptible-lock-guard-check,
|
2023-04-27 22:38:51 +02:00
|
|
|
mongo-unstructured-log-check,
|
2023-02-23 20:05:45 +01:00
|
|
|
mongo-volatile-check,
|
2022-09-16 19:22:10 +02:00
|
|
|
performance-faster-string-find,
|
2024-05-17 17:12:13 +02:00
|
|
|
performance-for-range-copy,
|
2022-08-26 22:50:19 +02:00
|
|
|
performance-implicit-conversion-in-loop,
|
|
|
|
performance-inefficient-algorithm,
|
2024-05-17 23:49:16 +02:00
|
|
|
performance-inefficient-string-concatenation,
|
2023-09-19 23:14:49 +02:00
|
|
|
performance-move-constructor-init,
|
2024-05-17 17:12:13 +02:00
|
|
|
performance-no-automatic-move,
|
2023-09-19 23:14:49 +02:00
|
|
|
performance-trivially-destructible,
|
2024-05-17 17:12:13 +02:00
|
|
|
performance-type-promotion-in-math-fn,
|
|
|
|
readability-avoid-const-params-in-decls,
|
|
|
|
readability-const-return-type,
|
2022-08-26 22:50:19 +02:00
|
|
|
-cert-err34-c,
|
|
|
|
-cert-err52-cpp,
|
|
|
|
-cert-err60-cpp,
|
|
|
|
-cert-flp30-c,
|
2024-08-02 22:30:12 +02:00
|
|
|
-clang-diagnostic-builtin-macro-redefined,
|
2022-08-26 22:50:19 +02:00
|
|
|
-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,
|
|
|
|
-modernize-use-bool-literals,
|
|
|
|
-modernize-use-emplace,
|
|
|
|
-modernize-use-noexcept,
|
|
|
|
-modernize-use-uncaught-exceptions,
|
|
|
|
-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
|
|
|
|
'
|
2024-08-02 22:30:12 +02:00
|
|
|
WarningsAsErrors: '*,-clang-diagnostic-builtin-macro-redefined'
|
2024-06-26 06:43:44 +02:00
|
|
|
HeaderFilterRegex: '(mongo/.*|@MONGO_BUILD_DIR@)'
|
2022-12-16 05:55:07 +01:00
|
|
|
CheckOptions:
|
2022-08-26 22:50:19 +02:00
|
|
|
- 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'
|
2024-05-16 22:16:08 +02:00
|
|
|
- key: bugprone-string-constructor.WarnOnLargeLength
|
|
|
|
value: '0'
|
2022-08-26 22:50:19 +02:00
|
|
|
- key: bugprone-suspicious-enum-usage.StrictMode
|
|
|
|
value: '0'
|
|
|
|
- key: modernize-replace-auto-ptr.IncludeStyle
|
|
|
|
value: llvm
|
|
|
|
- key: modernize-replace-random-shuffle.IncludeStyle
|
2023-01-17 17:56:30 +01:00
|
|
|
value: llvm
|
2024-05-16 22:16:08 +02:00
|
|
|
- key: mongo-collection-sharding-runtime-check.exceptionDirs
|
|
|
|
value: 'src/mongo/db/s'
|
|
|
|
- key: mongo-header-bracket-check.mongoSourceDirs
|
2024-06-26 06:43:44 +02:00
|
|
|
value: 'src/mongo;@MONGO_BRACKET_BUILD_DIR@'
|