0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-27 23:27:11 +01:00
mongodb/.clang-tidy.in
Mathias Stearn 02ce1fb959 SERVER-97134 Only promote clang-tidy warnings to errors in CI scripts (#29191)
GitOrigin-RevId: cf820864cbfde8390760699dba27d28b97dddf96
2024-11-15 18:54:55 +00:00

175 lines
8.4 KiB
Plaintext

Checks: '-*,
boost-use-to-string,
bugprone-assert-side-effect,
bugprone-assignment-in-if-condition,
bugprone-bad-signal-to-kill-thread,
bugprone-bool-pointer-implicit-conversion,
bugprone-casting-through-void,
bugprone-chained-comparison,
bugprone-compare-pointer-to-member-virtual-function,
bugprone-copy-constructor-init,
bugprone-dangling-handle,
bugprone-fold-init-type,
bugprone-implicit-widening-of-multiplication-result,
bugprone-inaccurate-erase,
bugprone-inc-dec-in-conditions,
bugprone-incorrect-enable-if,
bugprone-incorrect-roundings,
bugprone-integer-division,
bugprone-macro-repeated-side-effects,
bugprone-misplaced-operator-in-strlen-in-alloc,
bugprone-misplaced-widening-cast,
bugprone-multi-level-implicit-pointer-conversion,
bugprone-multiple-new-in-one-expression,
bugprone-multiple-statement-macro,
bugprone-non-zero-enum-to-bool-conversion,
bugprone-optional-value-conversion,
bugprone-parent-virtual-call,
bugprone-posix-return,
bugprone-redundant-branch-condition,
bugprone-return-const-ref-from-parameter,
bugprone-shared-ptr-array-mismatch,
bugprone-signed-char-misuse,
bugprone-sizeof-container,
bugprone-spuriously-wake-up-functions,
bugprone-standalone-empty,
bugprone-string-constructor,
bugprone-string-integer-assignment,
bugprone-stringview-nullptr,
bugprone-suspicious-enum-usage,
bugprone-suspicious-memory-comparison,
bugprone-suspicious-memset-usage,
bugprone-suspicious-realloc-usage,
bugprone-suspicious-semicolon,
bugprone-suspicious-string-compare,
bugprone-suspicious-stringview-data-usage,
bugprone-swapped-arguments,
bugprone-switch-missing-default-case,
bugprone-terminating-continue,
bugprone-throw-keyword-missing,
bugprone-too-small-loop-variable,
bugprone-undelegated-constructor,
bugprone-unhandled-self-assignment,
bugprone-unique-ptr-array-mismatch,
bugprone-unsafe-functions,
bugprone-unused-local-non-trivial-variable,
bugprone-unused-raii,
bugprone-unused-return-value,
bugprone-use-after-move,
clang-diagnostic-*,
google-build-namespaces,
hicpp-static-assert,
hicpp-undelegated-constructor,
misc-definitions-in-headers,
misc-new-delete-overloads,
misc-static-assert,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
misc-unused-alias-decls,
misc-unused-using-decls,
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-invariant-status-is-ok-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,
-cert-err34-c,
-cert-err52-cpp,
-cert-err60-cpp,
-cert-flp30-c,
-clang-diagnostic-builtin-macro-redefined,
-cppcoreguidelines-avoid-goto,
-cppcoreguidelines-c-copy-assignment-signature,
-cppcoreguidelines-interfaces-global-init,
-cppcoreguidelines-narrowing-conversions,
-google-build-explicit-make-pair,
-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-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
'
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_BRACKET_BUILD_DIR@'