OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
---
# Intel GPU plugin clang-tidy configuration.
#
# Readability checks and their options match the CPU plugin configuration.
# 'WarningsAsErrors' is '*' so every enabled check is enforced during the build.
#
# C++20 default exposed new findings; fix the code and re-enable:
# -readability-container-contains
Checks: >
-*,
modernize-use-override,
google-readability-namespace-comments,
modernize-use-nullptr,
modernize-use-bool-literals,
modernize-deprecated-headers,
modernize-use-using,
modernize-redundant-void-arg,
modernize-use-equals-default,
modernize-use-equals-delete,
readability-*,
-readability-container-contains,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-suspicious-call-argument,
# 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
- key: readability-braces-around-statements.ShortStatementLines
value: "1"
- key: readability-function-size.StatementThreshold
value: "800"
---