---
# Intel GPU plugin clang-tidy configuration.
#
# Checks are rolled out incrementally: each new diagnostic is enabled in its
# own pull request. Add new checks to the 'Checks' list below; 'WarningsAsErrors'
# is intentionally '*' so any enabled check is enforced without further edits.

Checks: >
  -*,
  modernize-use-override,
  google-readability-namespace-comments,
  readability-redundant-member-init,
  readability-redundant-string-init,
  readability-redundant-control-flow,
  modernize-use-nullptr,
  modernize-use-bool-literals,
  modernize-deprecated-headers,
  modernize-use-using,
  modernize-redundant-void-arg,
  readability-container-size-empty,
  readability-redundant-string-cstr,
  readability-qualified-auto,
  readability-else-after-return,
  modernize-use-equals-default,
  modernize-use-equals-delete,
  readability-implicit-bool-conversion,
  readability-simplify-boolean-expr,
# Treat every enabled check as an error so they are enforced during the build.
# Scope is controlled via 'Checks' above; matches the CPU plugin configuration.
WarningsAsErrors: '*'
# Use clang-format for applied fixes.
FormatStyle: file
HeaderFilterRegex: "src/plugins/intel_gpu/(include|src)/.*\\.(h|hpp)$"
CheckOptions:
  - key: modernize-use-override.AllowOverrideAndFinal
    value: true
  - key: google-readability-namespace-comments.ShortNamespaceLines
    value: 10
  - key: google-readability-namespace-comments.SpacesBeforeComments
    value: 2
  - key: readability-implicit-bool-conversion.AllowIntegerConditions
    value: true
  - key: readability-implicit-bool-conversion.AllowPointerConditions
    value: true
  - key: readability-simplify-boolean-expr.ChainedConditionalReturn
    value: true
  - key: readability-simplify-boolean-expr.ChainedConditionalAssignment
    value: true
  - key: readability-simplify-boolean-expr.SimplifyDeMorgan
    value: true
  - key: readability-simplify-boolean-expr.SimplifyDeMorganRelaxed
    value: true
---
