# cppcoreguidelines-macro-usage and -avoid-do-while are disabled because HPFEM_ASSERT is a
# function-like macro with the standard do { } while (false) wrapper; both checks fire on
# every use of it and carry no signal for us.
Checks: >
  -*,
  bugprone-*,
  cppcoreguidelines-*,
  modernize-*,
  performance-*,
  readability-*,
  -modernize-use-trailing-return-type,
  -readability-magic-numbers,
  -cppcoreguidelines-avoid-magic-numbers,
  -cppcoreguidelines-pro-bounds-constant-array-index,
  -cppcoreguidelines-avoid-non-const-global-variables,
  -readability-identifier-length,
  -cppcoreguidelines-macro-usage,
  -cppcoreguidelines-avoid-do-while
WarningsAsErrors: ''
HeaderFilterRegex: 'include/hpfem/.*'
FormatStyle: file
CheckOptions:
  - key: readability-identifier-naming.ClassCase
    value: CamelCase
  - key: readability-identifier-naming.FunctionCase
    value: lower_case
  - key: readability-identifier-naming.VariableCase
    value: lower_case
  - key: readability-identifier-naming.PrivateMemberSuffix
    value: _
  - key: readability-identifier-naming.ConstexprVariablePrefix
    value: k
  - key: readability-identifier-naming.ConstexprVariableCase
    value: CamelCase
  # Single-line bodies (`if (x) return y;`) are allowed, matching
  # AllowShortIfStatementsOnASingleLine in .clang-format; multi-line bodies need braces.
  - key: readability-braces-around-statements.ShortStatementLines
    value: 2
