# Static analysis for the hand-written sources only. HeaderFilterRegex matches
# the public and private headers under include/tlsf and src/; the flex/bison-
# generated tlsf_lex.h / tlsf_parse.h land in <build>/src/lib and are excluded
# by their tl prefix, which no hand-written header uses.
Checks: >
  bugprone-*,
  cert-*,
  clang-analyzer-*,
  performance-*,
  readability-*,
  -readability-identifier-length,
  -readability-magic-numbers,
  -readability-function-cognitive-complexity,
  -readability-isolate-declaration,
  -readability-identifier-naming,
  -readability-non-const-parameter,
  -readability-braces-around-statements,
  -readability-implicit-bool-conversion,
  -readability-uppercase-literal-suffix,
  -readability-avoid-nested-conditional-operator,
  -bugprone-easily-swappable-parameters,
  -bugprone-narrowing-conversions,
  -bugprone-multi-level-implicit-pointer-conversion,
  -bugprone-reserved-identifier,
  -cert-err33-c,
  -cert-dcl03-c,
  -cert-dcl51-cpp,
  -cert-msc24-c,
  -cert-msc33-c,
  -misc-include-cleaner,
  -readability-else-after-return,
  -clang-analyzer-deadcode.DeadStores,
  -clang-analyzer-optin.performance.Padding,
  -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
  -clang-analyzer-optin.portability.UnixAPI,
  -clang-analyzer-unix.Malloc,
  -clang-diagnostic-switch-enum,
  -clang-diagnostic-switch

HeaderFilterRegex: '(include/tlsf|src/lib|src/tools/[a-z0-9_]+)/([^t/]|t[^l/])[^/]*\.(h|hh|hpp)$'
WarningsAsErrors: ''
