# Bug-finding checks only; style is left to the author. Run by tools/check.sh.
# The same set as autostart's firmware_prod, minus:
# - DeprecatedOrUnsafeBufferHandling: memcpy_s and friends are C11 Annex K,
#   which newlib and glibc lack;
# - misc-include-cleaner: fights the register headers;
# - performance-no-int-to-ptr: memory-mapped registers are integer addresses
#   cast to pointers, by design;
# - bugprone-easily-swappable-parameters: a naming heuristic, not a bug, and
#   most small helpers here take two numbers.
Checks: >
  -*,
  bugprone-*,
  -bugprone-easily-swappable-parameters,
  cert-*,
  clang-analyzer-*,
  -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
  misc-*,
  -misc-include-cleaner,
  performance-*,
  -performance-no-int-to-ptr,
  portability-*
WarningsAsErrors: '*'
