# The clang-tidy gate (scripts/test-clang-tidy.py): GATED_CHECKS there must match Checks here.
Checks: '-*,bugprone-assignment-in-if-condition,bugprone-bad-signal-to-kill-thread,bugprone-bool-pointer-implicit-conversion,bugprone-casting-through-void,bugprone-compare-pointer-to-member-virtual-function,bugprone-copy-constructor-init,bugprone-forward-declaration-namespace,bugprone-forwarding-reference-overload,bugprone-inaccurate-erase,bugprone-incorrect-enable-if,bugprone-lambda-function-name,bugprone-misplaced-pointer-arithmetic-in-alloc,bugprone-move-forwarding-reference,bugprone-optional-value-conversion,bugprone-parent-virtual-call,bugprone-posix-return,bugprone-redundant-branch-condition,bugprone-shared-ptr-array-mismatch,bugprone-sizeof-container,bugprone-spuriously-wake-up-functions,bugprone-string-constructor,bugprone-string-integer-assignment,bugprone-string-literal-with-embedded-nul,bugprone-suspicious-enum-usage,bugprone-suspicious-memory-comparison,bugprone-suspicious-missing-comma,bugprone-suspicious-realloc-usage,bugprone-terminating-continue,bugprone-throw-keyword-missing,bugprone-too-small-loop-variable,bugprone-undefined-memory-manipulation,bugprone-undelegated-constructor,bugprone-unhandled-self-assignment,bugprone-unique-ptr-array-mismatch,bugprone-unused-return-value,bugprone-use-after-move,concurrency-thread-canceltype-asynchronous,misc-header-include-cycle,misc-misleading-bidirectional,misc-redundant-expression,misc-uniqueptr-reset-release,misc-unused-alias-decls,performance-avoid-endl,performance-faster-string-find,performance-for-range-copy,performance-implicit-conversion-in-loop,performance-inefficient-algorithm,performance-inefficient-string-concatenation,performance-inefficient-vector-operation,performance-move-constructor-init,performance-unnecessary-copy-initialization,performance-trivially-destructible'
WarningsAsErrors: '*'
# Every .h header that a translation unit reaches is reported, so a finding in any checkout
# header is seen. The runner counts only the production sources (test-clazy.py's first_party),
# so findings in generated build files and in autotests/ never count. This regex cannot exclude
# them itself: clang-tidy regular expressions have no lookahead, and the checkout path is not
# known here.
HeaderFilterRegex: '\.h$'
FormatStyle: file
