---
InheritParentConfig: true
ExtraArgs: ['-v']
FormatStyle: file
UseColor: true
WarningsAsErrors: '*'
HeaderFilterRegex: 'optree/.*$'

# NOTE: there must be no spaces before the '-', so put the comma last.
Checks: |
  bugprone-*,
  -bugprone-easily-swappable-parameters,
  clang-analyzer-*,
  cppcoreguidelines-*,
  -cppcoreguidelines-macro-usage,
  -cppcoreguidelines-pro-type-reinterpret-cast,
  hicpp-*,
  misc-*,
  modernize-*,
  -modernize-use-trailing-return-type,
  -modernize-use-transparent-functors,
  performance-*,
  readability-*,
  -readability-redundant-inline-specifier,
  -readability-redundant-member-init,
  -readability-identifier-length,
  -readability-use-concise-preprocessor-directives,

CheckOptions:
  misc-include-cleaner.IgnoreHeaders: 'python.*/.*;pybind11/.*;optree/.*'
