Checks: >
  *,
  -clang-diagnostic-*,
  -modernize-use-auto,
  -hicpp-use-auto,
  -modernize-loop-convert,
  -readability-qualified-auto,
  -bugprone-easily-swappable-parameters,
  -llvm-qualified-auto,
  -llvmlibc-*,
  -altera-*,
  -zircon-*,
  -fuchsia-*,
  -objc-*,
  -google-objc-*,
  -cert-oop54-cpp,
  -modernize-use-trailing-return-type,
  -llvm-header-guard,
  -cppcoreguidelines-pro-type-member-init,
  -cppcoreguidelines-avoid-magic-numbers,
  -readability-magic-numbers,
  -misc-include-cleaner,
  -google-readability-namespace-comments,
  -performance-avoid-endl,
  -google-runtime-int,
  -google-runtime-float,
  -misc-const-correctness,
  -readability-identifier-length,
  -modernize-use-nodiscard,
  -readability-else-after-return,
  -readability-redundant-declaration,
  -misc-header-include-cycle,
  -cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,
  -misc-unused-parameters,
  -misc-use-anonymous-namespace,
  -bugprone-exception-escape,
  -google-build-using-namespace,
  -misc-use-internal-linkage,
  -cppcoreguidelines-slicing,
  -misc-no-recursion,
  -cppcoreguidelines-owning-memory,
  -cppcoreguidelines-use-enum-class,
  -performance-enum-size

WarningsAsErrors: '*'
HeaderFilterRegex: '.*/(src|TESTS)/.*\.h$' # only our own headers under src/ or TESTS/, never system or dependency headers
FormatStyle: none

CheckOptions:
  # bugprone-reserved-identifier's fix-it only renames the #define of a header guard, never the
  # matching #ifndef, so -fix breaks every guard it touches (mismatched macro names). Exempt
  # __NAME__-shaped guards (mixed case, matching our class/file names) so the check still catches
  # other reserved identifiers in actual code (e.g. _test, _Data).
  - key: bugprone-reserved-identifier.AllowedIdentifiers
    value: '__[A-Za-z0-9_]+__'
  - key: cert-dcl37-c.AllowedIdentifiers
    value: '__[A-Za-z0-9_]+__'
  - key: cert-dcl51-cpp.AllowedIdentifiers
    value: '__[A-Za-z0-9_]+__'
