---
Checks: >
  *,

  -clang-analyzer-*,
  -clang-diagnostic-*,
  -android-*,
  -fuchsia-*,
  -llvmlibc-*,

  -bugprone-narrowing-conversions,
  -cert-con36-c,
  -cert-con54-cpp,
  -cert-dcl03-c,
  -cert-dcl16-c,
  -cert-dcl37-c,
  -cert-dcl51-cpp,
  -cert-dcl54-cpp,
  -cert-dcl59-cpp,
  -cert-err09-cpp,
  -cert-err61-cpp,
  -cert-exp42-c,
  -cert-fio38-c,
  -cert-flp37-c,
  -cert-msc24-c,
  -cert-msc30-c,
  -cert-msc32-c,
  -cert-msc33-c,
  -cert-msc54-cpp,
  -cert-oop11-cpp,
  -cert-oop54-cpp,
  -cert-pos44-c,
  -cert-pos47-c,
  -cert-sig30-c,
  -cert-str34-c,
  -cppcoreguidelines-avoid-c-arrays,
  -cppcoreguidelines-avoid-magic-numbers,
  -cppcoreguidelines-c-copy-assignment-signature,
  -cppcoreguidelines-explicit-virtual-functions,
  -cppcoreguidelines-macro-to-enum,
  -cppcoreguidelines-noexcept-destructor,
  -cppcoreguidelines-noexcept-move-operations,
  -cppcoreguidelines-noexcept-swap,
  -cppcoreguidelines-non-private-member-variables-in-classes,
  -cppcoreguidelines-use-default-member-init,
  -google-readability-braces-around-statements,
  -google-readability-function-size,
  -google-readability-namespace-comments,
  -hicpp-avoid-c-arrays,
  -hicpp-avoid-goto,
  -hicpp-braces-around-statements,
  -hicpp-deprecated-headers,
  -hicpp-explicit-conversions,
  -hicpp-function-size,
  -hicpp-invalid-access-moved,
  -hicpp-member-init,
  -hicpp-move-const-arg,
  -hicpp-named-parameter,
  -hicpp-new-delete-operators,
  -hicpp-no-array-decay,
  -hicpp-no-malloc,
  -hicpp-noexcept-move,
  -hicpp-special-member-functions,
  -hicpp-static-assert,
  -hicpp-undelegated-constructor,
  -hicpp-uppercase-literal-suffix,
  -hicpp-use-auto,
  -hicpp-use-emplace,
  -hicpp-use-equals-default,
  -hicpp-use-equals-delete,
  -hicpp-use-noexcept,
  -hicpp-use-nullptr,
  -hicpp-use-override,
  -hicpp-vararg,
  -llvm-else-after-return,
  -llvm-qualified-auto,

  -abseil-string-find-str-contains,
  -altera-id-dependent-backward-branch,
  -altera-struct-pack-align,
  -altera-unroll-loops,
  -bugprone-easily-swappable-parameters,
  -bugprone-exception-escape,
  -bugprone-implicit-widening-of-multiplication-result,
  -bugprone-signed-char-misuse,
  -bugprone-unchecked-optional-access,
  -cert-dcl50-cpp,
  -cert-env33-c,
  -cert-err33-c,
  -cert-err58-cpp,
  -cppcoreguidelines-avoid-const-or-ref-data-members,
  -cppcoreguidelines-avoid-non-const-global-variables,
  -cppcoreguidelines-init-variables,
  -cppcoreguidelines-narrowing-conversions,
  -cppcoreguidelines-owning-memory,
  -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
  -cppcoreguidelines-pro-bounds-constant-array-index,
  -cppcoreguidelines-pro-bounds-pointer-arithmetic,
  -cppcoreguidelines-pro-type-member-init,
  -cppcoreguidelines-pro-type-reinterpret-cast,
  -cppcoreguidelines-pro-type-vararg,
  -cppcoreguidelines-special-member-functions,
  -google-default-arguments,
  -google-readability-casting,
  -google-readability-todo,
  -hicpp-signed-bitwise,
  -llvm-header-guard,
  -llvm-include-order,
  -misc-const-correctness,
  -misc-no-recursion,
  -misc-non-private-member-variables-in-classes,
  -misc-unused-parameters,
  -misc-unused-using-decls,
  -modernize-use-trailing-return-type,
  -portability-simd-intrinsics,
  -readability-container-data-pointer,
  -readability-identifier-length,
  -readability-implicit-bool-conversion,
  -readability-inconsistent-declaration-parameter-name,
  -readability-magic-numbers,

  -rawspeed-std-array-no-operator-at
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
InheritParentConfig: false
User:            lebedevri
CheckOptions:
  - key:             bugprone-reserved-identifier.AllowedIdentifiers
    value:           '_GLIBCXX_SANITIZE_VECTOR'
  - key:             google-runtime-int.UnsignedTypePrefix
    value:           'uint'
  - key:             google-runtime-int.SignedTypePrefix
    value:           'int'
  - key:             google-runtime-int.TypeSuffix
    value:           '_t'
  - key:             readability-braces-around-statements.ShortStatementLines
    value:           '3'
  - key:             readability-function-size.BranchThreshold
    value:           '29'
  - key:             readability-function-size.LineThreshold
    value:           '158'
  - key:             readability-function-size.StatementThreshold
    value:           '139'
  - key:             readability-function-size.ParameterThreshold
    value:           '6'
  - key:             readability-function-size.NestingThreshold
    value:           '7'
  - key:             readability-function-size.VariableThreshold
    value:           '31'
  - key:             readability-function-cognitive-complexity.Threshold
    value:           '87'
  - key:             readability-simplify-boolean-expr.ChainedConditionalAssignment
    value:           '1'
  - key:             readability-simplify-boolean-expr.ChainedConditionalReturn
    value:           '1'
  - key:             performance-for-range-copy.WarnOnAllAutoCopies
    value:           '1'
  - key:             google-build-namespaces.HeaderFileExtensions
    value:           'h,
  hh,
  hpp,
  hxx,
  '
  - key:             google-global-names-in-headers.HeaderFileExtensions
    value:           'h,
  hh,
  hpp,
  hxx,
  '
  - key:             misc-definitions-in-headers.HeaderFileExtensions
    value:           'h,
  hh,
  hpp,
  hxx,
  '
  - key:             misc-definitions-in-headers.UseHeaderFileExtension
    value:           '1'
  - key:             modernize-use-auto.MinTypeNameLength
    value:           '0'
  - key:             readability-identifier-naming.NamespaceCase
    value:           lower_case
  - key:             modernize-use-default-member-init.UseAssignment
    value:           1
  - key:             cppcoreguidelines-macro-usage.AllowedRegexp
    value:           'DEBUG|_GLIBCXX_SANITIZE_VECTOR|RAWSPEED_SOURCE_DIR|STR|XSTR|BSWAP16|BSWAP32|BSWAP64|ThrowExceptionHelper|ThrowIOE|ThrowRSE|ThrowCME|ThrowRDE|ThrowRPE|ThrowTPE|ThrowFIE|ThrowCPE|ThrowFPE|DECODER|fuji_quant_gradient|JPEG_MEMSRC|RLVTABLE|PRECISION_MIN|PRECISION_MAX|MARKER_BAND_END|SQR|RS_CAMERAS_XML_PATH|FULLDECODE|IMPL|IMPL0|IMPL1|PUMP|DECODE|PARSER|GEN_E|GEN_PFS|GEN_PSS|BENCHMARK_CAPTURE_NAME|RAWSPEED_UNLIKELY_FUNCTION|RAWSPEED_NOINLINE|GEN_INNER|GEN_F_BPS|GEN_F|GEN_U_BPS|GEN_U|GEN_BO|invariant'
  - key:             performance-unnecessary-value-param.AllowedTypes
    value:           '(Cropped)?Array[12]DRef'

...
